[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50ACC104.5060006@parallels.com>
Date: Wed, 21 Nov 2012 15:54:44 +0400
From: Glauber Costa <glommer@...allels.com>
To: <leonid.moiseichuk@...ia.com>
CC: <kirill@...temov.name>, <rientjes@...gle.com>,
<anton.vorontsov@...aro.org>, <penberg@...nel.org>,
<mgorman@...e.de>, <kosaki.motohiro@...il.com>,
<minchan@...nel.org>, <b.zolnierkie@...sung.com>,
<john.stultz@...aro.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, <linaro-kernel@...ts.linaro.org>,
<patches@...aro.org>, <kernel-team@...roid.com>,
<linux-man@...r.kernel.org>, <kamezawa.hiroyu@...fujitsu.com>,
<mhocko@...e.cz>, <hannes@...xchg.org>, <tj@...nel.org>
Subject: Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications
Hi,
>
> Memory notifications are quite irrelevant to partitioning and cgroups. The use-case is related to user-space handling low memory. Meaning the functionality should be accurate with specific granularity (e.g. 1 MB) and time (0.25s is OK) but better to have it as simple and battery-friendly. I prefer to have pseudo-device-based text API because it is easy to debug and investigate. It would be nice if it will be possible to use simple scripting to point what kind of memory on which levels need to be tracked but private/shared dirty is #1 and memcg cannot handle it.
>
If that is the case, then fine.
The reason I jumped in talking about memcg, is that it was mentioned
that at some point we'd like to have those notifications on a per-group
basis.
So I'll say it again: if this is always global, there is no reason any
cgroup needs to be involved. If this turns out to be per-process, as
Anton suggested in a recent e-mail, I don't see any reason to have
cgroups involved as well.
But if this needs to be extended to be per-cgroup, then past experience
shows that we need to be really careful not to start duplicating
infrastructure, and creating inter-dependencies like it happened to
other groups in the past.
--
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