Page MenuHomeFreeBSD

(umaperf 4/7) Use a separate lock for the zone and keg.
ClosedPublic

Authored by jeff on Dec 15 2019, 11:38 PM.
Tags
None
Referenced Files
F87220455: D22828.diff
Sun, Jun 30, 10:49 AM
Unknown Object (File)
Thu, Jun 27, 6:40 PM
Unknown Object (File)
Thu, Jun 27, 4:33 PM
Unknown Object (File)
Mon, Jun 24, 11:08 AM
Unknown Object (File)
Sun, Jun 23, 10:53 PM
Unknown Object (File)
May 25 2024, 7:43 AM
Unknown Object (File)
Apr 26 2024, 9:52 PM
Unknown Object (File)
Feb 5 2024, 9:40 PM
Subscribers

Details

Summary

This is part of a series of patches intended to enable first-touch numa policies for UMA by default. It also reduces the cost of uma_zalloc/zfree by approximately 30% each in my tests.

Zone lock protected a few random things that did not provide any real protection so I eliminated them. Now zone lock effectively synchronizes the bucket lists and counts. So it is used in the cache_alloc()/cache_free() path but not below. These holds are all very short. If this lock is still shown to be contending we could further break the zone lock up by domain with a little effort in the bucket accounting.

This helps with crossdomain free because you may have to drain buckets back to the keg layer. This process will now not hold-up the normal allocation/free path. The introduction of uz_import/uz_release also broke any strong relationship between these two layers.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28168
Build 26300: arc lint + arc unit