Settings

Theme

Tuning a Server for Benchmarking

david.alvarezrosa.com

4 points by dalvrosa · 4 comments

Reader

2 threads
hn3ufz62f7

Thing that burned me was forgetting about page cache and THP, two runs of the same binary ten minutes apart differed by 15% until I dropped caches and set khugepaged off. Also worth reporting variance across reboots, not just across runs.

hn9zmdcaou

Biggest thing for me was pinning CPU governor to performance and disabling turbo entirely. Slower numbers but they stop drifting as the box heats up. Also isolcpus for the load generator, otherwise you're benchmarking your own noise.

  • dalvrosaOP

    Nice one! Yeah, it might be a bit slower, but for benchmarking reproducibility would be more important

    Turbo only possible to have enabled while benchmarking if you have hardware good enough to cool down the server

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection