This instance will be upgraded to Heptapod 0.27.1 on 2021-12-02 at 15:00 UTC+1 (a few minutes of down time)

Commit 9a3f9879 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

QEMU test suite: only use 2/3 of available CPU cores. It appears to improve...

QEMU test suite: only use 2/3 of available CPU cores. It appears to improve the repeatability of results in some CPU- and IO-intensive tests.

In other words, don't believe the Hyper-Threading hype :)

--HG--
branch : qemu
parent 44e7c4f52331
......@@ -388,7 +388,8 @@ function job_limit_auto {
# trick to avoid undetected overloads and also to avoid slowdowns when there's nothing to do
sleep 0.2
fi
local max_number=$(nproc)
# don't believe the Hyper-Threading hype :)
local max_number=$(((`nproc` + 1) * 2 / 3 ))
while true; do
# check how many processes are running on the system before deciding to start a new job
local procs_running=$(cat /proc/stat | grep procs_running | cut -d ' ' -f 2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment