public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* OOM behavior in constrained memory situations
@ 2006-02-06 20:59 Christoph Lameter
  2006-02-06 21:10 ` Andrew Morton
  2006-02-06 22:59 ` Paul Jackson
  0 siblings, 2 replies; 22+ messages in thread
From: Christoph Lameter @ 2006-02-06 20:59 UTC (permalink / raw)
  To: ak; +Cc: pj, linux-kernel, akpm

There are situations in which memory allocations are restricted by policy, 
by a cpuset or by type of allocation. 

I propose that we need different OOM behavior for the cases in which the
user has imposed a limit on what type of memory to be allocated. In that 
case the application should be terminate with OOM. The OOM killer should 
not run.

The huge page allocator has already been modified to return a Bus Error
because it would otherwise trigger the OOM killer. Its a bit strange
if an app returns a Bus Error because it its out of memory.

Could we modify the system so that the application requesting 
memory is terminated with an out of memory condition if

1. No huge pages are available anymore.

2. The application has set a policy that restricts allocation to
   certain nodes.

3. An application is restricted by a cpuset to certain nodes.

4. An application has requested large amounts of memory and the 
   allocation fails.

That should avoid the OOM killer in most situations.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2006-02-09 23:08 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 20:59 OOM behavior in constrained memory situations Christoph Lameter
2006-02-06 21:10 ` Andrew Morton
2006-02-06 21:22   ` Andi Kleen
2006-02-06 22:16     ` Christoph Lameter
2006-02-06 22:25       ` Andi Kleen
2006-02-06 22:30       ` Andrew Morton
2006-02-07  0:03         ` Christoph Lameter
2006-02-09 23:08           ` David Gibson
2006-02-06 22:11   ` Christoph Lameter
2006-02-06 22:26     ` Andrew Morton
2006-02-06 22:59 ` Paul Jackson
2006-02-07  0:39   ` Christoph Lameter
2006-02-07  1:55   ` Christoph Lameter
2006-02-07  9:23     ` Andi Kleen
2006-02-07 17:29       ` Christoph Lameter
2006-02-07 17:45         ` Andi Kleen
2006-02-07 17:51           ` Christoph Lameter
2006-02-07 17:58             ` Andi Kleen
2006-02-07 18:10               ` Christoph Lameter
2006-02-07 18:19               ` Christoph Lameter
2006-02-07 18:31                 ` Andi Kleen
2006-02-07 19:00                   ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox