From: Christoph Lameter <clameter@engr.sgi.com>
To: Andi Kleen <ak@suse.de>
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 12:12:18 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.62.0602091209220.9952@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <200602092105.04412.ak@suse.de>
On Thu, 9 Feb 2006, Andi Kleen wrote:
> > - 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.
There is no fool proof way right now for the MPOL_BIND case.
> And mbind() would need to recompute it and fail if the new policy's possible
> allocation are not guaranteed to work.
Well we need to fix that but the patch does not introduce the problem.
> Doing this all properly would probably get quite messy.
I'd say making overcommit working nicely with MPOL_BIND is yet another
fundamental issue for the policy layer but it does not matter for this
patch.
next prev parent reply other threads:[~2006-02-09 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 19:53 Christoph Lameter
2006-02-09 20:05 ` Andi Kleen
2006-02-09 20:12 ` Christoph Lameter [this message]
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=Pine.LNX.4.62.0602091209220.9952@schroedinger.engr.sgi.com \
--to=clameter@engr.sgi.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--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
all inboxes | Powered by JetHome®