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:
parent
09ef995baf
commit
d1ca25be49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367691
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user