Does ARC ever conflict/double-cache with Linux page cache? #17827
-
I heard from somewhere that ZFS double caches what's already in the page cache. I'm wondering how often this occurs, and is it possible to disable the linux page cache since we have ARC? Also I think the file /proc/sys/vm/drop_caches is meant for page cache, does it affect ARC too? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Linux page cache is a smart idea that programs in memory can share memory with disk cache. Different programs can load the same shared libraries, like libc, libX11, etc. For position independent code the library in memory contain the same data as on disk, thus you can have just a single page for all copies of libc page in memory and and disk cache. I don't think you want to disable page cache and it is even possible as it fundamental to Linux memory management subsystem. |
Beta Was this translation helpful? Give feedback.
In simplified view, a few points:
OpenZFS is highly tunnable file system and you can customize compression, encryption, caching, block sizes per dataset depending on your needs: performance, storage efficiency, memory usage.