From owner-freebsd-bugs@freebsd.org Sun Aug 6 19:37:08 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBA3BDC58E1 for ; Sun, 6 Aug 2017 19:37:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FDDD6B186 for ; Sun, 6 Aug 2017 19:37:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v76Jb88Y056988 for ; Sun, 6 Aug 2017 19:37:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221290] vmstat output have columns without space Date: Sun, 06 Aug 2017 19:37:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mail@josuah.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2017 19:37:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221290 Bug ID: 221290 Summary: vmstat output have columns without space Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: mail@josuah.net Created attachment 185098 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185098&action= =3Dedit I attached a patch applied to the git repo, and I could not test it with th= is version, but applying the same edit on 11.0-RELEASE worked fine. vmstat displays humanized numbers while stdout is a TTY. But while piping = out through, say, tee(1), the numbers under fre and flt are displayed without a= ny " " when flt's numbers are too big. To reproduce: =E2=94=80=E2=94=80=E2=94=80 stress -m 1 -t 3 & vmstat 1 3 | tee [1] 9628 stress: info: [9628] dispatching hogs: 0 cpu, 0 io, 1 vm, 0 hdd procs memory page disks faults=20=20= =20=20=20=20=20=20 cpu r b w avm fre flt re pi po fr sr ad0 pa0 in sy = cs us sy id 1 0 0 4691676 12188436 1408 0 173 8 1490 171 0 0 192 6998 = 1832 8 1 91 1 0 0 4935316 12036000496115 0 0 12 461929 229 0 0 3 372= =20=20 156 4 23 73 1 0 0 4935316 12062292518046 0 0 0 527749 287 0 0 2 627= =20=20 170 3 24 73 stress: info: [9628] successful run completed in 3s =E2=94=80=E2=94=80=E2=94=80=20 By adding a xo_emit(" ") on dovmstat() { ... } seems to fix the problem (see attached patch). --=20 You are receiving this mail because: You are the assignee for the bug.=