From patchwork Thu Nov 26 00:56:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 11932407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19FC7C56202 for ; Thu, 26 Nov 2020 00:56:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6D5B520770 for ; Thu, 26 Nov 2020 00:56:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="hNe83evm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D5B520770 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 92CD26B006E; Wed, 25 Nov 2020 19:56:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8DDE46B0070; Wed, 25 Nov 2020 19:56:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 81B266B0071; Wed, 25 Nov 2020 19:56:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0232.hostedemail.com [216.40.44.232]) by kanga.kvack.org (Postfix) with ESMTP id 6C66F6B006E for ; Wed, 25 Nov 2020 19:56:17 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 3DB8E824999B for ; Thu, 26 Nov 2020 00:56:17 +0000 (UTC) X-FDA: 77524753194.12.sheep72_380d25d2737b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 22AB318008A36 for ; Thu, 26 Nov 2020 00:56:17 +0000 (UTC) X-HE-Tag: sheep72_380d25d2737b X-Filterd-Recvd-Size: 3621 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Thu, 26 Nov 2020 00:56:16 +0000 (UTC) Received: by mail-pf1-f201.google.com with SMTP id k10so319708pfh.17 for ; Wed, 25 Nov 2020 16:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=WW6m8L5ILiyKOjiCLA3OcaWjbEvpgZIBT6xWyxaeAqE=; b=hNe83evmXHNPeoUDa9KHUtwJdsKP0LEGh2o8muVDlhqkycNrye72bmqREzcPsCuWPO SfyycYrmcvZpQL3ksnratthwbFLQRs5KyyWj80HqJTJ4Qd8FzmXPlpXkxmLQQWk4E3il 3KyLXf5vpdkrAicVGTsbpOb6IggG68Zc3WOxIUsP9qtuU34/hIAZXHoqDlttn+mr/UmM Vuqt8udB3MfKiwGDUsElbblakYHGvhvv05BXQa+iG6f7efc6a8NCC+6EDrQm65SP/TxS 874pvchEujZmWrbT4CVryYJkMr3BfFDHMuUH5kPBQYbaEKRo+PUNNeVZ2XY7gNVtl7cY fh/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=WW6m8L5ILiyKOjiCLA3OcaWjbEvpgZIBT6xWyxaeAqE=; b=UacIcxlYr+MO+1pB2M3RQ7GUF/RwPiP99Mm+Uoo8/uTu7sxZlR9k7u1yVJMLuMpFxN CD2mbcz7sfg75IpS0XsI/5zmM0KBWcMg8pe3B48YM85D4/SjQ7EPAGu4CHyfw70aUxSy Dlekte85dewJkxqmQnf/Rqy1Z425JmuyJhOUboG/uVdLwesgv36p2lfMSD099HRwu38r kKcperOv48yXs+kBMyStdXcHa+UDaKENxjn5HkfkiyQp48NrYhe+BCX1qLl6W97d4P/1 AMbDCpKO+C9MXC/I6ELboC7xxFCGYFG3YFNcJJRjUgiPPv0VcVffoAIrYOiD58vXgsIo OJ0Q== X-Gm-Message-State: AOAM530S0/L7m/3Bc1imLIYAuRyZRT3cMU1TT9uMJrODqdoS66Q4M8Dl cJYphgs1vW9SU1okEjFB3FZKYCO4BGD+2A== X-Google-Smtp-Source: ABdhPJzDD9mk0WYMoX9dRvEtwjPauAbZkezzXH6KjIzbn66WmX9gH2+pq21j2WyEle5g7FTSmLqML7/dsCGozg== X-Received: from shakeelb.svl.corp.google.com ([100.116.77.44]) (user=shakeelb job=sendgmr) by 2002:a63:e612:: with SMTP id g18mr456740pgh.388.1606352175534; Wed, 25 Nov 2020 16:56:15 -0800 (PST) Date: Wed, 25 Nov 2020 16:56:01 -0800 Message-Id: <20201126005603.1293012-1-shakeelb@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH 0/2] memcg: add pagetable comsumption to memory.stat From: Shakeel Butt To: Roman Gushchin , Johannes Weiner , Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Shakeel Butt X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Many workloads consumes significant amount of memory in pagetables. This patch series exposes the pagetable comsumption for each memory cgroup. Shakeel Butt (2): mm: move lruvec stats update functions to vmstat.h mm: memcontrol: account pagetables per node Documentation/admin-guide/cgroup-v2.rst | 3 + arch/nds32/mm/mm-nds32.c | 6 +- drivers/base/node.c | 2 +- fs/proc/meminfo.c | 2 +- include/linux/memcontrol.h | 112 ------------------------ include/linux/mm.h | 11 ++- include/linux/mmzone.h | 2 +- include/linux/vmstat.h | 104 ++++++++++++++++++++++ mm/memcontrol.c | 19 ++++ mm/page_alloc.c | 6 +- 10 files changed, 142 insertions(+), 125 deletions(-) Acked-by: Roman Gushchin