26 lines
767 B
Bash
26 lines
767 B
Bash
|
#!/bin/bash
|
||
|
#SBATCH --job-name=fio_test
|
||
|
#SBATCH --output=fio_test_%j.out
|
||
|
#SBATCH --error=fio_test_%j.err
|
||
|
#SBATCH --nodes=2 # Adjust the number of nodes as needed
|
||
|
#SBATCH --ntasks-per-node=1
|
||
|
#SBATCH --time=01:00:00 # Adjust the time limit as needed
|
||
|
|
||
|
# Load necessary modules, if any
|
||
|
# module load fio # Uncomment and adjust if fio is available as a module
|
||
|
|
||
|
# Ensure the script is executable
|
||
|
chmod +x /path/to/io_throughput_test-fio.sh
|
||
|
|
||
|
# Set custom values for parameters
|
||
|
FILE_SIZE="16G"
|
||
|
IODEPTH="32"
|
||
|
NUMJOBS="8"
|
||
|
RUNTIME="600"
|
||
|
IOENGINE="posixaio"
|
||
|
NETWORK_MOUNT="/custom/mount/point"
|
||
|
|
||
|
# Run the script on each allocated node with custom parameters
|
||
|
srun /path/to/fio_throughput_test.sh -s $FILE_SIZE -d $IODEPTH -j $NUMJOBS -r $RUNTIME -e $IOENGINE -m $NETWORK_MOUNT
|
||
|
|