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.
(My computer environment-->Mac OS/X parallel Ubuntu 16.04 x64 )
Type
free -m
I do not know what "shared" mean. Type
man free
Does that mean the "shared" column shows what is Shmem in /proc/meminfo? Keeping typing
vim /proc/meminfo
give back
It does mean part of tmpfs on ram.
But I type
df -lh
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.