3 ms·
Can I ask a question? Does anyone know how to signal to the Operating System NOT TO CACHE these filesystems? This would be ram caching a ram cache which wouldn
by tezza 17y ago
Can I ask a question?
Does anyone know how to signal to the Operating System NOT TO CACHE these filesystems? This would be ram caching a ram cache which wouldn't make performance sense.
I cannot work out if that is part of the tmpfs/ramdisk driver itself, or if people who write these sort of articles don't know about normal read/write caching that occurs in all operating systems.
- timf 17y agoBoth 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