public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Christoph Lameter <clameter@engr.sgi.com>
Cc: akpm@osdl.org, pj@sgi.com, linux-kernel@vger.kernel.org
Subject: Re: Terminate process that fails on a constrained allocation V3
Date: Thu, 9 Feb 2006 21:05:04 +0100	[thread overview]
Message-ID: <200602092105.04412.ak@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.62.0602091152300.9941@schroedinger.engr.sgi.com>

On Thursday 09 February 2006 20:53, Christoph Lameter wrote:
> Changes V2->V3:
> 
> - Do the killing of the current process following the execution
>   procedure already established by the OOM killer.
> 
> - Do not return NULL and therefore do not change the return values of
>   __alloc_pages.

Hmm, to make this work well i guess mmap() would need to be changed
to take the policy into account when doing the !MAP_NORESERVE checking
when the kernel runs in strict no overcommit mode.
Otherwise there is no fool proof way an application can prevent getting killed.
And mbind() would need to recompute it and fail if the new policy's possible
allocation are not guaranteed to work.

Doing this all properly would probably get quite messy.

-Andi

  reply	other threads:[~2006-02-09 20:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 19:53 Terminate process that fails on a constrained allocation V3 Christoph Lameter
2006-02-09 20:05 ` Andi Kleen [this message]
2006-02-09 20:12   ` Christoph Lameter
2006-02-09 20:14     ` Andi Kleen
2006-02-10  5:19 ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602092105.04412.ak@suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=clameter@engr.sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pj@sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox