Page MenuHomeFreeBSD

Fix a case where we did not properly track the ub_seq.
ClosedPublic

Authored by jeff on Feb 10 2020, 8:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 11:44 AM
Unknown Object (File)
Feb 11 2024, 8:20 AM
Unknown Object (File)
Dec 20 2023, 2:09 AM
Unknown Object (File)
Sep 18 2023, 6:58 AM
Unknown Object (File)
Sep 18 2023, 6:09 AM
Unknown Object (File)
Sep 18 2023, 6:03 AM
Unknown Object (File)
Sep 3 2023, 1:18 AM
Unknown Object (File)
May 7 2023, 2:10 PM
Subscribers

Details

Summary

uzd_cross did not have a seq set until it was full. If the bucket was reaped in a low memory situation we would not wait for seq to expire or call the dtors. We had a similar problem via uma_zdestroy(). I wanted to place the advance call in cache_bucket_unload() but it just didn't really work out any cleaner.

This now passes invariants with a lot of stress and memory pressure followed by destroying zones.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jeff added reviewers: markj, rlibby.
jeff set the repository for this revision to rS FreeBSD src repository - subversion.
sys/vm/uma_core.c
562 ↗(On Diff #68094)

this was requested by gleb for coverity

markj added inline comments.
sys/vm/uma_core.c
985 ↗(On Diff #68094)

You can micro-optimize this the same way as zone fetch bucket, to avoid looping over bucket entries when it's not necessary to do so.

This revision is now accepted and ready to land.Feb 11 2020, 6:32 PM