[Bug 290090] vmstat(1) libxo output is invalid if ran in a loop
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 290090] vmstat(1) libxo output is invalid if ran in a loop"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 290090] vmstat(8) libxo output is invalid if ran in a loop"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 290090] vmstat(8) libxo output is invalid if ran in a loop"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 290090] vmstat(8) libxo output is invalid if ran in a loop"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 290090] vmstat(8) libxo output is invalid if ran in a loop"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Oct 2025 11:09:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290090
Bug ID: 290090
Summary: vmstat(1) libxo output is invalid if ran in a loop
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: bugs-freebsd-org916@ketas.si.pri.ee
vmstat 1 --libxo=json
outputs infinite json without formatting it into discrete blocks
example:
> vmstat 1 --libxo=json
{"__version": "1", "processes": {"runnable":2,"waiting":1,"swapped-out":15},
"memory
": {"available-memory":" 5.9G","free-memory":" 360M","total-page-faults":"
5.3K"}, "
paging-rates": {"page-reactivated":10,"paged-in":5,"paged-out":4,"freed":"
6.2K","sc
anned":" 596"}, "device": [{"name":"ad0","transfers":"0"},
{"name":"ad1","transfers
":"0"}], "fault-rates": {"interrupts":2601,"system-calls":"
11K","context-switches"
:" 17K"}, "cpu-statistics": {"user":"12","system":" 8","idle":"80"},
"processes": {
"runnable":0,"waiting":1,"swapped-out":15}, "memory": {"available-memory":"
5.9G","f
ree-memory":" 360M","total-page-faults":" 1.1K"}, "paging-rates":
{"page-reactivated
":0,"paged-in":0,"paged-out":0,"freed":" 1.1K","scanned":" 291"}, "device":
[{"name
":"ad0","transfers":"2"}, {"name":"ad1","transfers":"1"}], "fault-rates":
{"interrup
ts":1632,"system-calls":" 1.8K","context-switches":" 11K"}, "cpu-statistics":
{"use
r":" 2","system":" 1","idle":"97"}, "processes":
{"runnable":0,"waiting":1,"swapped-
out":15}, "memory": {"available-memory":" 5.9G","free-memory":"
360M","total-page-fa
ults":" 907"}, "paging-rates":
{"page-reactivated":0,"paged-in":0,"paged-out":0,"fr
eed":" 835","scanned":" 290"}, "device": [{"name":"ad0","transfers":"2"},
{"name":
"ad1","transfers":"2"}], "fault-rates": {"interrupts":1715,"system-calls":"
1.7K","c
ontext-switches":" 11K"}, "cpu-statistics": {"user":" 1","system":"
1","idle":"98"}
^C
--
You are receiving this mail because:
You are the assignee for the bug.