[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230503080258.14525-10-dwagner@suse.de>
Date: Wed, 3 May 2023 10:02:55 +0200
From: Daniel Wagner <dwagner@...e.de>
To: linux-nvme@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
Chaitanya Kulkarni <kch@...dia.com>,
Shin'ichiro Kawasaki <shinichiro@...tmail.com>,
Hannes Reinecke <hare@...e.de>, Daniel Wagner <dwagner@...e.de>
Subject: [PATCH blktests v3 09/12] common/fio: Limit number of random jobs
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@...e.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
Powered by blists - more mailing lists