[PATCH 0/2] Avoid unnecessary overhead in fault paths due to memcg and rss stats

From: Mel Gorman
Date: Wed Jul 23 2014 - 07:24:59 EST


While looking for something else entirely I spotted two small issues in the
page fault fast path. Enabling memcg takes the RCU read lock unnecessarily
even when the task is not part of a memcg and we fiddle with RSS stats
more than necessary. Details in the patches.

include/linux/memcontrol.h | 8 ++++++++
include/linux/mm_types.h | 1 -
mm/memory.c | 32 +++++++++++++-------------------
3 files changed, 21 insertions(+), 20 deletions(-)

--
1.8.4.5

--
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/