github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/microbenchmarks/disk/loadgen/README.md (about) 1 `loadgen.sh` is a simple script for generating disk load for benchmark tests 2 3 ## Usage 4 5 Running `loadgen.sh` by itself lists all mount points. 6 7 ```console 8 $ ./loadgen.sh 9 ``` 10 11 Mount points are passed to `loadgen.sh` to generate load. The load is randomly distributed across the passed in mount points. Note that a mount point can be passed in more than once to give it a higher weight. 12 13 Example with mount point passed in twice. 14 15 ```console 16 $ ./loadgen.sh /ais/sda /ais/sdb /ais/sdb 17 ``` 18 19 Example with the `/` mount point 20 21 ```console 22 $ sudo -E /bin/bash ./loadgen.sh /ais/sda / /ais/sdc 23 ``` 24 25 `loadgen.sh` also accepts a number environment variables 26 27 | Environment Variable Name | Description | Default Value | 28 | --- | --- | --- | 29 | seconds | duration in seconds | 50 | 30 | workers | number of workers | 1 | 31 | iobatch | number of io operations a worker performs on a mount point before switching | 1000 | 32 | pct_read | percentage of io operations that are read requests | 75 | 33