]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: get rid of once-per-second cache shrinking for dead memcgs
authorGlauber Costa <glommer@parallels.com>
Thu, 29 Nov 2012 03:17:07 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:00 +0000 (16:23 +1100)
commit58df26a7b96eac69101ba2d428df41abb507bd47
tree7f9be77265a4b7392877aa7a80b929322f655d2e
parentb67f4e1c506cdbccef4cb25331b1e1a04492030b
memcg: get rid of once-per-second cache shrinking for dead memcgs

The idea is to synchronously do it, leaving it up to the shrinking
facilities in vmscan.c and/or others.  Not actively retrying shrinking may
leave the caches alive for more time, but it will remove the ugly wakeups.
 One would argue that if the caches have free objects but are not being
shrunk, it is because we don't need that memory yet.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/slab.h
mm/memcontrol.c