Page MenuHomeFreeBSD

Add some accounting to the per-domain full bucket caches.
AbandonedPublic

Authored by markj on Aug 10 2018, 8:42 PM.
Tags
None
Referenced Files
F135034570: D16664.diff
Wed, Nov 5, 11:59 PM
Unknown Object (File)
Tue, Oct 21, 12:12 PM
Unknown Object (File)
Tue, Oct 21, 12:12 PM
Unknown Object (File)
Tue, Oct 21, 12:31 AM
Unknown Object (File)
Sep 26 2025, 6:32 PM
Unknown Object (File)
Sep 25 2025, 6:20 AM
Unknown Object (File)
Sep 20 2025, 6:15 AM
Unknown Object (File)
Sep 16 2025, 2:30 AM
Subscribers
None

Details

Reviewers
None
Summary

Keep track of the number of items in each cache and use the existing UMA
callout to maintain a working set size estimate for each cache. The WSS
estimate is currently unused, but my aim is to use it to make
uma_reclaim() less aggressive in the common case.

The item count (uzd_nitems) has a couple of applications; it will be
useful in D7538, and could also be used to restrict the bucket cache
size of certain zones. In particular, it would be useful for the
vm_page.c page cache zones, which are currently configured with
UMA_ZONE_NOBUCKETCACHE.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18709
Build 18390: arc lint + arc unit