5 ms·
Both ramfs and tmpfs on Linux cause writes directly to the page cache, just like a normal write but without a backing store (though in tmpfs' case, the backing
by timf 17y ago
Both ramfs and tmpfs on Linux cause writes directly to the page cache, just like a normal write but without a backing store (though in tmpfs' case, the backing store is swap). So there is no double RAM usage.
This is confirmed in these docs:
Documentation/filesystems/ramfs-rootfs-initramfs.txt
Documentation/filesystems/tmpfs.txt