lkml.org 
[lkml]   [2010]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 6/7 -mm] oom: avoid oom killer for lowmem allocations
On 02/10/2010 11:32 AM, David Rientjes wrote:

> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1914,6 +1914,9 @@ rebalance:
> * running out of options and have to consider going OOM
> */
> if (!did_some_progress) {
> + /* The oom killer won't necessarily free lowmem */
> + if (high_zoneidx< ZONE_NORMAL)
> + goto nopage;
> if ((gfp_mask& __GFP_FS)&& !(gfp_mask& __GFP_NORETRY)) {
> if (oom_killer_disabled)
> goto nopage;

Are there architectures that only have one memory zone?

s390 or one of the other virtualized-only architectures perhaps?

--
All rights reversed.


\
 
 \ /
  Last update: 2010-02-11 05:15    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site