summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/tmpfs.txt
diff options
context:
space:
mode:
authorRodrigo Freire <rfreire@redhat.com>2016-01-14 15:21:58 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-14 16:00:49 -0800
commit0bc126d460453736c0e03d9da7ae0e9d4fcf86b3 (patch)
tree93c98c4e2fe8cec166574fc188a03825fc60db3d /Documentation/filesystems/tmpfs.txt
parent6f754ba4cfcc044078d4836056ac45404e1b6e85 (diff)
downloadop-kernel-dev-0bc126d460453736c0e03d9da7ae0e9d4fcf86b3.zip
op-kernel-dev-0bc126d460453736c0e03d9da7ae0e9d4fcf86b3.tar.gz
Documentation/filesystems: describe the shared memory usage/accounting
The Shared Memory accounting support is present in Kernel since commit 4b02108ac1b3 ("mm: oom analysis: add shmem vmstat") and in userland free(1) since 2014. This patch updates the Documentation to reflect this change. Signed-off-by: Rodrigo Freire <rfreire@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems/tmpfs.txt')
-rw-r--r--Documentation/filesystems/tmpfs.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/filesystems/tmpfs.txt b/Documentation/filesystems/tmpfs.txt
index 98ef551..d392e15 100644
--- a/Documentation/filesystems/tmpfs.txt
+++ b/Documentation/filesystems/tmpfs.txt
@@ -17,10 +17,10 @@ RAM, where you have to create an ordinary filesystem on top. Ramdisks
cannot swap and you do not have the possibility to resize them.
Since tmpfs lives completely in the page cache and on swap, all tmpfs
-pages currently in memory will show up as cached. It will not show up
-as shared or something like that. Further on you can check the actual
-RAM+swap use of a tmpfs instance with df(1) and du(1).
-
+pages will be shown as "Shmem" in /proc/meminfo and "Shared" in
+free(1). Notice that these counters also include shared memory
+(shmem, see ipcs(1)). The most reliable way to get the count is
+using df(1) and du(1).
tmpfs has the following uses:
OpenPOWER on IntegriCloud