diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-01-27 08:40:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-01-27 08:40:06 +0000 |
commit | d1e5520d3416e582a49f9a4c3bd7d63b5da7f401 (patch) | |
tree | 87fa933b67164201f9d90ec46af7eeb43dc6eb97 /etc/MAKEDEV.common | |
parent | a8abe68c89c986c710d9956fe5f099ed3fbbb02c (diff) |
Replace the malloc spinlock with a mutex. This lock is held over system calls
which run for many cycles and may even sleep. This leads to other threads
spinning for a long time waiting on the lock. Using a mutex means those
threads go to sleep and get woken up when the lock is released, which results
in a lot less CPU usage. More work is needed to improve the performance of
threaded code that suffers from malloc lock contention, but this diff makes
ports like Firefox significantly more usable.
Tested by many.
ok mpi@, guenther@, tedu@, jca@
Diffstat (limited to 'etc/MAKEDEV.common')
0 files changed, 0 insertions, 0 deletions