* Re: Extend shmem proc_meminfo(5)
2025-05-23 10:26 Extend shmem proc_meminfo(5) Carsten Grohmann
@ 2025-05-24 17:52 ` Alejandro Colomar
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2025-05-24 17:52 UTC (permalink / raw)
To: Carsten Grohmann; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]
Hi Carsten,
On Fri, May 23, 2025 at 12:26:17PM +0200, Carsten Grohmann wrote:
> Hi Alejandro,
>
> currently shmem in proc_meminfo(5) is described with "Amount of memory consumed in tmpfs(5) filesystems.".
>
> I think, that's incomplete, as the other types of shares memory are missing.
Thanks for the report!
>
> Therefore, I suggest to change this statement to:
>
> "Amount of memory consumed in tmpfs(5) filesystems, System V and POSIX shared memory, as well as shared anonymous mappings (MAP_SHARED|MAP_ANONYMOUS)."
Does this sound good to you?
man/man5/proc_meminfo.5: Shmem also accounts for other types of shared memory
Reported-by: Carsten Grohmann <carstengrohmann@gmx.de>
Message-ID: <20250523122617.48cf9feb@max.localdomain>
alx@devuan:/srv/alx/src/linux/man-pages/man-pages/contrib$ git diff
diff --git i/man/man5/proc_meminfo.5 w/man/man5/proc_meminfo.5
index c7d201f79..ee4ba2062 100644
--- i/man/man5/proc_meminfo.5
+++ w/man/man5/proc_meminfo.5
@@ -150,7 +150,11 @@ .SH DESCRIPTION
.IR Shmem " %lu (since Linux 2.6.32)"
Amount of memory consumed in
.BR tmpfs (5)
-filesystems.
+filesystems,
+System V,
+and POSIX shared memory,
+as well as shared anonymous mappings
+.RI ( MAP_SHARED|MAP_ANONYMOUS ).
.TP
.IR KReclaimable " %lu (since Linux 4.20)"
Kernel allocations that the kernel will attempt to reclaim
alx@devuan:/srv/alx/src/linux/man-pages/man-pages/contrib$ MANWIDTH=72 diffman-git
--- HEAD:man/man5/proc_meminfo.5
+++ ./man/man5/proc_meminfo.5
@@ -123,7 +123,9 @@
mmap(2)), such as libraries.
Shmem %lu (since Linux 2.6.32)
- Amount of memory consumed in tmpfs(5) filesystems.
+ Amount of memory consumed in tmpfs(5) filesystems,
+ System V, and POSIX shared memory, as well as shared
+ anonymous mappings (MAP_SHARED|MAP_ANONYMOUS).
KReclaimable %lu (since Linux 4.20)
Kernel allocations that the kernel will attempt to
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread