Skip to content

Commit

Permalink
Merge pull request #1 from Dahca/master
Browse files Browse the repository at this point in the history
README.md clarifications.
  • Loading branch information
fzheart committed Oct 25, 2017
2 parents 94b9221 + a99d57c commit 8c38137
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ As a research prototype, Strata has several limitations, described in [Limitatio

### Building Strata ###
Assume current directory is a project root directory.

##### 0. Change memory configuration
1. Open libfs/src/storage/storage.h
2. Modify `dev_size` array values with each storage size (the same as in your grub conf, see the RUNNING STRATA section) in bytes.
- dev_size[0]: could be always 0 (not used)
- dev_size[1]: dax0.0 size
- dev_size[2]: ssd size : just put 0 for now
- dev_size[3]: HDD size : put 0 for now
- dev_size[4]: dax1.0 size

##### 1. Build kernel
~~~
cd kernel/kbuild
Expand All @@ -28,7 +38,9 @@ make
cd libfs/lib
git clone https://github.com/pmem/nvml
make
tar xvjf jemalloc-4.5.0.tar.bz2
cd jemalloc-4.5.0
./autogen
./configure
make
Expand All @@ -42,7 +54,7 @@ make
~~~
cd kernfs
make
cd test
cd tests
make
~~~
##### 6. Build libshim
Expand All @@ -66,7 +78,7 @@ This step requires rebooting your machine.

##### 2. Use DEV-DAX emulation
~~~
cd util
cd utils
sudo ./use_dax.sh bind
~~~
This instruction will change pmem emulation to use dev-dax mode.
Expand All @@ -86,7 +98,7 @@ TODO: Some instructions to setup storage size (by a script or manually)

##### 4. Setup UIO for SPDK
~~~
cd util
cd utils
sudo ./uio_setup.sh linux config
~~~
To rollback to previous setting,
Expand Down Expand Up @@ -129,7 +141,7 @@ sudo ./run.sh iotest sw 2G 4K 1 #sequential write, 2GB file with 4K IO and 1 thr
in Makefile of libfs, search MLFS_FLAGS as keyword
~~~~
MLFS_FLAGS = -DLIBFS -DMLFS_INFO
#MLFS_FLAGS += -DCONCURRENT
#MLFS_FLAGS += -DCONCURRENT
MLFS_FLAGS += -DINVALIDATION
#MLFS_FLAGS += -DKLIB_HASH
MLFS_FLAGS += -DUSE_SSD
Expand Down

0 comments on commit 8c38137

Please sign in to comment.