Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hpdos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SYNERG
hpdos
Commits
390ef402
Commit
390ef402
authored
Jun 11, 2021
by
Shah Rinku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
af8d2850
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
code/mTCP_server_MDcache/README.md
code/mTCP_server_MDcache/README.md
+20
-12
No files found.
code/mTCP_server_MDcache/README.md
View file @
390ef402
...
@@ -6,23 +6,30 @@ The material in "documentation" folder provides details on code changes required
...
@@ -6,23 +6,30 @@ The material in "documentation" folder provides details on code changes required
### Configure and compile mTCP
### Configure and compile mTCP
1.
Download and configure DPDK-19.11.8 using Alternative-2, as discussed in DPDK README
1.
Download and configure DPDK-19.11.8 using Alternative-2, as discussed in DPDK README
2.
Setup the MTCP-DPDK environment; this involves integration of DPDK with mTCP
2.
Setup the MTCP-DPDK environment; this involves integration of DPDK with mTCP
a. $ export RTE_SDK=
<absolute-path-to-dpdk-stable-19
.
11
.
8
>
b. $ export RTE_TARGET=arm64-bluefield-linuxapp-gcc //For Bluefield smartNIC OR
a. $ export RTE_SDK=\<absolute-path-to-dpdk-stable-19.11.8\>
b. $ export RTE_TARGET=arm64-bluefield-linuxapp-gcc //For Bluefield smartNIC OR
$ export RTE_TARGET=x86_64-native-linuxapp-gcc //For Host
$ export RTE_TARGET=x86_64-native-linuxapp-gcc //For Host
c. Configure mTCP with our DPDK version
c. Configure mTCP with our DPDK version
.../mtcp-devel$ ./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET CFLAGS="-DMAX_CPUS=<num_host/nic_cpus>"
.../mtcp-devel$ ./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET CFLAGS="-DMAX_CPUS=<num_host/nic_cpus>"
// Use --disable-hwcsum when working in virtualized environment
// Use --disable-hwcsum when working in virtualized environment
// If there an error: “configure: error: Could not find gmp.h”; $ sudo apt install libgmp-dev
// If there an error: “configure: error: Could not find gmp.h”; $ sudo apt install libgmp-dev
d. Integrate mTCP with our DPDK version
d. Integrate mTCP with our DPDK version
<path-to-mtcp-devel>$ sudo ./setup_mtcp_dpdk_env.sh <absolute-path-to-dpdk-stable-19.11.8>
<path-to-mtcp-devel>$ sudo ./setup_mtcp_dpdk_env.sh \<absolute-path-to-dpdk-stable-19.11.8\>
3.
Compile mTCP
3.
Compile mTCP
.../mtcp-devel$ make -j
.../mtcp-devel$ make -j
4.
To revert back mTCP NIC changes
4.
To revert back mTCP NIC changes
<path-to-mtcp-devel>
$ ./setup_linux_env.sh
<path
to
$
RTE_SDK
>
<path-to-mtcp-devel>
$ ./setup_linux_env.sh
\<
path to $RTE_SDK
\
>
### Configuration for executing mTCP sample application "HTTP server"
### Configuration for executing mTCP sample application "HTTP server"
1.
Configure static ARP entries
1.
Configure static ARP entries
...
@@ -68,14 +75,15 @@ The material in "documentation" folder provides details on code changes required
...
@@ -68,14 +75,15 @@ The material in "documentation" folder provides details on code changes required
### Execute mTCP sample application "HTTP server"
### Execute mTCP sample application "HTTP server"
1.
Configure the RTE vars
1.
Configure the RTE vars
$ export RTE_SDK=
<absolute-path-to-dpdk-stable-19
.
11
.
8
>
$ export RTE_SDK =
\<
absolute-path-to-dpdk-stable-19.11.8
\>
$ export RTE_TARGET =
\<
target
\>
$ export RTE_TARGET=
<target>
2.
For mTCP based HTTP server
2.
For mTCP based HTTP server
a. Create a directory where files that are requested for transfer are stored
a. Create a directory where files that are requested for transfer are stored
b. Run the HTTP server
b. Run the HTTP server
.../mtcp-devel/apps/example$ sudo ./epserver -p
<absolute-path-to-www-dir>
-f epserver.conf [-N
<num-cores
>
]
.../mtcp-devel/apps/example$ sudo ./epserver -p
\<
absolute-path-to-www-dir
\>
-f epserver.conf [-N
\<
num-cores
\
>
]
Example:
Example:
...
...
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