[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1311271839290.5120@chino.kir.corp.google.com>
Date: Wed, 27 Nov 2013 18:52:10 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Johannes Weiner <hannes@...xchg.org>
cc: Michal Hocko <mhocko@...e.cz>,
Andrew Morton <akpm@...ux-foundation.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
cgroups@...r.kernel.org
Subject: Re: [patch 1/2] mm, memcg: avoid oom notification when current needs
access to memory reserves
On Wed, 27 Nov 2013, Johannes Weiner wrote:
> The long-standing, user-visible definition of the current line agrees
> with me. You can't just redefine this, period.
>
> I tried to explain to you how insane the motivation for this patch is,
> but it does not look like you are reading what I write. But you don't
> get to change user-visible behavior just like that anyway, much less
> so without a sane reason, so this was a complete waste of time :-(
>
If you would like to leave this to Andrew's decision, that's fine.
Michal has already agreed with my patch and has acked it in -mm.
If userspace is going to handle oom conditions, which is possible today
and will be extended in the future, then it should only wakeup as a last
resort when there is no possibility of future memory freeing. It would be
stupid to have userspace wakeup to handle the oom condition and then
require it determine if the kernel simply needed to give it access to
memory reserves for the allocating task to exit and free memory so it
doesn't actually need to do anything.
Section 10 of Documentation/cgroups/memory.txt defines the necessary
actions for processes waiting on this notification to make forward
progress, it doesn't expect a process is already going to exit and free
memory on its own. Waking up in such a condition would be absolutely
ludicrous.
Furthermore, if you're looking for notification simply when the memcg oom
limit has been reached, you can use memory thresholds. If you're looking
for notification simply when reclaim is suffering severe pressure, you can
use VMPRESSURE_CRITICAL.
I've been patient in this thread, but at this point I think everything has
been said and it's pointless to continue going in circles. Thanks for
your time.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists