Question: what is tmpfs used for?
Answer: tmpfs, as the name suggests, is intended to be for temporary storage that is very quick to read and write from and does not need to persist across operating system reboots. tmpfs is used in Linux for /run, /var/run and /var/lock to provide very fast access for runtime data and lock files.