lkml.org 
[lkml]   [2001]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [UNTESTED PATCH] Throttle VM allocators
On Tue, 16 Oct 2001, Marcelo Tosatti wrote:

> + /*
> + * We're possibly going to eat memory from the min<->low
> + * "reversed" area. Throttling page reclamation using

"reserved" ;)

> + * the allocators which reach this point will give us a
> + * fair system.
> + */
> +
> + if ((gfp_mask & __GFP_WAIT))
> + vm_throttle(classzone, gfp_mask, order);

It might be an idea to also test for PF_MEMALLOC here,
otherwise bad things will happen.

regards,

Rik
--
DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ (volunteers needed)

http://www.surriel.com/ http://distro.conectiva.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.050 / U:7.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site