Files
linux-bredos/include/linux
David Rientjes 68ae564bba mm, memcg: avoid unnecessary function call when memcg is disabled
While profiling numa/core v16 with cgroup_disable=memory on the command
line, I noticed mem_cgroup_count_vm_event() still showed up as high as
0.60% in perftop.

This occurs because the function is called extremely often even when memcg
is disabled.

To fix this, inline the check for mem_cgroup_disabled() so we avoid the
unnecessary function call if memcg is disabled.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Glauber Costa <glommer@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-12-12 17:38:34 -08:00
..
2012-11-30 12:37:36 +01:00
2012-12-07 23:14:11 +01:00
2012-10-08 13:50:20 +10:30
2012-09-19 19:08:46 -06:00
2012-09-20 14:31:45 +02:00
2012-09-17 15:00:38 -07:00
2012-11-15 00:34:23 +01:00
2012-11-28 11:54:40 +01:00
2012-10-16 18:49:15 -07:00
2012-11-28 21:49:02 -05:00
2012-11-28 21:49:02 -05:00
2012-12-11 17:22:26 -08:00
2012-11-21 10:07:48 +01:00
2012-10-29 21:31:32 +01:00
2012-11-23 12:23:40 +01:00
2012-10-06 03:04:56 +09:00
2012-09-07 14:57:45 -04:00
2012-09-11 10:15:02 +02:00
2012-11-21 15:09:26 -08:00
2012-09-26 13:52:36 -07:00
2012-10-10 01:15:44 -04:00
2012-12-12 17:38:33 -08:00
2012-12-06 11:56:43 -08:00
2012-12-11 17:22:27 -08:00
2012-10-10 20:00:55 +10:30
2012-12-11 17:22:27 -08:00
2012-12-12 17:38:32 -08:00
2012-10-17 15:53:02 -05:00
2012-10-10 22:41:05 -04:00
2012-11-28 13:16:47 -08:00
2012-11-16 14:33:04 -08:00
2012-10-06 03:05:01 +09:00
2012-09-27 12:45:28 +02:00
2012-10-11 20:02:04 -04:00
2012-10-07 00:40:54 -04:00
2012-10-27 15:38:29 -07:00
2012-10-09 16:22:55 +09:00
2012-10-22 15:16:06 -04:00
2012-10-09 16:22:32 +09:00
2012-10-22 16:58:28 -07:00
2012-11-15 17:20:58 -08:00
2012-09-05 17:21:36 -07:00