Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tested with fsstress #29

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ where `<mode>` is one of `posix`, `sync` or `strict`. Example: `make -C tests p

Tip: Redirect stderr for less verbose output: e.g `make test 2>/dev/null`

**Running fsstress with splitfs**
Compile fsstress
```
$ cd scripts/fsstress
$ ./compile_fsstress.sh
```
To run tests with fasstress
```
$ ./run_fsstress.sh 100
```
Note: run_fsstress.sh takes one argument as number of operations to test using fsstress. In the above example, 100 operations are done on target directory /mnt/pmem_emul

## Implementation Notes
1. Only regular files, block special files, and directories (only for consistency guarantees) are handled by SplitFS, the other file types are delegated to POSIX.
2. Only files in the persistent memory mount (`/mnt/pmem_emul/`) are handled by SplitFS, rest are delegated to POSIX.
Expand Down
Binary file removed micro/a.out
Binary file not shown.
Binary file removed micro/rw_expt
Binary file not shown.
26 changes: 26 additions & 0 deletions scripts/fsstress/compile_fsstress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

set -x

cur_dir=$(pwd)
root_dir=`readlink -f ../..`
ltp_dir=$root_dir/ltp-master
fsstress_dir=$ltp_dir/testcases/kernel/fs/fsstress

#get ltp with wget
cd $root_dir
wget https://github.com/linux-test-project/ltp/archive/master.zip
unzip master.zip
rm master.zip

#prepare for installing fsstress
cd $ltp_dir
make autotools
./configure

#installing fsstress
cd $fsstress_dir
rm fsstress
make

cd $cur_dir
12 changes: 12 additions & 0 deletions scripts/fsstress/run_fsstress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -x

cur_dir=$(pwd)
root_dir=`readlink -f ../..`
fsstress_dir=$root_dir/ltp-master/testcases/kernel/fs/fsstress

cd $fsstress_dir
sudo LD_PRELOAD=$root_dir/splitfs/libnvp.so ./fsstress -c -d /mnt/pmem_emul -n $1 -v

cd $cur_dir