linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Paul Menage <menage@google.com>
To: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: linux-mm <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Balbir Singh <balbir@linux.vnet.ibm.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Li Zefan <lizf@cn.fujitsu.com>
Subject: Re: [PATCH -mmotm 2/8] cgroup: introduce coalesce css_get() and css_put()
Date: Tue, 15 Dec 2009 18:14:22 -0800	[thread overview]
Message-ID: <6599ad830912151814i1ef48cexf86ae95bca2955ff@mail.gmail.com> (raw)
In-Reply-To: <20091214151943.3893112f.nishimura@mxp.nes.nec.co.jp>

On Sun, Dec 13, 2009 at 10:19 PM, Daisuke Nishimura
<nishimura@mxp.nes.nec.co.jp> wrote:
> Current css_get() and css_put() increment/decrement css->refcnt one by one.
>
> This patch add a new function __css_get(), which takes "count" as a arg and
> increment the css->refcnt by "count". And this patch also add a new arg("count")
> to __css_put() and change the function to decrement the css->refcnt by "count".
>
> These coalesce version of __css_get()/__css_put() will be used to improve
> performance of memcg's moving charge feature later, where instead of calling
> css_get()/css_put() repeatedly, these new functions will be used.
>
> No change is needed for current users of css_get()/css_put().
>
> Changelog: 2009/12/14
> - new patch(I split "[4/7] memcg: improbe performance in moving charge" of
>  04/Dec version into 2 part: cgroup part and memcg part. This is the cgroup
>  part.)
>
> Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>

Acked-by: Paul Menage <menage@google.com>

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-12-16  2:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14  6:17 [PATCH -mmotm 0/8] memcg: move charge at task migration (14/Dec) Daisuke Nishimura
2009-12-14  6:18 ` [PATCH -mmotm 1/8] cgroup: introduce cancel_attach() Daisuke Nishimura
2009-12-14  6:19 ` [PATCH -mmotm 2/8] cgroup: introduce coalesce css_get() and css_put() Daisuke Nishimura
2009-12-16  2:14   ` Paul Menage [this message]
2009-12-14  6:20 ` [PATCH -mmotm 3/8] memcg: add interface to move charge at task migration Daisuke Nishimura
2009-12-14  6:21 ` [PATCH -mmotm 4/8] memcg: move charges of anonymous page Daisuke Nishimura
2009-12-14  6:23 ` [PATCH -mmotm 5/8] memcg: improve performance in moving charge Daisuke Nishimura
2009-12-14  6:24 ` [PATCH -mmotm 6/8] memcg: avoid oom during " Daisuke Nishimura
2009-12-15  2:05   ` KAMEZAWA Hiroyuki
2009-12-14  6:25 ` [PATCH -mmotm 7/8] memcg: move charges of anonymous swap Daisuke Nishimura
2009-12-14  6:26 ` [PATCH -mmotm 8/8] memcg: improbe performance in moving swap charge Daisuke Nishimura
2009-12-15  3:30 ` [PATCH -mmotm 0/8] memcg: move charge at task migration (14/Dec) Balbir Singh
2009-12-15  4:14   ` Daisuke Nishimura
2009-12-17  7:00     ` Daisuke Nishimura
2009-12-17  7:27       ` KAMEZAWA Hiroyuki
2009-12-21  5:31 [PATCH -mmotm 0/8] memcg: move charge at task migration (21/Dec) Daisuke Nishimura
2009-12-21  5:32 ` [PATCH -mmotm 2/8] cgroup: introduce coalesce css_get() and css_put() Daisuke Nishimura

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=6599ad830912151814i1ef48cexf86ae95bca2955ff@mail.gmail.com \
    --to=menage@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=nishimura@mxp.nes.nec.co.jp \
    /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