cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] memcg: simply lock of page stat accounting
@ 2013-05-13  5:03 Sha Zhengju
  2013-05-13  5:04 ` [PATCH V2 1/3] memcg: rewrite the comment about race condition " Sha Zhengju
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Sha Zhengju @ 2013-05-13  5:03 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg
  Cc: mhocko-AlSwsSmVLrQ, kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A,
	akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b,
	hughd-hpIqsD4AKlfQT0dZR+AlfA, gthelen-hpIqsD4AKlfQT0dZR+AlfA,
	Sha Zhengju

Hi,

This is my second attempt to make memcg page stat lock simpler, the
first version: http://www.spinics.net/lists/linux-mm/msg50037.html.

In this version I investigate the potential race conditions among
page stat, move_account, charge, uncharge and try to prove it race
safe of my proposing lock scheme. The first patch is the basis of
the patchset, so if I've made some stupid mistake please do not
hesitate to point it out.

Change log:
v2 <- v1:
   * rewrite comments on race condition
   * split orignal large patch to two parts
   * change too heavy try_get_mem_cgroup_from_page() to rcu_read_lock
     to hold memcg alive

Sha Zhengju (3):
   memcg: rewrite the comment about race condition of page stat accounting
   memcg: alter mem_cgroup_{update,inc,dec}_page_stat() args to memcg pointer
   memcg: simplify lock of memcg page stat account	

 include/linux/memcontrol.h |   14 ++++++-------
 mm/memcontrol.c            |   16 ++++++---------
 mm/rmap.c                  |   49 +++++++++++++++++++++++++++++++++-----------
 3 files changed, 50 insertions(+), 29 deletions(-)

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-05-17 12:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13  5:03 [PATCH V2 0/3] memcg: simply lock of page stat accounting Sha Zhengju
2013-05-13  5:04 ` [PATCH V2 1/3] memcg: rewrite the comment about race condition " Sha Zhengju
2013-05-13  5:05 ` [PATCH V2 2/3] memcg: alter mem_cgroup_{update,inc,dec}_page_stat() args to memcg pointer Sha Zhengju
2013-05-13 12:25   ` Michal Hocko
2013-05-14  9:00     ` Sha Zhengju
2013-05-14  9:10       ` Michal Hocko
     [not found]   ` <1368421524-4937-1-git-send-email-handai.szj-3b8fjiQLQpfQT0dZR+AlfA@public.gmane.org>
2013-05-14  0:15     ` Kamezawa Hiroyuki
     [not found]       ` <51918221.6090402-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2013-05-14  9:03         ` Sha Zhengju
2013-05-13  5:05 ` [PATCH V2 3/3] memcg: simplify lock of memcg page stat account Sha Zhengju
2013-05-13 13:12   ` Michal Hocko
     [not found]     ` <20130513131251.GB5246-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2013-05-13 13:38       ` Michal Hocko
     [not found]         ` <20130513133809.GC5246-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2013-05-14  9:13           ` Sha Zhengju
     [not found]             ` <CAFj3OHW=FCGu6rhChLV2HgUFSRxDur4e8bmugXnq++c-P8mNRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-14  9:28               ` Michal Hocko
2013-05-14  8:35     ` Sha Zhengju
     [not found] ` <1368421410-4795-1-git-send-email-handai.szj-3b8fjiQLQpfQT0dZR+AlfA@public.gmane.org>
2013-05-14  0:41   ` [PATCH V2 0/3] memcg: simply lock of page stat accounting Kamezawa Hiroyuki
     [not found]     ` <51918846.7090006-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2013-05-14  7:13       ` Michal Hocko
2013-05-15 12:35 ` Konstantin Khlebnikov
     [not found]   ` <519380FC.1040504-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2013-05-15 13:41     ` Michal Hocko
2013-05-16  4:28       ` Konstantin Khlebnikov
     [not found]         ` <51946071.4030101-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2013-05-16 13:28           ` Michal Hocko
2013-05-17  5:57             ` Konstantin Khlebnikov
2013-05-17  8:38               ` Michal Hocko
     [not found]                 ` <20130517083806.GB5048-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2013-05-17 10:29                   ` Konstantin Khlebnikov
     [not found]                     ` <5196068D.2050608-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2013-05-17 12:53                       ` Michal Hocko

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).