HomeFreeBSD

uma: Avoid polling for an invalid SMR sequence number

Description

uma: Avoid polling for an invalid SMR sequence number

Buckets in an SMR-enabled zone can legitimately be tagged with
SMR_SEQ_INVALID. This effectively means that the zone destructor (if
any) was invoked on all items in the bucket, and the contained memory is
safe to reuse. If the first bucket in the full bucket list was tagged
this way, UMA would unnecessarily poll per-CPU state before attempting
to fetch a full bucket from the list.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jan 14 2022, 8:06 PM
Parents
rG4a864f624a70: vm_pageout: Print a more accurate message to the console before an OOM kill
Branches
Unknown
Tags
Unknown