[Bug 206128] vmstat -z is truncated when stdout is not terminal

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 15 18:00:43 UTC 2016


Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |markj at FreeBSD.org

--- Comment #2 from Mark Johnston <markj at FreeBSD.org> ---
I've noticed this too, but only on some of my systems. The output ends in the
same place, i.e., after we start printing the 32KB malloc bucket stats. It does
not occur if vmstat's stdout is a terminal.

I haven't dug into this very deeply yet, but I noticed that removing the field
width for the zone name makes the problem go away:

1528                 xo_open_instance("zone");
1529                 xo_emit("{d:name/%-20s}{ke:name/%s} {:size/%6" PRIu64 "},
1530                         "{:limit/%6" PRIu64 "},{:used/%8" PRIu64 "},"
1531                         "{:free/%8" PRIu64 "},{:requests/%8" PRIu64 "},"
1532                         "{:fail/%4" PRIu64 "},{:sleep/%4" PRIu64 "}\n",

So this seems like a libxo bug.

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

More information about the freebsd-bugs mailing list