diff --git a/jobs/fxmark-1hdd.yaml b/jobs/fxmark-1hdd.yaml new file mode 100644 index 000000000..c803f4535 --- /dev/null +++ b/jobs/fxmark-1hdd.yaml @@ -0,0 +1,6 @@ +<< : jobs/fxmark.yaml + +disk: + - 1HDD + +media: hdd diff --git a/jobs/fxmark-1ssd.yaml b/jobs/fxmark-1ssd.yaml new file mode 100644 index 000000000..7ce58a027 --- /dev/null +++ b/jobs/fxmark-1ssd.yaml @@ -0,0 +1,6 @@ +<< : jobs/fxmark.yaml + +disk: + - 1SSD + +media: ssd diff --git a/jobs/fxmark.yaml b/jobs/fxmark.yaml index 1e919842e..26f98c52a 100644 --- a/jobs/fxmark.yaml +++ b/jobs/fxmark.yaml @@ -4,9 +4,6 @@ suite: fxmark testcase: fxmark category: benchmark -disk: -- 1HDD - fxmark: test: - DWAL @@ -32,7 +29,6 @@ fxmark: - DRBH - DRBM - DRBL - media: hdd fstype: - ext4 - ext4_no_jnl diff --git a/tests/fxmark b/tests/fxmark index 09549b26a..904074651 100755 --- a/tests/fxmark +++ b/tests/fxmark @@ -9,12 +9,32 @@ cd $BENCHMARK_ROOT/$testcase || die "can not enter $BENCHMARK_ROOT/$testcase" # fxmark can not be run until we change the source to fit the target machine -# TODO: support more media type: ssd,nvme,mem +# TODO: support more media type: nvme,mem +# after setup_config, the changes are like: +# $ git diff +# diff --git a/bin/run-fxmark.py b/bin/run-fxmark.py +# index 2df42a5..ec3b5df 100755 +# --- a/bin/run-fxmark.py +# +++ b/bin/run-fxmark.py +# @@ -528,6 +528,9 @@ if __name__ == "__main__": +# # ("*", "*", "*", str(cpupol.PHYSICAL_CHIPS * cpupol.CORE_PER_CHIP), "*")) +# ] +# +# + Runner.HDDDEV="/dev/sdc" +# + Runner.SSDDEV="/dev/sdc" +# + run_config = [(Runner.CORE_FINE_GRAIN, PerfMon.LEVEL_LOW, ("hdd", "ext4", "DWAL", "*", "bufferedio")),] +# confirm_media_path() +# for c in run_config: +# runner = Runner(c[0], c[1], c[2]) setup_config() { partition="${partitions%% *}" - sed -i "s#HDDDEV.*=.*#HDDDEV = \"$partition\"#" bin/run-fxmark.py - sed -i "/ confirm_media_path()/i\ run_config = [(Runner.CORE_FINE_GRAIN, PerfMon.LEVEL_LOW, (\"$media\", \"$fstype\", \"$test\", \"*\", \"$directio\")),]" bin/run-fxmark.py + [ "$partition" ] || return + + sed -i "/ confirm_media_path()/i\\ + Runner.HDDDEV = \"$partition\"\n\ + Runner.SSDDEV = \"$partition\"\n\ + run_config = [(Runner.CORE_FINE_GRAIN, PerfMon.LEVEL_LOW, (\"$media\", \"$fstype\", \"$test\", \"*\", \"$directio\")),]" bin/run-fxmark.py } do_backup() @@ -31,9 +51,10 @@ run() { echo -e "Y\nY" | ./bin/run-fxmark.py } + do_backup -setup_config +setup_config || die "failed to setup configuration" run