Where does the
tmpfs file system reside? In RAM or swap?
tmpfs filesystems (and thus
devtmpfs filesytems) are implemented in Linux as essentially parts of the file and directory caches that have no persistent backing storage. The file data are, unlike
ramfs filesystems, swappable however. So the file data can be either in physical RAM or held on a swap volume on a disc.
Note the plural, by the way. It is possible, and indeed usual with systems like the nosh
system-manager and systemd, to have multiple
- Jonathan de Boyne Pollard (2018).
system-manager. nosh Guide. Softwares.
- Linus Torvalds et al. (2005).
Documentation/filesystems/tmpfs.txt. Linux. GitHub.
- Rob Landley et al. (2005).
Documentation/filesystems/ramfs-rootfs-initramfs.txt. Linux. GitHub.