Skip to content

bench-fio --size is overridden by the implicit --runtime=60 #137

@nobuto-m

Description

@nobuto-m

If --size 128G is specified, it's supposed to take some time to complete the test. However, bench-fio ends after 60 seconds due to the implicit --runtime=60(default).

# time bench-fio \
    --type device --target /dev/sda \
    --size 128G \
    --iodepth 1 --numjobs 1 --mode write -b 4M \
    --output output/test \
    --destructive
 
                   Bench-fio                    
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┓
┃ Setting                        ┃ value       ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━┩
│ Estimated Duration             │ 0:01:00     │
│ Number of benchmarks           │ 1           │
│ Test target(s)                 │ /dev/sda    │
│ Target type                    │ device      │
│ I/O Engine                     │ libaio      │
│ Test mode (read/write)         │ write       │
│ Specified test data size       │ 128G        │
│ Block size                     │ 4M          │
│ IOdepth to be tested           │ 1           │
│ NumJobs to be tested           │ 1           │
│ Time duration per test (s)     │ 60          │
│ Benchmark loops                │ 1           │
│ Direct I/O                     │ 1           │
│ Output folder                  │ output/test │
│ Log interval of perf data (ms) │ 1000        │
│ Invalidate buffer cache        │ 1           │
│ Allow destructive writes       │ True        │
│ Check remote timeout (s)       │ 2           │
└────────────────────────────────┴─────────────┘
/dev/sda ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

real	1m0.610s
user	0m1.838s
sys	0m5.033s

A workaround is to pass --runtime 0 explicitly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions