[patch 0/4] memcg: operate on page quantities internally

From: Johannes Weiner
Date: Wed Feb 09 2011 - 06:02:25 EST


Hi,

this patch set converts the memcg charge and uncharge paths to operate
on multiples of pages instead of bytes. It already was a good idea
before, but with the merge of THP we made a real mess by specifying
huge pages alternatingly in bytes or in number of regular pages.

If I did not miss anything, this should leave only res_counter and
user-visible stuff in bytes. The ABI probably won't change, so next
up is converting res_counter to operate on page quantities.

Hannes

include/linux/sched.h | 4 +-
mm/memcontrol.c | 157 ++++++++++++++++++++++++-------------------------
2 files changed, 78 insertions(+), 83 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/