KAMEZAWA Hiroyuki
e94c8a9cbc
memcg: make mem_cgroup_split_huge_fixup() more efficient
...
In split_huge_page(), mem_cgroup_split_huge_fixup() is called to handle
page_cgroup modifcations. It takes move_lock_page_cgroup() and modifies
page_cgroup and LRU accounting jobs and called HPAGE_PMD_SIZE - 1 times.
But thinking again,
- compound_lock() is held at move_accout...then, it's not necessary
to take move_lock_page_cgroup().
- LRU is locked and all tail pages will go into the same LRU as
head is now on.
- page_cgroup is contiguous in huge page range.
This patch fixes mem_cgroup_split_huge_fixup() as to be called once per
hugepage and reduce costs for spliting.
[akpm@linux-foundation.org: fix typo, per Michal]
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-12 20:13:05 -08:00
..
2012-01-09 14:28:38 -08:00
2011-12-30 15:25:52 -08:00
2012-01-12 08:00:30 -08:00
2011-12-19 14:57:07 -05:00
2012-01-09 18:26:26 +00:00
2012-01-09 13:08:28 -08:00
2011-12-27 20:31:38 +01:00
2012-01-03 09:10:09 +01:00
2012-01-09 14:21:03 -08:00
2012-01-06 05:22:21 +04:00
2011-12-23 10:17:51 +11:00
2012-01-03 20:20:01 +00:00
2012-01-10 14:57:40 -08:00
2012-01-04 15:52:42 -08:00
2012-01-08 19:14:59 -05:00
2012-01-03 22:55:17 -05:00
2012-01-09 12:59:24 -08:00
2011-12-28 21:25:35 +08:00
2011-12-19 11:41:40 +01:00
2012-01-03 22:55:19 -05:00
2012-01-10 16:30:42 -08:00
2012-01-10 16:30:42 -08:00
2012-01-03 22:54:57 -05:00
2012-01-07 12:03:30 -08:00
2012-01-10 13:06:32 -05:00
2012-01-08 12:19:57 -08:00
2012-01-08 12:19:57 -08:00
2012-01-04 08:56:31 -06:00
2012-01-06 10:20:21 +00:00
2012-01-04 14:10:28 -05:00
2012-01-12 20:13:04 -08:00
2012-01-03 22:54:58 -05:00
2011-12-27 01:06:33 +01:00
2012-01-12 20:13:04 -08:00
2012-01-03 22:54:55 -05:00
2012-01-10 16:30:43 -08:00
2012-01-09 11:24:59 +01:00
2012-01-04 16:13:05 -08:00
2012-01-06 11:42:52 -08:00
2012-01-03 22:54:56 -05:00
2011-12-30 16:42:19 -05:00
2012-01-09 12:59:24 -08:00
2012-01-09 13:06:28 +01:00
2012-01-03 22:55:17 -05:00
2011-12-23 22:33:58 +00:00
2012-01-03 22:54:55 -05:00
2011-12-28 17:46:46 -05:00
2012-01-09 13:52:09 +01:00
2011-12-30 16:42:19 -05:00
2012-01-12 20:13:03 -08:00
2011-12-21 15:13:54 -08:00
2011-12-27 11:24:29 +02:00
2011-12-27 11:26:41 +02:00
2011-12-26 13:27:44 +02:00
2012-01-10 16:30:49 -08:00
2011-12-22 02:02:20 -05:00
2012-01-12 20:13:03 -08:00
2012-01-04 16:25:45 +04:00
2012-01-12 20:13:05 -08:00
2011-12-21 14:48:43 -08:00
2012-01-10 16:30:45 -08:00
2012-01-03 22:55:15 -05:00
2012-01-12 20:13:05 -08:00
2012-01-12 20:13:03 -08:00
2012-01-11 19:12:10 -08:00
2012-01-12 20:13:05 -08:00
2012-01-03 22:57:13 -05:00
2012-01-03 22:57:12 -05:00
2012-01-06 12:10:25 -08:00
2012-01-09 14:46:52 -08:00
2012-01-04 14:30:43 -05:00
2012-01-05 11:59:18 -05:00
2012-01-03 22:52:34 -05:00
2012-01-07 13:22:46 -05:00
2012-01-07 13:22:46 -05:00
2011-12-19 14:34:13 -05:00
2011-12-21 14:48:43 -08:00
2011-12-27 10:57:13 -06:00
2012-01-07 12:18:52 -08:00
2012-01-12 20:13:05 -08:00
2012-01-10 16:30:42 -08:00
2012-01-10 16:30:41 -08:00
2012-01-06 12:11:40 -08:00
2012-01-11 18:50:26 -08:00
2012-01-06 12:10:26 -08:00
2012-01-06 12:15:21 -08:00
2011-12-22 10:40:20 -08:00
2011-12-21 10:26:37 +01:00
2012-01-10 16:30:54 -08:00
2012-01-05 14:01:21 -05:00
2012-01-08 13:10:57 -08:00
2011-12-25 23:43:11 +01:00
2011-12-25 23:43:05 +01:00
2012-01-04 09:09:35 +04:00
2012-01-10 16:30:54 -08:00
2012-01-03 22:55:07 -05:00
2012-01-06 23:20:13 -05:00
2012-01-06 23:20:13 -05:00
2012-01-03 22:54:56 -05:00
2012-01-10 16:30:44 -08:00
2012-01-06 06:13:35 +04:00
2012-01-12 20:13:03 -08:00
2012-01-10 21:51:23 -08:00
2012-01-03 22:52:40 -05:00
2011-12-25 23:39:11 +01:00
2012-01-09 09:33:57 +09:00
2012-01-03 22:55:07 -05:00
2012-01-10 16:30:54 -08:00
2012-01-05 14:01:21 -05:00
2012-01-09 14:19:33 -08:00
2012-01-03 20:23:18 -05:00
2011-12-30 16:42:19 -05:00
2012-01-10 16:30:43 -08:00
2012-01-03 22:55:19 -05:00
2012-01-03 22:55:12 -05:00
2012-01-03 22:54:56 -05:00
2011-12-21 01:03:23 -05:00
2012-01-08 13:21:22 -08:00
2012-01-04 22:19:55 -08:00
2011-12-30 16:46:02 -05:00
2012-01-09 12:09:47 -08:00
2011-12-21 10:07:39 +01:00
2012-01-06 15:22:04 +01:00
2012-01-10 16:30:54 -08:00
2012-01-10 16:59:59 -08:00