diff --git a/README.md b/README.md index 19ca2c1ee9..c4b978073c 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,18 @@ where `` 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. diff --git a/micro/a.out b/micro/a.out deleted file mode 100755 index 4bc4009bcb..0000000000 Binary files a/micro/a.out and /dev/null differ diff --git a/micro/rw_expt b/micro/rw_expt deleted file mode 100755 index b9db0a98e9..0000000000 Binary files a/micro/rw_expt and /dev/null differ diff --git a/scripts/fsstress/compile_fsstress.sh b/scripts/fsstress/compile_fsstress.sh new file mode 100755 index 0000000000..bfa6c25666 --- /dev/null +++ b/scripts/fsstress/compile_fsstress.sh @@ -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 diff --git a/scripts/fsstress/run_fsstress.sh b/scripts/fsstress/run_fsstress.sh new file mode 100755 index 0000000000..1d3a1e20a0 --- /dev/null +++ b/scripts/fsstress/run_fsstress.sh @@ -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