Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e957c4bb
Commit
e957c4bb
authored
Feb 19, 2022
by
Antoine Kaufmann
Browse files
images: use `nproc` for number of make jobs in guest
parent
f83b6297
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
images/scripts/install-mtcp.sh
images/scripts/install-mtcp.sh
+9
-9
images/scripts/install-nopaxos.sh
images/scripts/install-nopaxos.sh
+2
-2
images/scripts/install-tas.sh
images/scripts/install-tas.sh
+3
-3
No files found.
images/scripts/install-mtcp.sh
View file @
e957c4bb
...
@@ -10,7 +10,7 @@ wget https://ftp.gnu.org/gnu/automake/automake-1.16.2.tar.gz
...
@@ -10,7 +10,7 @@ wget https://ftp.gnu.org/gnu/automake/automake-1.16.2.tar.gz
tar
xf automake-1.16.2.tar.gz
tar
xf automake-1.16.2.tar.gz
cd
automake-1.16.2
cd
automake-1.16.2
./configure
./configure
make
-j
4
install
make
-j
`
nproc
`
install
cd
/tmp
cd
/tmp
git clone https://github.com/mtcp-stack/mtcp.git /root/mtcp
git clone https://github.com/mtcp-stack/mtcp.git /root/mtcp
...
@@ -34,15 +34,15 @@ rm -rf dpdk/.git
...
@@ -34,15 +34,15 @@ rm -rf dpdk/.git
# -e 's/CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n/CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=y/' \
# -e 's/CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n/CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=y/' \
# -e 's/CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO/CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/' \
# -e 's/CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO/CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/' \
# dpdk/config/common_base
# dpdk/config/common_base
make
-j
4
-C
dpdk
install
T
=
$RTE_TARGET
make
-j
`
nproc
`
-C
dpdk
install
T
=
$RTE_TARGET
./configure
--with-dpdk-lib
=
$RTE_SDK
/
$RTE_TARGET
CFLAGS
=
"-DMAX_CPUS=8"
./configure
--with-dpdk-lib
=
$RTE_SDK
/
$RTE_TARGET
CFLAGS
=
"-DMAX_CPUS=8"
#sed -i -e 's://#define DEBUG:#define DEBUG:' \
#sed -i -e 's://#define DEBUG:#define DEBUG:' \
# -e 's/RTE_LOG_EMERG/RTE_LOG_DEBUG/g' \
# -e 's/RTE_LOG_EMERG/RTE_LOG_DEBUG/g' \
# dpdk-iface-kmod/dpdk_iface_main.c
# dpdk-iface-kmod/dpdk_iface_main.c
(
cd
dpdk-iface-kmod
&&
make
-j
4
)
(
cd
dpdk-iface-kmod
&&
make
-j
`
nproc
`
)
make
-j
4
make
-j
`
nproc
`
ls
-l
$MTCPDIR
/apps
ls
-l
$MTCPDIR
/apps
...
@@ -59,17 +59,17 @@ touch aclocal.m4 Makefile.in
...
@@ -59,17 +59,17 @@ touch aclocal.m4 Makefile.in
./configure
--without-bzip2
CFLAGS
=
"-O3"
\
./configure
--without-bzip2
CFLAGS
=
"-O3"
\
--with-libmtcp
=
"
$MTCPDIR
/mtcp/"
\
--with-libmtcp
=
"
$MTCPDIR
/mtcp/"
\
--with-libdpdk
=
"
$RTE_SDK
/
$RTE_TARGET
"
--with-libdpdk
=
"
$RTE_SDK
/
$RTE_TARGET
"
make
-j
4
make
-j
`
nproc
`
cd
$MTCPDIR
/apps/lighttpd-mtlinux
cd
$MTCPDIR
/apps/lighttpd-mtlinux
touch
aclocal.m4 Makefile.in
touch
aclocal.m4 Makefile.in
./configure
--without-bzip2
CFLAGS
=
"-O3"
--enable-multithreading
./configure
--without-bzip2
CFLAGS
=
"-O3"
--enable-multithreading
make
-j
4
make
-j
`
nproc
`
cd
$MTCPDIR
/apps/lighttpd-mtlinux-rop
cd
$MTCPDIR
/apps/lighttpd-mtlinux-rop
touch
aclocal.m4 Makefile.in
touch
aclocal.m4 Makefile.in
./configure
--without-bzip2
CFLAGS
=
"-O3 -DREUSEPORT"
--enable-multithreading
./configure
--without-bzip2
CFLAGS
=
"-O3 -DREUSEPORT"
--enable-multithreading
make
-j
4
make
-j
`
nproc
`
cd
$MTCPDIR
cd
$MTCPDIR
...
@@ -80,12 +80,12 @@ cp -r apps/apache_benchmark apps/ab-linux
...
@@ -80,12 +80,12 @@ cp -r apps/apache_benchmark apps/ab-linux
cd
$MTCPDIR
/apps/ab-mtcp
cd
$MTCPDIR
/apps/ab-mtcp
./configure
--with-libmtcp
=
"
$MTCPDIR
/mtcp/"
\
./configure
--with-libmtcp
=
"
$MTCPDIR
/mtcp/"
\
--with-libdpdk
=
"
$RTE_SDK
/
$RTE_TARGET
"
--with-libdpdk
=
"
$RTE_SDK
/
$RTE_TARGET
"
make
-j
4
make
-j
`
nproc
`
# build linux version of ab
# build linux version of ab
cd
$MTCPDIR
/apps/ab-linux
cd
$MTCPDIR
/apps/ab-linux
./configure
./configure
make
-j
4
make
-j
`
nproc
`
# build tas microbenchmarks
# build tas microbenchmarks
...
...
images/scripts/install-nopaxos.sh
View file @
e957c4bb
...
@@ -18,13 +18,13 @@ git clone https://github.com/google/protobuf.git /tmp/protobuf
...
@@ -18,13 +18,13 @@ git clone https://github.com/google/protobuf.git /tmp/protobuf
cd
/tmp/protobuf
cd
/tmp/protobuf
./autogen.sh
./autogen.sh
./configure
./configure
make
-j
4
make
-j
`
nproc
`
make
install
make
install
ldconfig
ldconfig
mkdir
-p
/root
mkdir
-p
/root
git clone https://github.com/nicklijl/simbricks-nopaxos.git /root/nopaxos
git clone https://github.com/nicklijl/simbricks-nopaxos.git /root/nopaxos
cd
/root/nopaxos
cd
/root/nopaxos
make
-j
4
make
-j
`
nproc
`
mv
/tmp/input/nopaxos.config /root/nopaxos.config
mv
/tmp/input/nopaxos.config /root/nopaxos.config
images/scripts/install-tas.sh
View file @
e957c4bb
...
@@ -7,16 +7,16 @@ cd /root/
...
@@ -7,16 +7,16 @@ cd /root/
wget http://fast.dpdk.org/rel/dpdk-18.11.8.tar.gz
wget http://fast.dpdk.org/rel/dpdk-18.11.8.tar.gz
tar
xf dpdk-18.11.8.tar.gz
tar
xf dpdk-18.11.8.tar.gz
cd
dpdk-stable-18.11.8
cd
dpdk-stable-18.11.8
make
-j
4
install
T
=
x86_64-native-linuxapp-gcc
DESTDIR
=
/root/dpdk
make
-j
`
nproc
`
install
T
=
x86_64-native-linuxapp-gcc
DESTDIR
=
/root/dpdk
cd
..
cd
..
rm
-rf
dpdk-
*
rm
-rf
dpdk-
*
git clone https://github.com/tcp-acceleration-service/tas.git /root/tas
git clone https://github.com/tcp-acceleration-service/tas.git /root/tas
cd
/root/tas
cd
/root/tas
make
-j
4
RTE_SDK
=
/root/dpdk
make
-j
`
nproc
`
RTE_SDK
=
/root/dpdk
git clone https://github.com/FreakyPenguin/benchmarks.git /root/tasbench
git clone https://github.com/FreakyPenguin/benchmarks.git /root/tasbench
cd
/root/tasbench/micro_rpc
cd
/root/tasbench/micro_rpc
make echoserver_linux testclient_linux
TAS_CODE
=
"/root/tas"
make echoserver_linux testclient_linux
TAS_CODE
=
"/root/tas"
echo
"blacklist i40e"
>
/etc/modprobe.d/i40e_bl.conf
echo
"blacklist i40e"
>
/etc/modprobe.d/i40e_bl.conf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment