1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/sys/amd64
Andrew Gallatin 1cac76c93f vm: reduce lock contention when processing vm batchqueues
Rather than waiting until the batchqueue is full to acquire the lock &
process the queue, we now start trying to acquire the lock using trylocks
when the batchqueue is 1/2 full. This removes almost all contention on the
vm pagequeue mutex for for our busy sendfile() based web workload.
It also greadly reduces the amount of time a network driver ithread
remains blocked on a mutex, and eliminates some packet drops under
heavy load.

So that the system does not loose the benefit of processing large
batchqueues, I've doubled the size of the batchqueues. This way, when
there is no contention, we process the same batch size as before.

This has been run for several months on a busy Netflix server, as well
as on my personal desktop.

Reviewed by: markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D37305
2022-12-14 14:34:07 -05:00
..
acpica acpica: Merge ACPICA 20221020 2022-10-27 22:04:32 -04:00
amd64 pmap: standardize promotion conditions between amd64 and arm64 2022-12-12 11:32:50 -06:00
conf net80211: fix IEEE80211_DEBUG_REFCNT builds 2022-11-29 21:20:37 +00:00
ia32 Introduce the PROC_SIGCODE() macro 2022-07-18 16:27:26 +02:00
include vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
linux sys: use .S for assembly language files that use the preprocessor 2022-11-02 10:29:00 -04:00
linux32 sys: use .S for assembly language files that use the preprocessor 2022-11-02 10:29:00 -04:00
pci
sgx sgx: Remove unused variable. 2022-04-07 17:01:28 -07:00
vmm vmm: Free vCPUs when destroying them. 2022-12-09 10:27:05 -08:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00