Skip to content

Commit

Permalink
Update disktest.go
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Jul 4, 2024
1 parent b97903a commit d68c38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk/disktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func execFioTest(path, devicename, fioSize string) (string, error) {
blockSizes := []string{"4k", "64k", "512k", "1m"}
for _, BS := range blockSizes {
// timeout 35 fio --name=rand_rw_4k --ioengine=libaio --rw=randrw --rwmixread=50 --bs=4k --iodepth=64 --numjobs=2 --size=512MB --runtime=30 --gtod_reduce=1 --direct=1 --filename="/tmp/test.fio" --group_reporting --minimal
cmd2 := exec.Command("timeout", "35", "sudo", "fio", "--name=rand_rw_"+BS, "--ioengine=libaio", "--rw=randrw", "--rwmixread=50", "--bs="+BS, "--iodepth=64", "--numjobs=2", "--size="+fioSize, "--runtime=30", "--gtod_reduce=1", "--direct=1", "--filename=\""+path+"/test.fio\"", "--group_reporting", "--minimal")
cmd2 := exec.Command("timeout", "35", "sudo", "fio", "--name=rand_rw_"+BS, "--ioengine=libaio", "--rw=randrw", "--rwmixread=50", "--bs="+BS, "--iodepth=64", "--numjobs=2", "--size="+fioSize, "--runtime=30", "--gtod_reduce=1", "--direct=1", "--filename="+path+"/test.fio", "--group_reporting", "--minimal")
output, err := cmd2.Output()
if err != nil {
if EnableLoger {
Expand Down

0 comments on commit d68c38f

Please sign in to comment.