Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp979424iob; Fri, 13 May 2022 18:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqiN68v8jljVTy54p+kxgHrxnYGLFbD4Y1nr9gLNcYbjtfjB8WgEJrKbGJDIlXPucUY1F9 X-Received: by 2002:a1c:2b86:0:b0:392:ae97:2fec with SMTP id r128-20020a1c2b86000000b00392ae972fecmr6663788wmr.165.1652491512811; Fri, 13 May 2022 18:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652491512; cv=none; d=google.com; s=arc-20160816; b=dAoTphgJfsRuoqHqY3155WrKJKgsa8UFY+G+TufdhqGF/K/w28X+tUfx4hTjKAFlkg R6U/zXsOCiqJmkkSh0ZrwtkTU1vawNwe1ooEtehOHJBAxGrHs5gjsdMT0B7+MRzmkjC7 i1CwL90AlYfiKdHjpXOu6z9ZV2wAYx+Nlt6PWEKaOsSnG84AisvwtlgkFQP8yXNMfPnc nO+9W14bDbEeGXb/jTwIE7wdTq/Af1zTxRNiSJV4zVJkPEkimNLjuG1qlGTUXi+9T9b+ pawVwf4Qa14MBcZihIe7pQxy695PTb/IcPeji1sHlhAS5MwcHS1vwqpRtJ+L572X2TBd BoqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=7g2+Ytw7LOFNSmUdcgJm+KVblwr69gQPARUIhiHhirk=; b=I+4Mv2SO4n2pSQzygJUM402xjt0rUbgLWaua0s4+8f3VHE2I2zUxBNFw+lkcN0g27I N9FXa71bcJLqhMfL6oNHuVRrxIAbDprqp89lDz+h/DC22MNvlSlmr506ij4EqMy9c+G+ fmCOg+JOB4/ZmgadssQOrcs60YEXfBnnVSBvrwxjMXogghBZIJjRhxLRhlAxeMH084H4 QOjOL1VL4rGhv7Ov7xqX/2gBjJvL2A/GEcmb+ZOgCxFakg6NGKDSwSmtBZPdqD4m1e2W X67RishnId+GtSXUunegnr80qDQKB/Z4IwGdCo2QKThKRKPu4CFJ++KEXQ9tmK/XmosO uTPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=alLsoOZS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g2-20020adff3c2000000b0020ad5f18d2fsi3552778wrp.155.2022.05.13.18.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=alLsoOZS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DE953DC287; Fri, 13 May 2022 16:54:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350288AbiELI4i (ORCPT + 99 others); Thu, 12 May 2022 04:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350313AbiELIz6 (ORCPT ); Thu, 12 May 2022 04:55:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D278AF16 for ; Thu, 12 May 2022 01:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652345750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7g2+Ytw7LOFNSmUdcgJm+KVblwr69gQPARUIhiHhirk=; b=alLsoOZScoigVFm+ZWFWp49vGePUcTNtqm1WPHN//E0/HslL8uPY2Zrmf3nMbAeb6AfJ1F 3axm6M8d5khC1PSkjvcsrLqMWEzCE1o/RtwXN71zOgemB7RTpDpE9tU6nt0sfLNam8dsGD 5KlOVxtkJiOUq/+I1PSCCm/KsXJ/KN8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-588-ehV-65bgPniGVd3W_Pk-Zw-1; Thu, 12 May 2022 04:55:48 -0400 X-MC-Unique: ehV-65bgPniGVd3W_Pk-Zw-1 Received: by mail-wm1-f72.google.com with SMTP id k16-20020a7bc310000000b0038e6cf00439so1435352wmj.0 for ; Thu, 12 May 2022 01:55:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=7g2+Ytw7LOFNSmUdcgJm+KVblwr69gQPARUIhiHhirk=; b=0oCQMfcTm2gcdkpjXYaHuEHBAFBo7/2YhdTd6RAcizjAnUarzKhHCVmXmA9ceVUWyc xrFowcbHOUrPtBklBppYth9uVyLBN4jAYz4Wntmtir0oZ9lNGWzmBDTlorXDaEM/3s8h kGvQYui0hQ7W6TuaEXAH4TVgOFlcg69D6/GOg8+lKh9pXnJUC26iGngcQQfb242GEHKm KSBBgg2XD18hxln1w+Ya0vx6SC8ajfKMEDHfNYi0RSFGDT6Jrobz7q9kLNCMqi/XNi8S EprYDFsLPjUu3KELyX9KRu+ZQ76YjMatg8536MsSse1/si70Av/oh/0IynqG5VLNgZ8J Xk9w== X-Gm-Message-State: AOAM5330DtE8boT2hx7PbRGnInKV4Iaolzp1Zth2af0vJo7ADRqh2pnA sdajNpXXKFSiRvhugdax1Iz9zSyKT26JmAn9MBISAqRq1GuVeGmaHo7JBuCJfytmju6ZaTgF6IO k4uLRE8izyH/hOPoklO+1snet X-Received: by 2002:adf:d081:0:b0:20c:7f56:abd1 with SMTP id y1-20020adfd081000000b0020c7f56abd1mr25102324wrh.386.1652345747426; Thu, 12 May 2022 01:55:47 -0700 (PDT) X-Received: by 2002:adf:d081:0:b0:20c:7f56:abd1 with SMTP id y1-20020adfd081000000b0020c7f56abd1mr25102301wrh.386.1652345747118; Thu, 12 May 2022 01:55:47 -0700 (PDT) Received: from ?IPV6:2003:cb:c701:d200:ee5d:1275:f171:136d? (p200300cbc701d200ee5d1275f171136d.dip0.t-ipconnect.de. [2003:cb:c701:d200:ee5d:1275:f171:136d]) by smtp.gmail.com with ESMTPSA id bv30-20020a0560001f1e00b0020c5253d900sm3278670wrb.76.2022.05.12.01.55.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 01:55:46 -0700 (PDT) Message-ID: <2f7b7320-6899-93a0-420c-523d53363f58@redhat.com> Date: Thu, 12 May 2022 10:55:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2 1/6] Documentation: filesystems: proc: update meminfo section Content-Language: en-US To: Johannes Weiner Cc: Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Seth Jennings , Dan Streetman , Minchan Kim , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20220510152847.230957-1-hannes@cmpxchg.org> <20220510152847.230957-2-hannes@cmpxchg.org> <7a6f8520-a496-e3c3-1fd9-8a30b7a12b14@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.05.22 20:51, Johannes Weiner wrote: > On Wed, May 11, 2022 at 07:11:06PM +0200, David Hildenbrand wrote: >> On 10.05.22 17:28, Johannes Weiner wrote: >>> Add new entries. Minor corrections and cleanups. >>> >>> Signed-off-by: Johannes Weiner >>> --- >>> Documentation/filesystems/proc.rst | 155 ++++++++++++++++++----------- >>> 1 file changed, 99 insertions(+), 56 deletions(-) >>> >>> diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst >>> index 061744c436d9..736ed384750c 100644 >>> --- a/Documentation/filesystems/proc.rst >>> +++ b/Documentation/filesystems/proc.rst >>> @@ -942,56 +942,71 @@ 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. >>> +Example output. You may not have all of these fields. >>> >>> :: >>> >>> > cat /proc/meminfo >>> >>> - MemTotal: 16344972 kB >>> - MemFree: 13634064 kB >>> - MemAvailable: 14836172 kB >>> - Buffers: 3656 kB >>> - Cached: 1195708 kB >>> - SwapCached: 0 kB >>> - Active: 891636 kB >>> - Inactive: 1077224 kB >>> - HighTotal: 15597528 kB >>> - HighFree: 13629632 kB >>> - LowTotal: 747444 kB >>> - LowFree: 4432 kB >>> - SwapTotal: 0 kB >>> - SwapFree: 0 kB >>> - Dirty: 968 kB >>> - Writeback: 0 kB >>> - AnonPages: 861800 kB >>> - Mapped: 280372 kB >>> - Shmem: 644 kB >>> - KReclaimable: 168048 kB >>> - Slab: 284364 kB >>> - SReclaimable: 159856 kB >>> - SUnreclaim: 124508 kB >>> - PageTables: 24448 kB >>> - NFS_Unstable: 0 kB >>> - Bounce: 0 kB >>> - WritebackTmp: 0 kB >>> - CommitLimit: 7669796 kB >>> - Committed_AS: 100056 kB >>> - VmallocTotal: 112216 kB >>> - VmallocUsed: 428 kB >>> - VmallocChunk: 111088 kB >>> - Percpu: 62080 kB >>> - HardwareCorrupted: 0 kB >>> - AnonHugePages: 49152 kB >>> - ShmemHugePages: 0 kB >>> - ShmemPmdMapped: 0 kB >>> + MemTotal: 32858820 kB >>> + MemFree: 21001236 kB >>> + MemAvailable: 27214312 kB >>> + Buffers: 581092 kB >>> + Cached: 5587612 kB >>> + SwapCached: 0 kB >>> + Active: 3237152 kB >>> + Inactive: 7586256 kB >>> + Active(anon): 94064 kB >>> + Inactive(anon): 4570616 kB >>> + Active(file): 3143088 kB >>> + Inactive(file): 3015640 kB >>> + Unevictable: 0 kB >>> + Mlocked: 0 kB >>> + SwapTotal: 0 kB >>> + SwapFree: 0 kB >>> + Dirty: 12 kB >>> + Writeback: 0 kB >>> + AnonPages: 4654780 kB >>> + Mapped: 266244 kB >>> + Shmem: 9976 kB >>> + KReclaimable: 517708 kB >>> + Slab: 660044 kB >>> + SReclaimable: 517708 kB >>> + SUnreclaim: 142336 kB >>> + KernelStack: 11168 kB >>> + PageTables: 20540 kB >>> + NFS_Unstable: 0 kB >>> + Bounce: 0 kB >>> + WritebackTmp: 0 kB >>> + CommitLimit: 16429408 kB >>> + Committed_AS: 7715148 kB >>> + VmallocTotal: 34359738367 kB >>> + VmallocUsed: 40444 kB >>> + VmallocChunk: 0 kB >>> + Percpu: 29312 kB >>> + HardwareCorrupted: 0 kB >>> + AnonHugePages: 4149248 kB >>> + ShmemHugePages: 0 kB >>> + ShmemPmdMapped: 0 kB >>> + FileHugePages: 0 kB >>> + FilePmdMapped: 0 kB >>> + CmaTotal: 0 kB >>> + CmaFree: 0 kB >>> + HugePages_Total: 0 >>> + HugePages_Free: 0 >>> + HugePages_Rsvd: 0 >>> + HugePages_Surp: 0 >>> + Hugepagesize: 2048 kB >>> + Hugetlb: 0 kB >>> + DirectMap4k: 401152 kB >>> + DirectMap2M: 10008576 kB >>> + DirectMap1G: 24117248 kB >>> >>> MemTotal >>> Total usable RAM (i.e. physical RAM minus a few reserved >>> bits and the kernel binary code) >>> MemFree >>> - The sum of LowFree+HighFree >>> + Total free RAM. On highmem systems, the sum of LowFree+HighFree >>> MemAvailable >>> An estimate of how much memory is available for starting new >>> applications, without swapping. Calculated from MemFree, >>> @@ -1005,8 +1020,9 @@ Buffers >>> Relatively temporary storage for raw disk blocks >>> shouldn't get tremendously large (20MB or so) >>> Cached >>> - in-memory cache for files read from the disk (the >>> - pagecache). Doesn't include SwapCached >>> + In-memory cache for files read from the disk (the >>> + pagecache) as well as tmpfs & shmem. >>> + Doesn't include SwapCached. >>> SwapCached >>> Memory that once was swapped out, is swapped back in but >>> still also is in the swapfile (if memory is needed it >>> @@ -1018,6 +1034,11 @@ Active >>> Inactive >>> Memory which has been less recently used. It is more >>> eligible to be reclaimed for other purposes >>> +Unevictable >>> + Memory that cannot be reclaimed, such as mlocked pages, >>> + ramfs backing pages, secret memfd pages etc. >> >> >> A little imprecise, because this only includes memory to be mapped into >> user space. For example, all kernel allocations are unevictable but not >> accounted here. > > True. How about the below? Sounds good, thanks! -- Thanks, David / dhildenb