diff options
author | Mark Johnston <markj@FreeBSD.org> | 2025-10-10 13:26:50 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2025-10-10 13:27:36 +0000 |
commit | ffca0c44ffe84352f6fdd24862c070d348d783d4 (patch) | |
tree | b7240ea14cb9c869fb31a429e0d3ad646e212497 | |
parent | 13d866b314f87df901c0a1cbbbc56d56ee0d7b7c (diff) |
-rw-r--r-- | sys/sys/user.h | 3 | ||||
-rw-r--r-- | sys/vm/vm_object.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h index 3183f0792256..1704bc089d85 100644 --- a/sys/sys/user.h +++ b/sys/sys/user.h @@ -617,7 +617,8 @@ struct kinfo_vmobject { } kvo_type_spec; /* Type-specific union */ uint64_t kvo_me; /* Uniq handle for anon obj */ uint64_t kvo_laundry; /* Number of laundry pages. */ - uint64_t _kvo_qspare[5]; + uint64_t kvo_wired; /* Number of wired pages. */ + uint64_t _kvo_qspare[4]; uint32_t kvo_swapped; /* Number of swapped pages */ uint32_t kvo_flags; uint32_t _kvo_ispare[6]; diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index fe84523b7a8f..5b4517d2bf0c 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -2547,6 +2547,9 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only) kvo->kvo_inactive++; else if (vm_page_in_laundry(m)) kvo->kvo_laundry++; + + if (vm_page_wired(m)) + kvo->kvo_wired++; } } |