diff options
author | Alexander Motin <[email protected]> | 2023-11-07 14:35:40 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-07 11:35:40 -0800 |
commit | 58398cbd035116ba1d5756bae338664573e60d21 (patch) | |
tree | 37641313dbf5ec007835e9d284f3488234b66410 /CODE_OF_CONDUCT.md | |
parent | e36ff84c338d2f7b15aef2538f6a9507115bbf4a (diff) |
FreeBSD: Optimize large kstat outputs
- Use sbuf_new_for_sysctl() to reduce double-buffering on sysctl
output.
- Use much faster sbuf_cat() instead of sbuf_printf("%s").
Together it reduces `sysctl kstat.zfs.misc.dbufs` time from minutes
to seconds, making dbufstat almost usable.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored by: iXsystems, Inc.
Closes #15495
Diffstat (limited to 'CODE_OF_CONDUCT.md')
0 files changed, 0 insertions, 0 deletions