memcg: avoid THP split in task migration
authorNaoya Horiguchi <[email protected]>
Wed, 21 Mar 2012 23:34:28 +0000 (16:34 -0700)
committerLinus Torvalds <[email protected]>
Thu, 22 Mar 2012 00:55:02 +0000 (17:55 -0700)
commit12724850e8064f64b6223d26d78c0597c742c65a
treef0b91eeae069fe92906db7ad9d0d8a8003f05db4
parentd8c37c480678ebe09bc570f33e085e28049db035
memcg: avoid THP split in task migration

Currently we can't do task migration among memory cgroups without THP
split, which means processes heavily using THP experience large overhead
in task migration.  This patch introduces the code for moving charge of
THP and makes THP more valuable.

Signed-off-by: Naoya Horiguchi <[email protected]>
Acked-by: Hillf Danton <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c