HomeFreeBSD

Only do uz_items accounting for zones that have a limit set in uz_max_items.

Description

Only do uz_items accounting for zones that have a limit set in uz_max_items.
This reduces amount of locking required for these zones.

Also, for cache only zones (UMA_ZFLAG_CACHE) accounting uz_items wasn't
correct at all, since they may allocate items directly from their backing
store and then free them via UMA underflowing uz_items.

Tested by: pho

Details

Provenance
glebiusAuthored on
Parents
rS343051: Make uz_allocs, uz_frees and uz_fails counter(9). This removes some
Branches
Unknown
Tags
Unknown