Bug 249258 - OpenZFS kstat.zfs.misc.dbufs extremely large
Summary: OpenZFS kstat.zfs.misc.dbufs extremely large
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-fs (Nobody)
Depends on:
Reported: 2020-09-11 21:26 UTC by Eirik Oeverby
Modified: 2020-09-19 13:40 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eirik Oeverby 2020-09-11 21:26:24 UTC
Anything depending on the output of 'sysctl -a' or 'sysctl kstat.zfs.misc.dbufs' will effectively hang 'forever' on my system, and reportedly others too. The system in question is running a poudriere jail, which builds a few hundred packages every night.

System is a 8-core 256GB system; resource congestion is not an issue.

E.g. Puppet will be useless on this system, since 'sysctl -a' is run during fact collection.

Suggestion: Do not gather/output kstat.zfs.misc.dbufs unless specifically requested.
Comment 1 Eirik Oeverby 2020-09-11 21:35:39 UTC
Example output:

# time sysctl kstat.zfs.misc.dbufs | wc
       0       0       0
  186084 6885040 54442005

real	4m49.726s
user	0m0.352s
sys	4m49.402s
Comment 2 Eirik Oeverby 2020-09-17 19:01:30 UTC
Is anything happening here? This breaks various applications that rely on sysctl -a output, including Puppet (configuration management).
Comment 3 Ryan Moeller freebsd_committer 2020-09-19 13:40:00 UTC
This is going to be fixed, but it is waiting on some other things that need to land first.