I check if /tmp is ramfs, but it is not. It creates files on the hard drive. but when I run df -h it produces:
rootfs 25G 9,4G 15G 40% / devtmpfs 1,9G 0 1,9G 0% /dev tmpfs 1,9G 1,6G 347M 83% /dev/shm tmpfs 1,9G 1,3M 1,9G 1% /run /dev/mapper/vg_micro-root 25G 9,4G 15G 40% / tmpfs 1,9G 0 1,9G 0% /sys/fs/cgroup tmpfs 1,9G 0 1,9G 0% /media /dev/mapper/vg_micro-stack 289G 191M 274G 1% /stack /dev/mapper/vg_micro-home 322G 40G 266G 14% /home /dev/sda2 485M 89M 371M 20% /boot /dev/sda1 200M 19M 182M 10% /boot/efi
This means tmpfs (ramdisks): /dev/shm , /run , /sys/fs/cgroup and /media . But only one of them is designed for temporary ramdisk for communication between processes using files. Here is a description and use of /dev/shm . The only thing is that tmpfs will not dynamically grow , but for my purposes this will be enough (20 MB - 1 GB).
source share