From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Ying Han <yinghan@google.com>,
Johannes Weiner <hannes@cmpxchg.org>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Minchan Kim <minchan.kim@gmail.com>,
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>,
Balbir Singh <balbir@linux.vnet.ibm.com>,
Tejun Heo <tj@kernel.org>, Pavel Emelyanov <xemul@openvz.org>,
Li Zefan <lizf@cn.fujitsu.com>, Mel Gorman <mel@csn.ul.ie>,
Christoph Lameter <cl@linux.com>, Rik van Riel <riel@redhat.com>,
Hugh Dickins <hughd@google.com>, Michal Hocko <mhocko@suse.cz>,
Dave Hansen <dave@linux.vnet.ibm.com>,
Zhu Yanhai <zhu.yanhai@gmail.com>,
linux-mm@kvack.org
Subject: Re: [PATCH] memcg: fix typo in the soft_limit stats.
Date: Wed, 18 May 2011 09:00:47 +0900 [thread overview]
Message-ID: <20110518090047.0b46a60d.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20110518084919.988d3d41.kamezawa.hiroyu@jp.fujitsu.com>
On Wed, 18 May 2011 08:49:19 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> On Mon, 16 May 2011 17:18:20 -0700
> Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > On Mon, 16 May 2011 17:05:02 -0700
> > Ying Han <yinghan@google.com> wrote:
> >
> > > On Mon, May 16, 2011 at 4:15 PM, Johannes Weiner <hannes@cmpxchg.org> wrote:
> > >
> > > > On Mon, May 16, 2011 at 03:00:30PM -0700, Ying Han wrote:
> > > > > This fixes the typo in the memory.stat including the following two
> > > > > stats:
> > > > >
> > > > > $ cat /dev/cgroup/memory/A/memory.stat
> > > > > total_soft_steal 0
> > > > > total_soft_scan 0
> > > > >
> > > > > And change it to:
> > > > >
> > > > > $ cat /dev/cgroup/memory/A/memory.stat
> > > > > total_soft_kswapd_steal 0
> > > > > total_soft_kswapd_scan 0
> > > > >
> > > > > Signed-off-by: Ying Han <yinghan@google.com>
> > > >
> > > > I am currently proposing and working on a scheme that makes the soft
> > > > limit not only a factor for global memory pressure, but for
> > > > hierarchical reclaim in general, to prefer child memcgs during reclaim
> > > > that are in excess of their soft limit.
> > > >
> > > > Because this means prioritizing memcgs over one another, rather than
> > > > having explicit soft limit reclaim runs, there is no natural counter
> > > > for pages reclaimed due to the soft limit anymore.
> > > >
> > > > Thus, for the patch that introduces this counter:
> > > >
> > > > Nacked-by: Johannes Weiner <hannes@cmpxchg.org>
> > > >
> > >
> > > This patch is fixing a typo of the stats being integrated into mmotm. Does
> > > it make sense to fix the
> > > existing stats first while we are discussing other approaches?
> > >
> >
> > It would be quite bad to add new userspace-visible stats and to then
> > take them away again.
> >
> yes.
>
> > But given that memcg-add-stats-to-monitor-soft_limit-reclaim.patch is
> > queued for 2.6.39-rc1, we could proceed with that plan and then make
> > sure that Johannes's changes are merged either prior to 2.6.40 or
> > they are never merged at all.
> >
> > Or we could just leave out the stats until we're sure. Not having them
> > for a while is not as bad as adding them and then removing them.
> >
>
> I agree. I'm okay with removing them for a while. Johannes and Ying, could you
> make a concensus ? IMHO, Johannes' work for making soft-limit co-operative with
> hirerachical reclaim makes sense and agree to leave counter name as it is.
>
After reading threads, an another idea comes. Johannes' soft_limit just works
when the hierarchy hit limit. I think pages are not reclaimed by soft_limit...
it just reclaimed by the limit because of hierarchy. Right ?
Hmm, I'm not sure using counter of softlimit or (new) counter of reclaimed-by-parent
for that purpose.
But I think this change of stat name is not necessary, anyway.
Thanks,
-Kame
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-05-18 0:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-16 22:00 Ying Han
2011-05-16 23:15 ` Johannes Weiner
2011-05-17 0:05 ` Ying Han
2011-05-17 0:13 ` Johannes Weiner
2011-05-17 0:18 ` Rik van Riel
2011-05-17 0:18 ` Andrew Morton
2011-05-17 23:49 ` KAMEZAWA Hiroyuki
2011-05-18 0:00 ` KAMEZAWA Hiroyuki [this message]
2011-05-18 0:56 ` Ying Han
2011-05-26 9:05 ` Johannes Weiner
2011-05-26 16:56 ` Ying Han
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=20110518090047.0b46a60d.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=cl@linux.com \
--cc=dave@linux.vnet.ibm.com \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=lizf@cn.fujitsu.com \
--cc=mel@csn.ul.ie \
--cc=mhocko@suse.cz \
--cc=minchan.kim@gmail.com \
--cc=nishimura@mxp.nes.nec.co.jp \
--cc=riel@redhat.com \
--cc=tj@kernel.org \
--cc=xemul@openvz.org \
--cc=yinghan@google.com \
--cc=zhu.yanhai@gmail.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