HomeFreeBSD

threads: reimplement tid allocation on top of a bitmap

Description

threads: reimplement tid allocation on top of a bitmap

There are workloads with very bursty tid allocation and since unr tries very
hard to have small-sized bitmaps it keeps reallocating memory. Just doing
buildkernel gives almost 150k calls to free coming from unr.

This also gets rid of the hack which tried to postpone TID reuse.

Reviewed by: kib, markj
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D27101

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D27101: (2/2) threads: reimplement tid allocation on top of a bitmap
Parents
rS367536: threads: introduce a limit for total number
Branches
Unknown
Tags
Unknown