Date: Fri, 15 Jan 2016 18:00:43 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206128] vmstat -z is truncated when stdout is not terminal Message-ID: <bug-206128-8-vMT3oT6zYS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-206128-8@https.bugs.freebsd.org/bugzilla/> References: <bug-206128-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206128 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #2 from Mark Johnston <markj@FreeBSD.org> --- I've noticed this too, but only on some of my systems. The output ends in t= he 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 fi= eld 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", name, So this seems like a libxo bug. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206128-8-vMT3oT6zYS>