Date: Wed, 6 Sep 2017 17:35:01 +0200 From: Paul van der Zwan <paulz@vanderzwan.org> To: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Arc limits ignored on 11 ? Message-ID: <9BBD08CB-78DC-491B-9AD6-3260655F2CD1@vanderzwan.org>
next in thread | raw e-mail | index | archive | help
Hi,=20 I am running 11 (FreeBSD 11.1-STABLE #0 r323186: Tue Sep 5 23:58:23 = CEST 2017) on a 1GB VPS and want to limit ZFS ARC size to leave some room for mysql = etc. It seems that on 11 the ARC max is sysctl is not a hard limit. I just ran svn update and built world and kernel. After rebooting the new kernel and running make buildworld and = mergemaster the ARC is more than 6 time the size I set as max: $ zfs-stats -A ------------------------------------------------------------------------ ZFS Subsystem Report Wed Sep 6 17:28:05 2017 ------------------------------------------------------------------------ ARC Summary: (HEALTHY) Memory Throttle Count: 0 ARC Misc: Deleted: 20.44k Recycle Misses: 0 Mutex Misses: 19.53k Evict Skips: 15.90m ARC Size: 684.81% 273.93 MiB Target Size: (Adaptive) 100.00% 40.00 MiB Min Size (Hard Limit): 75.21% 30.08 MiB Max Size (High Water): 1:1 40.00 MiB ARC Size Breakdown: Recently Used Cache Size: 11.51% 31.53 MiB Frequently Used Cache Size: 88.49% 242.40 MiB ARC Hash Breakdown: Elements Max: 6.64k Elements Current: 89.33% 5.94k Collisions: 8.44k Chain Max: 2 Chains: 99 = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94 Values from /boot/loader.conf seem to be read but ignored: $ cat /boot/loader.conf aesni_load=3D"YES" geom_eli_load=3D"YES" vfs.root.mountfrom=3D"zfs:zroot/ROOT/default" geli_vtbd0p4_keyfile0_load=3D"YES" geli_vtbd0p4_keyfile0_type=3D"vtbd0p4:geli_keyfile0" geli_vtbd0p4_keyfile0_name=3D"/boot/encryption.key" zfs_load=3D"YES" kern.geom.label.gptid.enable=3D"0" zpool_cache_load=3D"YES" zpool_cache_type=3D"/boot/zfs/zpool.cache" vfs.zfs.arc_max=3D"40M" vfs.zfs.compressed_arc_enabled=3D0 I have set primarycache=3Dmetadata on the zroot to limit cache use but = that does not seem to help: $ zfs get -r primarycache zroot |grep -v @ NAME PROPERTY VALUE SOURCE zroot primarycache metadata local zroot/ROOT primarycache metadata inherited = from zroot zroot/ROOT/default primarycache metadata inherited = from zroot zroot/tmp primarycache metadata inherited = from zroot zroot/usr primarycache metadata inherited = from zroot zroot/usr/home primarycache metadata inherited = from zroot zroot/usr/obj primarycache metadata inherited = from zroot zroot/usr/ports primarycache metadata inherited = from zroot zroot/usr/src primarycache metadata inherited = from zroot zroot/var primarycache metadata inherited = from zroot zroot/var/crash primarycache metadata inherited = from zroot zroot/var/log primarycache metadata inherited = from zroot zroot/var/mail primarycache metadata inherited = from zroot zroot/var/tmp primarycache metadata inherited = from zroot Any idea how I can really restrict ARC size ?=20 TIA Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9BBD08CB-78DC-491B-9AD6-3260655F2CD1>