From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by kanga.kvack.org (Postfix) with ESMTP id EB84E6B0038 for ; Sat, 26 Sep 2015 06:46:08 -0400 (EDT) Received: by padhy16 with SMTP id hy16so129123009pad.1 for ; Sat, 26 Sep 2015 03:46:08 -0700 (PDT) Received: from mx2.parallels.com (mx2.parallels.com. [199.115.105.18]) by mx.google.com with ESMTPS id wp3si11801820pab.160.2015.09.26.03.46.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 03:46:07 -0700 (PDT) From: Vladimir Davydov Subject: [PATCH 0/5] memcg: charge page tables (x86) and pipe buffers Date: Sat, 26 Sep 2015 13:45:52 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Tejun Heo , linux-mm@kvack.org, linux-kernel@vger.kernel.org Hi, There are at least two object types left that can be allocated by an unprivileged process and go uncharged to memcg - pipe buffers and page tables. This patch set tries to make them accounted. Comments are welcome. Thanks, Vladimir Davydov (5): mm: uncharge kmem pages from generic free_page path fs: charge pipe buffers to memcg memcg: teach uncharge_list to uncharge kmem pages mm: add __get_free_kmem_pages helper x86: charge page table pages to memcg arch/x86/include/asm/pgalloc.h | 5 +++-- arch/x86/mm/pgtable.c | 8 ++++---- fs/pipe.c | 2 +- include/linux/gfp.h | 4 +--- include/linux/page-flags.h | 22 ++++++++++++++++++++++ kernel/fork.c | 2 +- mm/memcontrol.c | 21 ++++++++++++++------- mm/page_alloc.c | 38 ++++++++++++++++++++------------------ mm/slub.c | 2 +- 9 files changed, 67 insertions(+), 37 deletions(-) -- 2.1.4 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722AbbIZKqK (ORCPT ); Sat, 26 Sep 2015 06:46:10 -0400 Received: from mx2.parallels.com ([199.115.105.18]:56885 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752678AbbIZKqI (ORCPT ); Sat, 26 Sep 2015 06:46:08 -0400 From: Vladimir Davydov To: Andrew Morton CC: Johannes Weiner , Michal Hocko , Tejun Heo , , Subject: [PATCH 0/5] memcg: charge page tables (x86) and pipe buffers Date: Sat, 26 Sep 2015 13:45:52 +0300 Message-ID: X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: US-EXCH2.sw.swsoft.com (10.255.249.46) To US-EXCH2.sw.swsoft.com (10.255.249.46) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, There are at least two object types left that can be allocated by an unprivileged process and go uncharged to memcg - pipe buffers and page tables. This patch set tries to make them accounted. Comments are welcome. Thanks, Vladimir Davydov (5): mm: uncharge kmem pages from generic free_page path fs: charge pipe buffers to memcg memcg: teach uncharge_list to uncharge kmem pages mm: add __get_free_kmem_pages helper x86: charge page table pages to memcg arch/x86/include/asm/pgalloc.h | 5 +++-- arch/x86/mm/pgtable.c | 8 ++++---- fs/pipe.c | 2 +- include/linux/gfp.h | 4 +--- include/linux/page-flags.h | 22 ++++++++++++++++++++++ kernel/fork.c | 2 +- mm/memcontrol.c | 21 ++++++++++++++------- mm/page_alloc.c | 38 ++++++++++++++++++++------------------ mm/slub.c | 2 +- 9 files changed, 67 insertions(+), 37 deletions(-) -- 2.1.4