1

On wikipedia, it says that tmpfs is stored on volatile memory rather than persistent storage device. I have done some experiments and come across contradict.

enter image description here (My computer environment-->Mac OS/X parallel Ubuntu 16.04 x64 ) Type

free -m

give back enter image description here

I do not know what "shared" mean. Type

man free

give back enter image description here

Does that mean the "shared" column shows what is Shmem in /proc/meminfo? Keeping typing

vim /proc/meminfo

give back

enter image description here

It does mean part of tmpfs on ram.

But I type

df -lh

give back enter image description here

That means part of tmpfs on disk.

I feel confused! Can someone tell me how tmpfs is implemented (on Linux)? Is it on disk or ram on earth? Or neither.

HannanKan
  • 163
  • 2
  • 14

1 Answers1

-1

tmpfs is a temporary file system that uses volatile memory, like RAM. Please take a look at the manual page: http://man7.org/linux/man-pages/man5/tmpfs.5.html

Krassi Em
  • 182
  • 8