thread: pad tid lock

On a kernel with other changes this bumps 104-way thread creation/destruction
from 0.96 mln ops/s to 1.1 mln ops/s.
This commit is contained in:
Mateusz Guzik 2020-11-14 19:19:27 +00:00
parent 09ef995baf
commit d1ca25be49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367691

View File

@ -135,7 +135,7 @@ static int thread_unsuspend_one(struct thread *td, struct proc *p,
bool boundary);
static void thread_free_batched(struct thread *td);
static struct mtx tid_lock;
static __exclusive_cache_line struct mtx tid_lock;
static bitstr_t *tid_bitmap;
static MALLOC_DEFINE(M_TIDHASH, "tidhash", "thread hash");