From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757882AbaGWLYm (ORCPT ); Wed, 23 Jul 2014 07:24:42 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37012 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757641AbaGWLYT (ORCPT ); Wed, 23 Jul 2014 07:24:19 -0400 From: Mel Gorman To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Mel Gorman , Linux Kernel , Linux-MM 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> X-Mailer: git-send-email 1.8.4.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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