Comment 18 for bug 1964992

Revision history for this message
Ghadi Rahme (ghadi-rahme) wrote :

Hello everyone,

I was able to confirm the fix for focal using the test case from the description:
root@zfs-test:~$ free -h
              total used free shared buff/cache available
Mem: 31Gi 247Mi 30Gi 1.0Mi 352Mi 30Gi
Swap: 0B 0B 0B

root@zfs-test:~$ cat /etc/modprobe.d/99-zfs-arc.conf
options zfs zfs_arc_min=536870912
options zfs zfs_arc_max=966367641

root@zfs-test:~$ dpkg -l | grep zfs
ii libzfs2linux 0.8.3-1ubuntu12.15 amd64 OpenZFS filesystem library for Linux
ii zfs-dkms 0.8.3-1ubuntu12.15 all OpenZFS filesystem kernel modules for Linux
ii zfs-zed 0.8.3-1ubuntu12.15 amd64 OpenZFS Event Daemon
ii zfsutils-linux 0.8.3-1ubuntu12.15 amd64 command-line tools to manage OpenZFS filesystems

root@zfs-test:~$ sudo update-initramfs -u -k all

root@zfs-test:~$ reboot

root@zfs-test:~$ arc_summary -s arc

------------------------------------------------------------------------
ZFS Subsystem Report Tue Apr 18 10:22:26 2023
Linux 5.4.0-146-generic 0.8.3-1ubuntu12.15
Machine: zfs-test (x86_64) 0.8.3-1ubuntu12.15

ARC status: HEALTHY
        Memory throttle count: 0

ARC size (current): 0.0 % 0 Bytes
        Target size (adaptive): 100.0 % 921.6 MiB
        Min size (hard limit): 55.6 % 512.0 MiB
        Max size (high water): 1:1 921.6 MiB
        Most Frequently Used (MFU) cache size: n/a 0 Bytes
        Most Recently Used (MRU) cache size: n/a 0 Bytes
        Metadata cache size (hard limit): 75.0 % 691.2 MiB
        Metadata cache size (current): 0.0 % 0 Bytes
        Dnode cache size (hard limit): 10.0 % 69.1 MiB
        Dnode cache size (current): 0.0 % 0 Bytes

ARC hash breakdown:
        Elements max: 0
        Elements current: n/a 0
        Collisions: 0
        Chain max: 0
        Chains: 0

ARC misc:
        Deleted: 0
        Mutex misses: 0
        Eviction skips: 0