summaryrefslogtreecommitdiffstats
path: root/doc/Build_DMM.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Build_DMM.md')
-rw-r--r--doc/Build_DMM.md35
1 files changed, 16 insertions, 19 deletions
diff --git a/doc/Build_DMM.md b/doc/Build_DMM.md
index bda16b0..283c58d 100644
--- a/doc/Build_DMM.md
+++ b/doc/Build_DMM.md
@@ -1,12 +1,12 @@
# 1. Introduction:
- This document purpose is to build the DMM and run applications on it.
+ The purpose of this document is to illustrate how to build DMM and run applications on it.
Note:
- Users can easily build the DMM by running DMM/scripts/build.sh, which contains following steps.
+ Users can easily build DMM by running DMM/scripts/build.sh, which contains following steps.
# 2. Build DPDK:
- DPDK need to be built first for DMM RTE memory dependency.
+ DPDK needs to be built first for DMM RTE memory dependency.
- Steps :
@@ -14,29 +14,28 @@ Note:
```
#wget http://static.dpdk.org/rel/dpdk-16.04.tar.xz
#tar xvf dpdk-16.04.tar.xz
- #vi dpdk-16.04/config/common_base //make CONFIG_RTE_BUILD_SHARED_LIB=y CONFIG_RTE_EXEC_ENV=y CONFIG_RTE_LIBRTE_EAL=y
+ #vi dpdk-16.04/config/common_base //make CONFIG_RTE_BUILD_SHARED_LIB=y, CONFIG_RTE_EXEC_ENV=y, CONFIG_RTE_LIBRTE_EAL=y
#cd dpdk-16.04
- #make install T=x86_64-native-linuxapp-gcc DESTDIR=/root/dpdk_build/tmp2
+ #make install T=x86_64-native-linuxapp-gcc DESTDIR=/usr -j 4
#cd x86_64-native-linuxapp-gcc
#make //install the dpdk which will generate .so inside lib folder in the path.
```
Note:
- Environment:
- Linux ubuntu 14.04 or some distro which support dpdk-16.04
+ Environment:
+ Linux ubuntu 14.04 or some distro which support dpdk-16.04
# 3. Build DMM:
```
- #cd dmm/build
- #cmake -D DMM_DPDK_INSTALL_DIR=$DPDK_INSTALL_PATH ..
+ #cd $(DMM_DIR)/thirdparty/glog/glog-0.3.4/ && autoreconf -ivf
+ #cd $(DMM_DIR)/build
+ #cmake ..
```
Note:
-
- $DPDK_INSTALL_PATH is the path where DPDK has been installed
-
+ $(DMM_DIR) is the directory where dmm has been cloned.
After cmake all the makefiles and dependent .sh files will be copied under build directory.
```
@@ -49,10 +48,7 @@ Note:
- Hugepage setting:
```
- #vi /etc/default/grub
- //update GRUB_CMDLINE_LINUX_DEFAULT="default_hugepagesz=1G hugepagesz=1G hugepages=8"
- #update-grub
- #reboot
+ #sudo sysctl -w vm.nr_hugepages=1024
```
Check hugepage info
@@ -65,9 +61,9 @@ Check hugepage info
- Mount hugepages:
```
- #mkdir -p /mnt/nstackhuge/
- #mount -t hugetlbfs -o pagesize=1G none /mnt/nstackhuge/ //only 1G pgsize supported now
- #mkdir -p /var/run/ip_module
+ #sudo mkdir -p /mnt/nstackhuge/
+ #sudo mount -t hugetlbfs -o pagesize=2M none /mnt/nstackhuge/
+ #sudo mkdir -p /var/run/ip_module
```
@@ -78,6 +74,7 @@ Check hugepage info
- Enable detail log of nstack by setting env var
```
+ #export LD_LIBRARY_PATH=/dmm/release/lib64
#export NSTACK_LOG_ON=DBG
```