From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Ying Han <yinghan@google.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Fw: [PATCH] memcg: add reclaim statistics accounting
Date: Thu, 28 Apr 2011 18:01:39 +0900 [thread overview]
Message-ID: <20110428180139.6ec67196.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <BANLkTimywCF06gfKWFcbAsWtFUbs73rZrQ@mail.gmail.com>
On Wed, 27 Apr 2011 20:43:58 -0700
Ying Han <yinghan@google.com> wrote:
> On Wed, Apr 27, 2011 at 8:16 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> > sorry, I had wrong TO:...
> >
> > Begin forwarded message:
> >
> > Date: Thu, 28 Apr 2011 12:02:34 +0900
> > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> > To: linux-mm@vger.kernel.org
> > Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "nishimura@mxp.nes.nec.co.jp" <nishimura@mxp.nes.nec.co.jp>, "balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>, Ying Han <yinghan@google.com>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>
> > Subject: [PATCH] memcg: add reclaim statistics accounting
> >
> >
> >
> > Now, memory cgroup provides poor reclaim statistics per memcg. This
> > patch adds statistics for direct/soft reclaim as the number of
> > pages scans, the number of page freed by reclaim, the nanoseconds of
> > latency at reclaim.
> >
> > It's good to add statistics before we modify memcg/global reclaim, largely.
> > This patch refactors current soft limit status and add an unified update logic.
> >
> > For example, After #cat 195Mfile > /dev/null under 100M limit.
> > A A A A # cat /cgroup/memory/A/memory.stat
> > A A A A ....
> > A A A A limit_freed 24592
>
> why not "limit_steal" ?
>
> > A A A A soft_steal 0
> > A A A A limit_scan 43974
> > A A A A soft_scan 0
> > A A A A limit_latency 133837417
> >
> > nearly 96M caches are freed. scanned twice. used 133ms.
>
> Does it make sense to split up the soft_steal/scan for bg reclaim and
> direct reclaim? The same for the limit_steal/scan. I am now testing
> the patch to add the soft_limit reclaim on global ttfp, and i already
> have the patch to add the following:
>
> kswapd_soft_steal 0
> kswapd_soft_scan 0
> direct_soft_steal 0
> direct_soft_scan 0
> kswapd_steal 0
> pg_pgsteal 0
> kswapd_pgscan 0
> pg_scan 0
>
I'll not post updated version until the end of holidays but my latest plan is
adding
limit_direct_free - # of pages freed by limit in foreground (not stealed, you freed by yourself's limit)
soft_kswapd_steal - # of pages stealed by kswapd based on soft limit
limit_direct_scan - # of pages scanned by limit in foreground
soft_kswapd_scan - # of pages scanned by kswapd based on soft limit
And then, you can add
soft_direct_steal - # of pages stealed by foreground reclaim based on soft limit
soft_direct_scan - # of pages scanned by foreground reclaim based on soft limit
And
kern_direct_steal - # of pages stealed by foreground reclaim at memory shortage.
kern_direct_scan - # of pages scanned by foreground reclaim at memory shortage.
kern_direct_steal - # of pages stealed by kswapd at memory shortage
kern_direct_scan - # of pages scanned by kswapd at memory shortage
(Above kern_xxx number includes soft_xxx in it. ) These will show influence by
other cgroups.
And
wmark_bg_free - # of pages freed by watermark in background(not kswapd)
wmark_bg_scan - # of pages scanned by watermark in background(not kswapd)
Hmm ? too many stats ;)
And making current soft_steal/soft_scan planned to be obsolete...
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 9:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 3:16 KAMEZAWA Hiroyuki
2011-04-28 3:43 ` Ying Han
2011-04-28 3:57 ` KAMEZAWA Hiroyuki
2011-04-28 4:24 ` Ying Han
2011-04-28 4:27 ` KAMEZAWA Hiroyuki
2011-04-28 4:40 ` Ying Han
2011-04-28 7:02 ` KAMEZAWA Hiroyuki
2011-04-28 9:01 ` KAMEZAWA Hiroyuki [this message]
2011-04-28 12:36 ` Johannes Weiner
2011-04-28 17:46 ` Ying Han
2011-04-29 6:26 ` Johannes Weiner
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=20110428180139.6ec67196.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=yinghan@google.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