8000 ZFS buffer/cache is counted under used memory · Issue #44 · hishamhm/htop · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

ZFS buffer/cache is counted under used memory #44

Closed

Description

@borutmrak

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):

# grep ^size /proc/spl/kstat/zfs/arcstats 
size                            4    3533162592

Activity

  1. hishamhm commented on Apr 21, 2014

    @hishamhm
    Owner

    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?)

  2. borutmrak commented on Apr 22, 2014

    @borutmrak
    Author

    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.

  3. flaviut commented on Jun 8, 2018

    @flaviut

    It looks like ARC space is considered correctly on FreeBSD, but not Linux.

    Is this bug something you're willing to re-open?

  4. xornet-sl commented on Jun 14, 2019

    @xornet-sl

    @hishamhm Please, could you consider adding this feature for linux?
    It would be great if I could see ARC statistics by different color in memory bar and as a different counter!
    It would be very useful feature!

  5. Harvie commented on Jan 3, 2020

    @Harvie

    This is still a problem. Can you please take a look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0