lkml.org 
[lkml]   [2007]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] cpusets: do not allow TIF_MEMDIE tasks to allocate globally
On Tue, 5 Jun 2007, David Rientjes wrote:

> > But the alternative is that the exiting process does not save its
> > data.
> The same condition that occurs when there is a system-wide OOM, yes.
> Exclusive cpusets cannot be violated for such allocations outside of the
> obvious GFP_ATOMIC exception.

But with the patch the process would be able to terminate. There is no
global OOM situation. If there would be a global OOM situation then
TIF_MEMDIE would not help.

> > What is this very small exclusive cpuset?
> That's arbitrary. The idea is that an exclusive cpuset should not
> encounter memory pressure because another exclusive cpuset encountered an
> OOM condition because its zones happened to be higher on the zonelist.
> Notice how, without this change, it's possible to allocate on a node
> outside our mems_allowed before we use our own memory reserves.

So its seems that the patch is addressing an imagined situation?

I think the allocation outside of our mems_allowed is fine when it serves
to terminate the process and thereby release resources. It is certainly
better than having the process corrupt data by only partially writing back
its data.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-06 01:35    [from the cache]
©2003-2011 Jasper Spaans