cxl-micron-reskit / famfs

This is the user space repo for famfs, the fabric-attached memory file system
Apache License 2.0
31 stars 9 forks source link

famfs: Add fio stress test #31

Closed arramesh42 closed 5 months ago

arramesh42 commented 5 months ago

Run fio with multiple files filling up the entire filesystem

jagalactic commented 5 months ago

Please also explain exactly how to run this when you update the PR, to shorten the test/review cycle.

arramesh42 commented 5 months ago

This PR adds a fio based stress test. It expects the fio binary to be installed in the system. This test can be run using the command:

"_make stresstests" => this runs the test for a default runtime of 60 seconds on /dev/dax0.0

It can also be run using the below command, where we can specify custom fio binary path (using -f option) and custom runtime using -r and custom device /dev/dax1.0.

"_sudo ./run_stress_tests.sh -d /dev/dax1.0 -f /usr/local/Repos/Fio/fio/fio -r 300_ " <== this runs the fio test on /dev/dax1.0 using the fio available at the location /usr/Repo/... for a runtime of 5 mins. Note: -f expects the full binary path and not the directory. Also as mentioned above, "-f " is optional, this tests uses system installed fio if it is available in the system.

jagalactic commented 5 months ago

Thanks Aravind