From: Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com>
To: Ying Han <yinghan@google.com>
Cc: 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>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Andrew Morton <akpm@linux-foundation.org>,
Li Zefan <lizf@cn.fujitsu.com>, Mel Gorman <mel@csn.ul.ie>,
Christoph Lameter <cl@linux.com>,
Johannes Weiner <hannes@cmpxchg.org>,
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 2/2] Add stats to monitor soft_limit reclaim
Date: Fri, 29 Apr 2011 08:51:29 +0900 [thread overview]
Message-ID: <BANLkTimum+TkOxGcqQYfaYEVN+U5oLQqhA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimP_0-ErmnGUnJPVjYRG=fcRN8eOA@mail.gmail.com>
2011/4/29 Ying Han <yinghan@google.com>:
> On Thu, Apr 28, 2011 at 3:37 PM, Ying Han <yinghan@google.com> wrote:
>> This patch extend the soft_limit reclaim stats to both global background
>> reclaim and global direct reclaim.
>>
>> We have a thread discussing the naming of some of the stats. Both
>> KAMEZAWA and Johannes posted the proposals. The following stats are based
>> on what i had before that thread. I will make the corresponding change on
>> the next post when we make decision.
>>
>> $cat /dev/cgroup/memory/A/memory.stat
>> kswapd_soft_steal 1053626
>> kswapd_soft_scan 1053693
>> direct_soft_steal 1481810
>> direct_soft_scan 1481996
>>
>> Signed-off-by: Ying Han <yinghan@google.com>
>> ---
>> Documentation/cgroups/memory.txt | 10 ++++-
>> mm/memcontrol.c | 68 ++++++++++++++++++++++++++++----------
>> 2 files changed, 58 insertions(+), 20 deletions(-)
>>
>> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
>> index 0c40dab..fedc107 100644
>> --- a/Documentation/cgroups/memory.txt
>> +++ b/Documentation/cgroups/memory.txt
>> @@ -387,8 +387,14 @@ pgpgout - # of pages paged out (equivalent to # of uncharging events).
>> swap - # of bytes of swap usage
>> pgfault - # of page faults.
>> pgmajfault - # of major page faults.
>> -soft_steal - # of pages reclaimed from global hierarchical reclaim
>> -soft_scan - # of pages scanned from global hierarchical reclaim
>> +soft_kswapd_steal- # of pages reclaimed in global hierarchical reclaim from
>> + background reclaim
>> +soft_kswapd_scan - # of pages scanned in global hierarchical reclaim from
>> + background reclaim
>> +soft_direct_steal- # of pages reclaimed in global hierarchical reclaim from
>> + direct reclaim
>> +soft_direct_scan- # of pages scanned in global hierarchical reclaim from
>> + direct reclaim
Thank you for CC.
I don't have strong opinion but once we add interfaces to mainline,
it's hard to rename them. So, it's better to make a list of what name
we'll need in future.
Now, your naming has a format as [Reason]-[Who reclaim]-[What count?]
soft_kswapd_steal
soft_kswapd_scan
soft_direct_steal
soft_direct_scan
Ok, we can make a name for wmark and limit reclaim as
limit_direct_steal/scan
wmark_bg_steal/scan
Then, assume we finally do round-robin scan of memcg regardless of softlimit by
removing global LRU, what name do we have ? Hmm,
kernel_kswapd_scan/steal
kernel_direct_scan/steal
?
BTW, your changelog has different name of counters. please fix.
And I'm sorry I'll not be very active for a while.
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-04-28 23:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 22:37 [PATCH 0/2] memcg: add the soft_limit reclaim in global direct reclaim Ying Han
2011-04-28 22:37 ` [PATCH 1/2] Add " Ying Han
2011-04-28 23:25 ` Ying Han
2011-04-29 10:26 ` Balbir Singh
2011-04-29 17:42 ` Ying Han
2011-04-29 13:05 ` Michal Hocko
2011-04-29 17:44 ` Ying Han
2011-05-02 7:22 ` Johannes Weiner
2011-04-28 22:37 ` [PATCH 2/2] Add stats to monitor soft_limit reclaim Ying Han
2011-04-28 23:26 ` Ying Han
2011-04-28 23:51 ` Hiroyuki Kamezawa [this message]
2011-04-29 3:28 ` Ying Han
2011-04-29 10:30 ` Balbir Singh
2011-04-29 19:12 ` Ying Han
2011-04-28 23:24 ` [PATCH 0/2] memcg: add the soft_limit reclaim in global direct reclaim Ying Han
2011-04-29 10:23 ` Balbir Singh
2011-04-29 17:17 ` Ying Han
2011-04-29 16:44 ` Minchan Kim
2011-04-29 17:19 ` Ying Han
2011-04-29 17:48 ` Ying Han
2011-04-29 18:58 ` Ying Han
2011-04-29 23:20 ` Minchan Kim
2011-04-29 23:41 ` Ying Han
2011-04-30 1:33 ` 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=BANLkTimum+TkOxGcqQYfaYEVN+U5oLQqhA@mail.gmail.com \
--to=kamezawa.hiroyuki@gmail.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=kamezawa.hiroyu@jp.fujitsu.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;
as well as URLs for NNTP newsgroup(s).