Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp181480pxu; Wed, 25 Nov 2020 16:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWqmSdwzxXBwtkcD+8Q8C62thDRCbDXadOFO75OABkzjbvOdeTcg4pyu+2DvJ1Q8W0WyO8 X-Received: by 2002:aa7:d584:: with SMTP id r4mr316392edq.198.1606352322450; Wed, 25 Nov 2020 16:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606352322; cv=none; d=google.com; s=arc-20160816; b=qa/Cpaoi7CYvQ4iF7cIpxuQenrIuQhe4+TXNYewaeCDL+yYMvtfxSR/jKFGEuWOtio m0x9umQKtQAEY24FQnogAAJnN284MehifKbTCPmDts4JwSv1qxNv3Z76ydBaaDE9wnrV eVKR3eVzqCNH4Mzb/a2Q6ErmNqWMHebOX/UNm9bxwuis+pQUMe6m+gD6d9z1yqI0j5GD LQg+yiJXwnLx3QWWaY7m/GrV4tpjpeH7k2r9WHNye5STpUzC93Dr5YFMpMqZ8n9Z0g+5 H+DSmNHU+dsRS1In4IeSMV/urtPaTS15mjB/Ah5Td+QdZk1obMD8MdF5Rn/idb4b7lRj p+5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=WW6m8L5ILiyKOjiCLA3OcaWjbEvpgZIBT6xWyxaeAqE=; b=YgplB7l3Re+EnDB3SguXDv2+SKn4CH0GvIsqwr8abmo0wTkva2rX5nrbl1J106gOK4 gaQsivOxl19HsMXV1MnxKj62DC1tv0wTZDgZBUKKabEt21jCXz0uQtGw2Kv8rndNWJh8 RTxmOe0rnwrM+9RxhJdBpL9zYy4oWqZXdHnX1gOqpiLvDI0AzBN8X38AjgnckRAxfkxq ZFMg+Id9q8w4GPYd9Emt7xq1XGawY3gcfXtsDuxotAYCrWMoPb7ih8r3IH6RlqzZGj1A +hhzIv4aAf2o2J8LEHilO0eJD1HfZIKg5k7Gsg3W+cNzKbzczh+HkCIrbcUu2vXKbl4A /HRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hNe83evm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si2120467ejd.281.2020.11.25.16.58.19; Wed, 25 Nov 2020 16:58:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hNe83evm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729131AbgKZA4R (ORCPT + 99 others); Wed, 25 Nov 2020 19:56:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgKZA4R (ORCPT ); Wed, 25 Nov 2020 19:56:17 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DDCBC0613D4 for ; Wed, 25 Nov 2020 16:56:16 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id f19so231066pgm.4 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=hBfUnd2fuGOymj+NCu9E7VBFnqhMfctp0Z90i/epgpZnV3DzXsy4rYz8sYhWBhRMP1 3uuXwvJbB08y8tS9CILuTwvQEpsyUjd5OZZj98hBeWr+cL4Bx+Fb/ScDca9ESz0I6HYJ +PpYwGDi8xje5hPB0yMu3TE3+9kendzls76UKYowj/cDamk0w0qO9uYZiiH2sdH4TH8v D7tixznyyt9mq+RtQ3u+efN0KCcsBFRu2hA4e8JRQ32njAaqfrtqItXAPS3RJVFk0JRr uc5zPpjxfhnQmaI+Vb//7SLOE046nMfKIKvwmqjo+Sl2rEHpMWR5vSHVnuxF7lyvEmsa 60MA== X-Gm-Message-State: AOAM530IFAc65KHOhD25ryxgfViVcmuhH52j35iqo7X7XgMoH1ACAS3i zYmrLCbDn6l6HKFfexlYtCNPAOsQDk6+Sw== Sender: "shakeelb via sendgmr" 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.29.2.454.gaff20da3a2-goog