[Bug 290207] [ZFS] lowering "vfs.zfs.arc.max" to a low value causes kernel threads of "arc_evict" to use 91% CPU and disks to wait. System gets unresponsive...
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Oct 2025 21:49:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290207
--- Comment #24 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #23)
Here is my quick hack for converting vmstat -z output to also
have total bytes (size*used) as an additional column --and to
avoid spaces inside fields and to always have at least a space
between fields. It should make for an easier before vs. after
differences or for sorting or such.
# vmstat -z \
| sed -E 's@^([^:]*) +@\1_@g' | sed -E 's@^([^:]*) +@\1_@g' \
| sed -E 's@(:|,)@\1 @g' \
| awk '
BEGIN { linecount=0; }
{ linecount++; if (linecount==1) { print $0, "Total_Bytes "; next; }
print $0, " ", $2*$4;
}
'
The double sed of the same pattern is because one prefix string
(ending with ":") has two spaces in it to replace.
Something like "sort -nr -k10,10 -k1,1" of the output should
work.
I've not generalized it to also deal with size*free. But such
might be important.
--
You are receiving this mail because:
You are the assignee for the bug.