juranga wrote:I guess that ram memory is not volatile, isn´t it? Moreover, I have the RPI 2 so it has 1GB Ram memory, how could I know how many memory would be free to use in my things?
Ram is volatile. Its contents are lost when the machine is shut down.
This implementation (tmpfs) uses "virtual" memory. It shares the available memory with other things such as applications and disk cache. The amount of memory used simply depends on the size of the files. The size given to mount is only a maximum (and it defaults to half the machines memory ). So "free -h" will show no extra memory used after you have created the disk (there is a slight overhead, about 100k, even if the filesystem is empty).
It is common to mount /tmp as tmpfs - just add this line to /etc/fstab
Code: Select all
tmpfs /tmp tmpfs defaults,noatime 0 0
Which apart from being fast, is cleared out on reboot.