FreeBSD/src eee3a91 (r343330) — sys/kern kern_mtxpool.c
Increase MTX_POOL_SLEEP_SIZE from 128 to 1024. This value remained unchanged for 15 years, and now this bump reduces lock spinning in GEOM and BIO layers while doing ~1.6M IOPS to 4 NVMe on 72-core system from ~25% to ~5% by the cost of additional 28KB RAM. While there, align struct mtx_pool fields to cache lines.
Delta | File | |
---|---|---|
+2 | -2 | sys/kern/kern_mtxpool.c |
+2 | -2 | 1 files |