Re: [PATCH] fix spurious OOM kills
From: Martin J. Bligh
Date: Thu Nov 11 2004 - 13:05:43 EST
>> > I disagree about the design of killing anything from kswapd. kswapd is
>> > an async helper like pdflush and it has no knowledge on the caller (it
>> > cannot know if the caller is ok with the memory currently available in
>> > the freelists, before triggering the oom).
>> If zone_dma / zone_normal are below pages_min no caller is "OK with
>> memory currently available" except GFP_ATOMIC/realtime callers.
> If the GFP_DMA zone is filled, and nobody allocates with GFP_DMA,
> nothing should be killed and everything should run fine, how can you
> get this right from kswapd?
Technically, that seems correct, but does it really matter much? We're
"it's full of unreclaimable stuff" vs
"it's full of unreclaimable stuff and someone tried to allocate a page".
So the difference is only ever one page, right? Doesn't really seem
worth worrying about - we'll burn that in code space for the algorithms
to do this ;-)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/