I have embedded Linux system and it has several tmpfs mounts defined in the fstab. Some of these mounts are involved in systemd.
The customer asks why there is not just one mount for all the volatile "RAM FS" stuff.
Questions:
- Is physical memory allocated for all tmpfs instances from same common source (cache or whatever) so that we do not have to manage it manually?
- When files on one tmpfs mount are deleted, can the memory be reused by other mounts?
- Are there Linux flavors (or config options) where memory for tmpfs is allocated statically?
- Does tmpfs allocate virtual memory space in kernel or consume other precious resources proportional to the defined size of tmpfs?