-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ioengines: implement dircreate, dirstat, dirdelete engines to diroper…
…ations.c Similar to file operation, directory operation performance is an important benchmark to file system in practice. * dircreate engine measures directories create performance * dirstat engine measures directories lookup performance * dirdelete engine measures directories delete performance Signed-off-by: friendy-su <friendy.su@sony.com>
- Loading branch information
1 parent
f226220
commit dff9b9b
Showing
6 changed files
with
208 additions
and
5 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
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,25 @@ | ||
# Example dircreate job | ||
# | ||
# create_on_open is needed so that the open happens during the run and not the | ||
# setup. | ||
# | ||
# openfiles needs to be set so that you do not exceed the maximum allowed open | ||
# files. | ||
# | ||
# filesize needs to be set to a non zero value so fio will actually run, but the | ||
# IO will not really be done and the write latency numbers will only reflect the | ||
# open times. | ||
[global] | ||
create_on_open=1 | ||
nrfiles=30 | ||
ioengine=dircreate | ||
fallocate=none | ||
filesize=4k | ||
openfiles=1 | ||
|
||
[t0] | ||
[t1] | ||
[t2] | ||
[t3] | ||
[t4] | ||
[t5] |
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,18 @@ | ||
# Example dirdelete job | ||
|
||
# 'filedelete' engine only do 'rmdir(dirname)'. | ||
# 'filesize' must be set, then directories will be created at setup stage. | ||
# 'unlink' is better set to 0, since the directory is deleted in measurement. | ||
# the options disabled completion latency output such as 'disable_clat' and 'gtod_reduce' must not set. | ||
[global] | ||
ioengine=dirdelete | ||
filesize=4k | ||
nrfiles=200 | ||
unlink=0 | ||
|
||
[t0] | ||
[t1] | ||
[t2] | ||
[t3] | ||
[t4] | ||
[t5] |
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,19 @@ | ||
# Example dirstat job | ||
|
||
# 'dirstat' engine only do 'stat(dirname)', file will not be open(). | ||
# 'filesize' must be set, then files will be created at setup stage. | ||
|
||
[global] | ||
ioengine=dirstat | ||
numjobs=10 | ||
filesize=4k | ||
nrfiles=5 | ||
thread | ||
|
||
[t0] | ||
[t1] | ||
[t2] | ||
[t3] | ||
[t4] | ||
[t5] | ||
|
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