From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by kanga.kvack.org (Postfix) with ESMTP id C64FC6B0037 for ; Wed, 23 Jul 2014 07:24:20 -0400 (EDT) Received: by mail-wi0-f172.google.com with SMTP id n3so7597159wiv.17 for ; Wed, 23 Jul 2014 04:24:20 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id gv8si4397192wib.98.2014.07.23.04.24.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jul 2014 04:24:18 -0700 (PDT) From: Mel Gorman Subject: [PATCH 0/2] Avoid unnecessary overhead in fault paths due to memcg and rss stats Date: Wed, 23 Jul 2014 12:24:14 +0100 Message-Id: <1406114656-16350-1-git-send-email-mgorman@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Mel Gorman , Linux Kernel , Linux-MM 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org