mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
vmstat: Add a column to vmstat -o output for laundry pages
Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47215
(cherry picked from commit 1249ee57e9
)
This commit is contained in:
parent
9b42b98638
commit
6feb4f363c
@ -1470,6 +1470,7 @@ display_object(struct kinfo_vmobject *kvo)
|
||||
xo_emit("{:resident/%5ju} ", (uintmax_t)kvo->kvo_resident);
|
||||
xo_emit("{:active/%5ju} ", (uintmax_t)kvo->kvo_active);
|
||||
xo_emit("{:inactive/%5ju} ", (uintmax_t)kvo->kvo_inactive);
|
||||
xo_emit("{:laundry/%5ju} ", (uintmax_t)kvo->kvo_laundry);
|
||||
xo_emit("{:refcount/%3d} ", kvo->kvo_ref_count);
|
||||
xo_emit("{:shadowcount/%3d} ", kvo->kvo_shadow_count);
|
||||
|
||||
@ -1572,8 +1573,8 @@ doobjstat(void)
|
||||
xo_warn("Failed to fetch VM object list");
|
||||
return;
|
||||
}
|
||||
xo_emit("{T:RES/%5s} {T:ACT/%5s} {T:INACT/%5s} {T:REF/%3s} {T:SHD/%3s} "
|
||||
"{T:CM/%2s} {T:TP/%3s} {T:PATH/%s}\n");
|
||||
xo_emit("{T:RES/%5s} {T:ACT/%5s} {T:INACT/%5s} {T:LAUND/%5s} "
|
||||
"{T:REF/%3s} {T:SHD/%3s} {T:CM/%2s} {T:TP/%3s} {T:PATH/%s}\n");
|
||||
xo_open_list("object");
|
||||
for (i = 0; i < cnt; i++)
|
||||
display_object(&kvo[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user