[PATCH blktests v3 09/12] common/fio: Limit number of random jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux