This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 581
ZFS buffer/cache is counted under used memory #44
Labels
Comments
But does it behave like normal Linux memory cache? (ie, is it a kernelspace cache and if other programs need the memory does it relinquish it?) |
Yes, it does. The limits for the cache are set in /sys/module/zfs/parameters/zfs_arc_max and /sys/module/zfs/parameters/zfs_arc_min, so there might be a minimum amount that is always in use, but the default is 0. |
It looks like ARC space is considered correctly on FreeBSD, but not Linux. Is this bug something you're willing to re-open? |
@hishamhm Please, could you consider adding this feature for linux? |
This is still a problem. Can you please take a look at it? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm running zfsonlinux and htop is counting the ZFS ARC (memory) cache under normal used memory.
This is because ZFS doesn't use normal Linux memory cache but it's own version.
It would be useful if htop could detect if ZFS is running (maybe checking for /dev/zfs) and in that case show the memory used by ZFS cache in a different colour or maybe joined with the normal buffers/cache.
ARC used memory can be checked in /proc/spl/kstat/zfs/arcstats (size):
The text was updated successfully, but these errors were encountered: