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 X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 43487C433ED for ; Tue, 20 Apr 2021 12:21:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 84666613C1 for ; Tue, 20 Apr 2021 12:21:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84666613C1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BE4BE6B0036; Tue, 20 Apr 2021 08:21:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B93FE6B006E; Tue, 20 Apr 2021 08:21:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0DAA6B0070; Tue, 20 Apr 2021 08:21:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0238.hostedemail.com [216.40.44.238]) by kanga.kvack.org (Postfix) with ESMTP id 88ADB6B0036 for ; Tue, 20 Apr 2021 08:21:19 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 3CE803636 for ; Tue, 20 Apr 2021 12:21:19 +0000 (UTC) X-FDA: 78052655478.15.3F5CC51 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf15.hostedemail.com (Postfix) with ESMTP id 7EC5BA0003B5 for ; Tue, 20 Apr 2021 12:21:16 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DBD86613BC; Tue, 20 Apr 2021 12:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618921277; bh=uP+pgn/p+9cOp/ggTRqj+9Q5FU/IEPnyZLH5hUzKUEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p3ksMvQ+1TkJXRLDE0enljtghMjSN6i2qAalOGLBZ8UMZ6hpC15NuiIXmPcLJ7G4F oZQ8iYxBlzHcmpKexLlAb/mrKPt/NEZOeCgTxuB8nZ6fEnYbmqeycgD8CQ0CWQTlNQ 08aAPvNt7Bya/w9Q6xGymYz06/UMozXTAetCy9VC1YiBB+FjIygIVdXXgVVbaE10uB 7TZ5HKhvKKOLfwVapO4kY/xEaf14nxB++sh8mpNZZdGZn6OlCplE1ChEK3OpRTQK8y EGP5gQN1GBCpXFGeTGcNI6FWDXg6f11j3VZi8FBqScbDC6kttS6ty/UJ5fmjqP+2zE gwOZe5N4nLn7g== Date: Tue, 20 Apr 2021 15:21:08 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Alexey Dobriyan , Andrew Morton , Eric Dumazet , Michal Hocko , Mike Rapoport , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] docs: proc.rst: meminfo: briefly describe gaps in memory accounting Message-ID: References: <20210420121354.1160437-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210420121354.1160437-1-rppt@kernel.org> X-Rspamd-Queue-Id: 7EC5BA0003B5 X-Stat-Signature: kuegnoryma6ecwaxkwd9ts6c99y5rhi3 X-Rspamd-Server: rspam02 Received-SPF: none (kernel.org>: No applicable sender policy available) receiver=imf15; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618921276-712890 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: On Tue, Apr 20, 2021 at 03:13:54PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Add a paragraph that explains that it may happen that the counters in > /proc/meminfo do not add up to the overall memory usage. > > Signed-off-by: Mike Rapoport Ooops, forgot to add Michal's Ack, sorry. > --- > v2: > * Add brief changelog > * Fix typo > * Update example about network memory usage according to Eric's comment at > > https://lore.kernel.org/lkml/CANn89iKprp7WYeZy4RRO5jHykprnSCcVBc7Tk14Ui_MA9OK7Fg@mail.gmail.com > > v1: Link: https://lore.kernel.org/lkml/20210420085105.1156640-1-rppt@kernel.org > > Documentation/filesystems/proc.rst | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > index 48fbfc336ebf..8c77a491c436 100644 > --- a/Documentation/filesystems/proc.rst > +++ b/Documentation/filesystems/proc.rst > @@ -929,8 +929,14 @@ meminfo > ~~~~~~~ > > Provides information about distribution and utilization of memory. This > -varies by architecture and compile options. The following is from a > -16GB PIII, which has highmem enabled. You may not have all of these fields. > +varies by architecture and compile options. Please note that it may happen > +that the memory accounted here does not add up to the overall memory usage > +and the difference for some workloads can be substantial. In many cases there > +are other means to find out additional memory using subsystem specific > +interfaces, for instance /proc/net/sockstat for TCP memory allocations. > + > +The following is from a 16GB PIII, which has highmem enabled. > +You may not have all of these fields. > > :: > > -- > 2.29.2 > -- Sincerely yours, Mike.