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
This commit is contained in:
Mark Johnston 2024-10-22 12:48:04 +00:00
parent a86373bc93
commit 1249ee57e9

View File

@ -1464,6 +1464,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);
@ -1566,8 +1567,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]);