-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add ftruncate engine documentation and example jobfile
Signed-off-by: Sitsofe Wheeler <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
|