* Re: + memcg-remove-pcg_file_mapped.patch added to -mm tree
[not found] <20120217214600.28F87A01B8@akpm.mtv.corp.google.com>
@ 2012-02-20 0:09 ` KAMEZAWA Hiroyuki
2012-02-28 12:24 ` Johannes Weiner
0 siblings, 1 reply; 2+ messages in thread
From: KAMEZAWA Hiroyuki @ 2012-02-20 0:09 UTC (permalink / raw)
To: akpm
Cc: gthelen, hannes, kosaki.motohiro, mhocko, yinghan,
linux-mm@kvack.org, Hillf Danton
On Fri, 17 Feb 2012 13:46:00 -0800
akpm@linux-foundation.org wrote:
>
> The patch titled
> Subject: memcg: remove PCG_FILE_MAPPED
> has been added to the -mm tree. Its filename is
> memcg-remove-pcg_file_mapped.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
>
> ------------------------------------------------------
> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Subject: memcg: remove PCG_FILE_MAPPED
>
> With the new lock scheme for updating memcg's page stat, we don't need a
> flag PCG_FILE_MAPPED which was duplicated information of page_mapped().
>
Johannes and Hillf pointed out this is required.
Thank you!.
==
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + memcg-remove-pcg_file_mapped.patch added to -mm tree
2012-02-20 0:09 ` + memcg-remove-pcg_file_mapped.patch added to -mm tree KAMEZAWA Hiroyuki
@ 2012-02-28 12:24 ` Johannes Weiner
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Weiner @ 2012-02-28 12:24 UTC (permalink / raw)
To: KAMEZAWA Hiroyuki
Cc: akpm, gthelen, kosaki.motohiro, mhocko, yinghan,
linux-mm@kvack.org, Hillf Danton
On Mon, Feb 20, 2012 at 09:09:35AM +0900, KAMEZAWA Hiroyuki wrote:
> On Fri, 17 Feb 2012 13:46:00 -0800
> akpm@linux-foundation.org wrote:
>
> >
> > The patch titled
> > Subject: memcg: remove PCG_FILE_MAPPED
> > has been added to the -mm tree. Its filename is
> > memcg-remove-pcg_file_mapped.patch
> >
> > Before you just go and hit "reply", please:
> > a) Consider who else should be cc'ed
> > b) Prefer to cc a suitable mailing list as well
> > c) Ideally: find the original patch on the mailing list and do a
> > reply-to-all to that, adding suitable additional cc's
> >
> > *** Remember to use Documentation/SubmitChecklist when testing your code ***
> >
> > The -mm tree is included into linux-next and is updated
> > there every 3-4 working days
> >
> > ------------------------------------------------------
> > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> > Subject: memcg: remove PCG_FILE_MAPPED
> >
> > With the new lock scheme for updating memcg's page stat, we don't need a
> > flag PCG_FILE_MAPPED which was duplicated information of page_mapped().
> >
>
> Johannes and Hillf pointed out this is required.
> Thank you!.
>
> ==
> >From eed3550a81bc53a3d084a295e56654a18455103f Mon Sep 17 00:00:00 2001
> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Date: Mon, 20 Feb 2012 09:19:44 +0900
> Subject: [PATCH] memcg: fix remove PCG_FILE_MAPPED
>
> At move_acount(), accounting information nr_file_mapped per memcg is moved
> from old cgroup to new one.
> The patch memcg-remove-pcg_file_mapped.patch chesk the condition by
>
> if (page_mapped(page))
>
> But we want to count only FILE_MAPPED. Then, this should be
>
> if (!PageAnon(page) && page_mapped(page))
>
> This handles following cases.
> - anon + mapped => false
> - anon + unmapped => false (swap cache)
> - shmem + mapped => true
> - shmem + unmapped => false (swap cache)
> - file + mapped => true
> - file + unmapped => false
>
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
With that one folded in,
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
to the original patch 'memcg: remove PCG_FILE_MAPPED'.
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-28 12:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20120217214600.28F87A01B8@akpm.mtv.corp.google.com>
2012-02-20 0:09 ` + memcg-remove-pcg_file_mapped.patch added to -mm tree KAMEZAWA Hiroyuki
2012-02-28 12:24 ` Johannes Weiner
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).