| From | Daniel Wagner <> | Subject | [PATCH blktests v3 09/12] common/fio: Limit number of random jobs | Date | Wed, 3 May 2023 10:02:55 +0200 |
| |
Limit the number of random threads to 32 for big machines. This still gives enough randomness but limits the resource usage.
Signed-off-by: Daniel Wagner <dwagner@suse.de> --- common/fio | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/fio b/common/fio index 1db6128be632..06659d7d1d84 100644 --- a/common/fio +++ b/common/fio @@ -189,7 +189,8 @@ _run_fio() { # Wrapper around _run_fio used if you need some I/O but don't really care much # about the details _run_fio_rand_io() { - _run_fio --bs=4k --rw=randread --norandommap --numjobs="$(nproc)" \ + _run_fio --bs=4k --rw=randread --norandommap \ + --numjobs="$(OMP_THREAD_LIMIT=32 nproc)" \ --name=reads --direct=1 "$@" } -- 2.40.0
|