From patchwork Tue Apr 20 08:51:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 12213567 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.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,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 76E4DC433B4 for ; Tue, 20 Apr 2021 08:51:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D32ED60FEE for ; Tue, 20 Apr 2021 08:51:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D32ED60FEE 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 3AA7D6B0036; Tue, 20 Apr 2021 04:51:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 382376B006E; Tue, 20 Apr 2021 04:51:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 270186B0070; Tue, 20 Apr 2021 04:51:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0028.hostedemail.com [216.40.44.28]) by kanga.kvack.org (Postfix) with ESMTP id 0F4116B0036 for ; Tue, 20 Apr 2021 04:51:20 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id CA7B6180AD822 for ; Tue, 20 Apr 2021 08:51:19 +0000 (UTC) X-FDA: 78052126278.08.36F2173 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf28.hostedemail.com (Postfix) with ESMTP id 7465E2000277 for ; Tue, 20 Apr 2021 08:51:21 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0621D60FEE; Tue, 20 Apr 2021 08:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618908673; bh=5d/i9+HgBPPIbeM5Ncltph3uy36+LjfabKTydziTuzI=; h=From:To:Cc:Subject:Date:From; b=K1GZLg5BNfcud3M+O+d48O4++/eNqXZTd0y+x+sDL+0hutPGtDnOzKPZ8ynHgIbte rVkB0R4hTvb9ID6UpoLeIItj8UMTiY7/aZJcbH09TZ1n/8mUhdDRfV2Jca4EYp6Uwp 07xQQiCr4w6952ejc3HYS/3F+xNMXj8aSdLVjpaQHM1ro93Hr2FD4uTPStnswJGa0F y4vAWNs+v0UT/VxbWqIp2R1ivdRRI8TcIxHuqYt0J6K6LbWoL5gahUST344zq95mBZ wkmyYb52fGW51+1OrOyL6I1VCgH8rWg+Gg76sQB29YS5fkFKZ5kNwTWSLbBklYG3kS vEPoCpExdLHrA== From: Mike Rapoport To: Jonathan Corbet Cc: Alexey Dobriyan , Andrew Morton , Michal Hocko , Mike Rapoport , Mike Rapoport , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] docs: proc.rst: meminfo: briefly describe gaps in memory accounting Date: Tue, 20 Apr 2021 11:51:05 +0300 Message-Id: <20210420085105.1156640-1-rppt@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 7465E2000277 X-Stat-Signature: dnuiz6et1z6s64k1bcrs9bmnapmkou6g Received-SPF: none (kernel.org>: No applicable sender policy available) receiver=imf28; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618908681-217876 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: From: Mike Rapoport Signed-off-by: Mike Rapoport Acked-by: Michal Hocko --- Documentation/filesystems/proc.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 48fbfc336ebf..bf245151645b 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -929,8 +929,15 @@ 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 is 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 networking +buffers. + +The following is from a 16GB PIII, which has highmem enabled. +You may not have all of these fields. ::