[Bug 229670] Too many vnodes causes ZFS ARC to exceed limit vfs.zfs.arc_max (high ARC "Other" usage)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 3 18:50:20 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229670

--- Comment #18 from Leif Pedersen <leif at ofWilsonCreek.com> ---
(In reply to Leif Pedersen from comment #17)

After upgrading to 12.0, and letting yesterday's cycle run on defaults, I
cranked up maxvnodes to 1048576 (default was 179420) and squashed arc_max to
64M (default was 758M). After a backup cycle, it had madly overrun
vfs.zfs.arc_max. The ARC usage shows 2449M now. (This machine runs rsync-style
backups for me, so it churns through a lot of inodes -- a good test case for
this.) Here are the sysctl stats you asked for:

$ sysctl vfs.zfs.arc_max kern.maxvnodes kstat.zfs.misc.arcstats.other_size
kstat.zfs.misc.arcstats.bonus_size kstat.zfs.misc.arcstats.dnode_size
kstat.zfs.misc.arcstats.dbuf_size kstat.zfs.misc.arcstats.metadata_size
vfs.zfs.arc_max: 67108864
kern.maxvnodes: 1048576
kstat.zfs.misc.arcstats.other_size: 1614528504
kstat.zfs.misc.arcstats.bonus_size: 398285120
kstat.zfs.misc.arcstats.dnode_size: 906573304
kstat.zfs.misc.arcstats.dbuf_size: 309670080
kstat.zfs.misc.arcstats.metadata_size: 936406016

$ top
last pid:  6873;  load averages:  0.36,  0.24,  0.20                           
                                            up 0+13:13:01  12:39:03
46 processes:  1 running, 45 sleeping
CPU:  0.4% user,  0.0% nice,  0.8% system,  0.4% interrupt, 98.5% idle
Mem: 24M Active, 291M Inact, 5389M Wired, 190M Free
ARC: 2449M Total, 440M MFU, 453M MRU, 1376K Anon, 15M Header, 1540M Other
     181M Compressed, 713M Uncompressed, 3.94:1 Ratio
Swap: 46G Total, 46G Free

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list