File: ftruncate.fio

package info (click to toggle)
fio 3.12-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,488 kB
  • sloc: ansic: 65,165; sh: 3,284; python: 1,978; makefile: 657; yacc: 204; lex: 184
file content (27 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Example ftruncate engine jobs

[global]
ioengine=ftruncate
directory=/scratch
size=102404k ; 100Mb+4k
stonewall
filename=truncate
runtime=10s
time_based
direct=1
#
# bs option is stub here. Truncation is performed on the current block offset.
# blocksize value is ignored
bs=4k

# truncate the file to 4Kbytes then repeatedly grow the file back to just over
# its original size using subsequent truncates
[grow-truncate]
rw=write

# Repeatedly change a file to a random size between 0Kbytes and 100Mb
# using truncates
[rand-truncate]
rw=randwrite
norandommap