From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E51D1C32792 for ; Wed, 24 Aug 2022 17:26:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240100AbiHXR00 (ORCPT ); Wed, 24 Aug 2022 13:26:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240086AbiHXR0X (ORCPT ); Wed, 24 Aug 2022 13:26:23 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A8477CA89 for ; Wed, 24 Aug 2022 10:26:22 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id a4so21646722wrq.1 for ; Wed, 24 Aug 2022 10:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=jQo8Hnb2GH3hf1ONG3xswu3V43RapwZZQv/uLqocxPR835oyqTUFMASIxiUoHL6XPp EbyicGfCO/sXpp4HRUcZkK6eb5S/FJk3LCRWifleT2kwRNWUQdb3Pycb7gz+LLxmY/R5 cAwAKSjcgIGBXG8vtmnslPBHLQtM2g3cCibWehD2SbdsVHqGT2G9+BKT5dnCmoA5yLS/ NVGYZip8bdVm+/+hyVO7QlJ3mzWEUYz9x/mwMcK90WZe3i29zVqh6PZXN9gfUwGFhwoX BqhSoPB12QVEr5eJwWyR6ofuIoW/nLes2Q//tqKQFwWjS9S5Pc7b3jtbxpG9zRwoyvst uW2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=CMJtAiwb/pEamh4pXi9u0BfHn3LZ+6cJ3B1AS5g/jxXMD+YFlpDwiXQA9JAuvbtSsr iZ7pVPK/Dl1ut9nPNtuORemF7lrBIrdwImSLnqfwd2acGBypweZm+9kNlspmlUJVk8oG aRfDi+TmyEYv7CYs+unweibV4q6op/5gF3e3OLWDbeSoAXsAZHyGhwBO1n4hSEvBRzah f/A2DWyuMwWVZ5ZWNJqH1z8dBFy6GD2y/TV417tl3ly8FNaiGv1p9q0EeRAhejCTyfta Y2R0/x24HND6OXKqalN1a7vjkg+n6jTJFc6vPA7t1f/La3S/2+wWbKfOETHCxd5bPPjO n3iQ== X-Gm-Message-State: ACgBeo1sroNL4+0pjCorgrpfoEzFnj9nb186dAcpz2wCpqacHHXucepw tmf+RYrwxiY3GG1/8n7QzusanmWWn9Tlr9nnemtDLA== X-Google-Smtp-Source: AA6agR7iXw73BTfjDZ8jZn+Fm8FhmEI+9YASQfOV4iSJ8ZIWQgBMY6R5SVjUTupDZtCPK8fsP9gfgnCHrt3adgZF1rc= X-Received: by 2002:adf:9ccf:0:b0:225:4934:53e3 with SMTP id h15-20020adf9ccf000000b00225493453e3mr158800wre.210.1661361980453; Wed, 24 Aug 2022 10:26:20 -0700 (PDT) MIME-Version: 1.0 References: <20220823004639.2387269-1-yosryahmed@google.com> <20220823004639.2387269-2-yosryahmed@google.com> <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> In-Reply-To: <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> From: Yosry Ahmed Date: Wed, 24 Aug 2022 10:25:43 -0700 Message-ID: Subject: Re: [PATCH v7 1/4] mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses. To: Ryan Roberts Cc: Tejun Heo , Johannes Weiner , Zefan Li , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Oliver Upton , kvm@vger.kernel.org, Linux Kernel Mailing List , Huang@google.com, Shaoqin , Linux-MM , Cgroups , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, nd@arm.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 24, 2022 at 6:42 AM Ryan Roberts wrote: > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > > index e7aafc82be99..898c99eae8e4 100644 > > --- a/Documentation/filesystems/proc.rst > > +++ b/Documentation/filesystems/proc.rst > > @@ -982,6 +982,7 @@ Example output. You may not have all of these fields. > > SUnreclaim: 142336 kB > > KernelStack: 11168 kB > > PageTables: 20540 kB > > + SecPageTables: 0 kB > > NFS_Unstable: 0 kB > > Bounce: 0 kB > > WritebackTmp: 0 kB > > @@ -1090,6 +1091,9 @@ KernelStack > > Memory consumed by the kernel stacks of all tasks > > PageTables > > Memory consumed by userspace page tables > > +SecPageTables > > + Memory consumed by secondary page tables, this currently > > + currently includes KVM mmu allocations on x86 and arm64. > > nit: I think you have a typo here: "currently currently". Sorry I missed this, thanks for catching it. The below diff fixes it (let me know if I need to send v8 for this, hopefully not). diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 898c99eae8e4..0b3778ec12e1 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1093,7 +1093,7 @@ PageTables Memory consumed by userspace page tables SecPageTables Memory consumed by secondary page tables, this currently - currently includes KVM mmu allocations on x86 and arm64. + includes KVM mmu allocations on x86 and arm64. NFS_Unstable Always zero. Previous counted pages which had been written to the server, but has not been committed to stable storage. > > Thanks, > Ryan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84F95C32796 for ; Wed, 24 Aug 2022 17:26:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id EDCA24D2C8; Wed, 24 Aug 2022 13:26:25 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@google.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h5YfN2dH6ZMm; Wed, 24 Aug 2022 13:26:24 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C62974D301; Wed, 24 Aug 2022 13:26:24 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C99014D2F4 for ; Wed, 24 Aug 2022 13:26:22 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ixB5tEaX5znn for ; Wed, 24 Aug 2022 13:26:21 -0400 (EDT) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id B6C754D2C8 for ; Wed, 24 Aug 2022 13:26:21 -0400 (EDT) Received: by mail-wr1-f43.google.com with SMTP id d16so16325594wrr.3 for ; Wed, 24 Aug 2022 10:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=jQo8Hnb2GH3hf1ONG3xswu3V43RapwZZQv/uLqocxPR835oyqTUFMASIxiUoHL6XPp EbyicGfCO/sXpp4HRUcZkK6eb5S/FJk3LCRWifleT2kwRNWUQdb3Pycb7gz+LLxmY/R5 cAwAKSjcgIGBXG8vtmnslPBHLQtM2g3cCibWehD2SbdsVHqGT2G9+BKT5dnCmoA5yLS/ NVGYZip8bdVm+/+hyVO7QlJ3mzWEUYz9x/mwMcK90WZe3i29zVqh6PZXN9gfUwGFhwoX BqhSoPB12QVEr5eJwWyR6ofuIoW/nLes2Q//tqKQFwWjS9S5Pc7b3jtbxpG9zRwoyvst uW2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=7xYJk822/2r/gelNmp62sX87KanlrYTodHRU6HrN3udckpspTjn8pGfiff0hLyrqvC w8w43c7qtDaorx5+YrxnGA5xFS6V/6Xdnj6SDqIiHE338X3tZ7+2VnDmyGnGYyLRXa8K 6NfvmwrWM2w82I5qIh2eQB84H8lveSjH1BQ+UYi1ffWkFabeeozC1UtekOpuxaW8oekP S6DEk/FMU7QoDouTND004oSGc4Tl5oJ91yYvwFKBAFG6YIt6zt1THt8iTrvqqlXiffHv 8IlkRjfjektPTWIUcIVBx1VL9z2VwKVsAH040c3k20XvMqNbAT48XHqWtoRsu1ug9GOx lQPg== X-Gm-Message-State: ACgBeo2bpGb2AFE7fpt1b/BeFt0e0r7A46kzRsycnfUsJaGOpR1RQPrK 9QfZhKC5+JtDffKRoQyhhFKKXLkXvy5t88drwTe6BQ== X-Google-Smtp-Source: AA6agR7iXw73BTfjDZ8jZn+Fm8FhmEI+9YASQfOV4iSJ8ZIWQgBMY6R5SVjUTupDZtCPK8fsP9gfgnCHrt3adgZF1rc= X-Received: by 2002:adf:9ccf:0:b0:225:4934:53e3 with SMTP id h15-20020adf9ccf000000b00225493453e3mr158800wre.210.1661361980453; Wed, 24 Aug 2022 10:26:20 -0700 (PDT) MIME-Version: 1.0 References: <20220823004639.2387269-1-yosryahmed@google.com> <20220823004639.2387269-2-yosryahmed@google.com> <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> In-Reply-To: <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> From: Yosry Ahmed Date: Wed, 24 Aug 2022 10:25:43 -0700 Message-ID: Subject: Re: [PATCH v7 1/4] mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses. To: Ryan Roberts Cc: Wanpeng Li , kvm@vger.kernel.org, Roman Gushchin , Michal Hocko , Shaoqin , Linux-MM , Zefan Li , kvmarm@lists.cs.columbia.edu, Marc Zyngier , Joerg Roedel , Shakeel Butt , Cgroups , nd@arm.com, Huang@google.com, linux-arm-kernel@lists.infradead.org, Jim Mattson , Andrew Morton , Linux Kernel Mailing List , Johannes Weiner , Tejun Heo , Paolo Bonzini , Vitaly Kuznetsov X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Wed, Aug 24, 2022 at 6:42 AM Ryan Roberts wrote: > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > > index e7aafc82be99..898c99eae8e4 100644 > > --- a/Documentation/filesystems/proc.rst > > +++ b/Documentation/filesystems/proc.rst > > @@ -982,6 +982,7 @@ Example output. You may not have all of these fields. > > SUnreclaim: 142336 kB > > KernelStack: 11168 kB > > PageTables: 20540 kB > > + SecPageTables: 0 kB > > NFS_Unstable: 0 kB > > Bounce: 0 kB > > WritebackTmp: 0 kB > > @@ -1090,6 +1091,9 @@ KernelStack > > Memory consumed by the kernel stacks of all tasks > > PageTables > > Memory consumed by userspace page tables > > +SecPageTables > > + Memory consumed by secondary page tables, this currently > > + currently includes KVM mmu allocations on x86 and arm64. > > nit: I think you have a typo here: "currently currently". Sorry I missed this, thanks for catching it. The below diff fixes it (let me know if I need to send v8 for this, hopefully not). diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 898c99eae8e4..0b3778ec12e1 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1093,7 +1093,7 @@ PageTables Memory consumed by userspace page tables SecPageTables Memory consumed by secondary page tables, this currently - currently includes KVM mmu allocations on x86 and arm64. + includes KVM mmu allocations on x86 and arm64. NFS_Unstable Always zero. Previous counted pages which had been written to the server, but has not been committed to stable storage. > > Thanks, > Ryan _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE46FC38142 for ; Wed, 24 Aug 2022 17:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9wfn3ILlu8/dv6g0sopc4dO4VIuSfFCKXnz73NxMQQQ=; b=bLCC4sCMtyCUhS WWbvfil+P7LQjc84EaemXVnqVSMDPFZZ6rS0M83x/vAPaAEBZmUYdMDqD+hxF2pdODh0JN/5e1JYq TlocRvYDFAMbownPuy1NiDIp4vqun/A8DIN37slUq28+4YQ2ATjf+mdZRqSchuwGbkC4l+54q95OI wD8EGl+z3zYHLsdSM9SztRJm5Z26qO+yIQ9YYtCidExU8jJZfeHaZ8MIffd8Ft/GP0LM/iimrM9Fo MC/r+h2hiSHpLAK5q8GB4xvqzGfCSObGZS64L824rp1e7iubchJdv1e5A5xiBmwb/x/c3lMEMeU9F uN1atN7KSHDV5rGlziBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQu99-00Emgx-CX; Wed, 24 Aug 2022 17:26:31 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQu95-00Emcg-Gc for linux-arm-kernel@lists.infradead.org; Wed, 24 Aug 2022 17:26:28 +0000 Received: by mail-wr1-x429.google.com with SMTP id bs25so21629273wrb.2 for ; Wed, 24 Aug 2022 10:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=jQo8Hnb2GH3hf1ONG3xswu3V43RapwZZQv/uLqocxPR835oyqTUFMASIxiUoHL6XPp EbyicGfCO/sXpp4HRUcZkK6eb5S/FJk3LCRWifleT2kwRNWUQdb3Pycb7gz+LLxmY/R5 cAwAKSjcgIGBXG8vtmnslPBHLQtM2g3cCibWehD2SbdsVHqGT2G9+BKT5dnCmoA5yLS/ NVGYZip8bdVm+/+hyVO7QlJ3mzWEUYz9x/mwMcK90WZe3i29zVqh6PZXN9gfUwGFhwoX BqhSoPB12QVEr5eJwWyR6ofuIoW/nLes2Q//tqKQFwWjS9S5Pc7b3jtbxpG9zRwoyvst uW2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=3nj1pluI8rDbusYGIShxsxIQhpqMbA5ERDeNfb+Oy9bdejv4oi70r5+6nHhqOCDMgA Wbi1AtwC6CgB44l4wLMmMHzgpIJpthek1Sq/yfZ9VIpfQE1GjR686qnGTbth7a/+G2Lt Ss5c3yn8WPb84aXA/q3rrREXa9ka/bKcWv0RT+uGoCnrYpEl35hgw0SVG4UpsP4ukU7t yPNGlOXjp3CNqXpri9i07Wh42/ZPjGQeP82W/kD6i23WdaAoyYdmbH95RUNi6qc4cZML 4bLdz//g+hb481hvQ4STJHYxOt4IXy/pNAGC4OdsS4krr96QbQpxM26asXV0HA2HhrI/ 9lpA== X-Gm-Message-State: ACgBeo37d7ZDmkA8FVzorcpYP0kQ72ejf5396v3CusQtt7aRces0izKe u2VVXckhoBATUlQjUuCsqmAPgVd5p78bV55knYwCww== X-Google-Smtp-Source: AA6agR7iXw73BTfjDZ8jZn+Fm8FhmEI+9YASQfOV4iSJ8ZIWQgBMY6R5SVjUTupDZtCPK8fsP9gfgnCHrt3adgZF1rc= X-Received: by 2002:adf:9ccf:0:b0:225:4934:53e3 with SMTP id h15-20020adf9ccf000000b00225493453e3mr158800wre.210.1661361980453; Wed, 24 Aug 2022 10:26:20 -0700 (PDT) MIME-Version: 1.0 References: <20220823004639.2387269-1-yosryahmed@google.com> <20220823004639.2387269-2-yosryahmed@google.com> <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> In-Reply-To: <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> From: Yosry Ahmed Date: Wed, 24 Aug 2022 10:25:43 -0700 Message-ID: Subject: Re: [PATCH v7 1/4] mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses. To: Ryan Roberts Cc: Tejun Heo , Johannes Weiner , Zefan Li , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Oliver Upton , kvm@vger.kernel.org, Linux Kernel Mailing List , Huang@google.com, Shaoqin , Linux-MM , Cgroups , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, nd@arm.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220824_102627_567458_FECDDC78 X-CRM114-Status: GOOD ( 16.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 24, 2022 at 6:42 AM Ryan Roberts wrote: > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > > index e7aafc82be99..898c99eae8e4 100644 > > --- a/Documentation/filesystems/proc.rst > > +++ b/Documentation/filesystems/proc.rst > > @@ -982,6 +982,7 @@ Example output. You may not have all of these fields. > > SUnreclaim: 142336 kB > > KernelStack: 11168 kB > > PageTables: 20540 kB > > + SecPageTables: 0 kB > > NFS_Unstable: 0 kB > > Bounce: 0 kB > > WritebackTmp: 0 kB > > @@ -1090,6 +1091,9 @@ KernelStack > > Memory consumed by the kernel stacks of all tasks > > PageTables > > Memory consumed by userspace page tables > > +SecPageTables > > + Memory consumed by secondary page tables, this currently > > + currently includes KVM mmu allocations on x86 and arm64. > > nit: I think you have a typo here: "currently currently". Sorry I missed this, thanks for catching it. The below diff fixes it (let me know if I need to send v8 for this, hopefully not). diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 898c99eae8e4..0b3778ec12e1 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1093,7 +1093,7 @@ PageTables Memory consumed by userspace page tables SecPageTables Memory consumed by secondary page tables, this currently - currently includes KVM mmu allocations on x86 and arm64. + includes KVM mmu allocations on x86 and arm64. NFS_Unstable Always zero. Previous counted pages which had been written to the server, but has not been committed to stable storage. > > Thanks, > Ryan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosry Ahmed Subject: Re: [PATCH v7 1/4] mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses. Date: Wed, 24 Aug 2022 10:25:43 -0700 Message-ID: References: <20220823004639.2387269-1-yosryahmed@google.com> <20220823004639.2387269-2-yosryahmed@google.com> <5ac13c91-0e42-533b-42d0-c78573c7aef3@arm.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=PyL5R0h/l4gJt239ptqG1oF6MWjvvRhnBKs2TUqoy18=; b=jQo8Hnb2GH3hf1ONG3xswu3V43RapwZZQv/uLqocxPR835oyqTUFMASIxiUoHL6XPp EbyicGfCO/sXpp4HRUcZkK6eb5S/FJk3LCRWifleT2kwRNWUQdb3Pycb7gz+LLxmY/R5 cAwAKSjcgIGBXG8vtmnslPBHLQtM2g3cCibWehD2SbdsVHqGT2G9+BKT5dnCmoA5yLS/ NVGYZip8bdVm+/+hyVO7QlJ3mzWEUYz9x/mwMcK90WZe3i29zVqh6PZXN9gfUwGFhwoX BqhSoPB12QVEr5eJwWyR6ofuIoW/nLes2Q//tqKQFwWjS9S5Pc7b3jtbxpG9zRwoyvst uW2g== In-Reply-To: <5ac13c91-0e42-533b-42d0-c78573c7aef3-5wv7dgnIgG8@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ryan Roberts Cc: Tejun Heo , Johannes Weiner , Zefan Li , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Oliver Upton , kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux Kernel Mailing List , Huang@g On Wed, Aug 24, 2022 at 6:42 AM Ryan Roberts wrote: > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > > index e7aafc82be99..898c99eae8e4 100644 > > --- a/Documentation/filesystems/proc.rst > > +++ b/Documentation/filesystems/proc.rst > > @@ -982,6 +982,7 @@ Example output. You may not have all of these fields. > > SUnreclaim: 142336 kB > > KernelStack: 11168 kB > > PageTables: 20540 kB > > + SecPageTables: 0 kB > > NFS_Unstable: 0 kB > > Bounce: 0 kB > > WritebackTmp: 0 kB > > @@ -1090,6 +1091,9 @@ KernelStack > > Memory consumed by the kernel stacks of all tasks > > PageTables > > Memory consumed by userspace page tables > > +SecPageTables > > + Memory consumed by secondary page tables, this currently > > + currently includes KVM mmu allocations on x86 and arm64. > > nit: I think you have a typo here: "currently currently". Sorry I missed this, thanks for catching it. The below diff fixes it (let me know if I need to send v8 for this, hopefully not). diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 898c99eae8e4..0b3778ec12e1 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1093,7 +1093,7 @@ PageTables Memory consumed by userspace page tables SecPageTables Memory consumed by secondary page tables, this currently - currently includes KVM mmu allocations on x86 and arm64. + includes KVM mmu allocations on x86 and arm64. NFS_Unstable Always zero. Previous counted pages which had been written to the server, but has not been committed to stable storage. > > Thanks, > Ryan