From: ogawa.yasufumi@lab.ntt.co.jp
To: gerald.rogers@intel.com, sy.jong.choi@intel.com, spp@dpdk.org
Cc: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Subject: [spp] [PATCH 2/6] Update diagrams
Date: Mon, 21 Aug 2017 01:42:42 +0900 [thread overview]
Message-ID: <20170820164246.82586-2-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20170820164246.82586-1-ogawa.yasufumi@lab.ntt.co.jp>
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Network diagrams of ascii art are displayed inappropriately because
directives are not given properly.
Add code directive to indicate the part of diagrams.
This change includes some updates for command line examples
remained to be modified.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
docs/setup_guide.md | 61 +++++++++++++++++++++++++++++++++--------------------
1 file changed, 38 insertions(+), 23 deletions(-)
diff --git a/docs/setup_guide.md b/docs/setup_guide.md
index 88e8999..d2937c3 100644
--- a/docs/setup_guide.md
+++ b/docs/setup_guide.md
@@ -104,7 +104,7 @@ Start spp_vm (Inside the VM)
----------------------------
```sh
-sudo ./src/vm/src/vm/x86_64-native-linuxapp-gcc/spp_vm \
+$ sudo ./src/vm/src/vm/x86_64-native-linuxapp-gcc/spp_vm \
-c 0x03 -n 4 \
--proc-type=primary \
-- \
@@ -119,6 +119,7 @@ Test Setups
Test Setup 1: Single NFV
------------------------
+```
__
+--------------+ |
| spp_nfv | |
@@ -140,19 +141,19 @@ Test Setup 1: Single NFV
| |
: v
-Configuration for L2fwd
-~~~~~~~~~~~~~~~~~~~~~~~
+```
-```sh
+### Configuration for L2fwd
+
+```
spp > sec 0;patch 0 1
spp > sec 0;patch 1 0
spp > sec 0;forward
```
-Configuration for loopback
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+### Configuration for loopback
-```sh
+```
spp > sec 0;patch 0 0
spp > sec 0;patch 1 1
spp > sec 0;forward
@@ -161,6 +162,7 @@ spp > sec 0;forward
Test Setup 2: Dual NFV
----------------------
+```
__
+--------------+ +--------------+ |
| spp_nfv | | spp_nfv | |
@@ -182,16 +184,18 @@ Test Setup 2: Dual NFV
| |
: v
-Configuration for L2fwd
-~~~~~~~~~~~~~~~~~~~~~~~
+```
-```sh
+### Configuration for L2fwd
+
+```
spp > sec 0;patch 0 1
spp > sec 1;patch 1 0
spp > sec 0;forward
spp > sec 1;forward
```
+```
__
+--------------+ +--------------+ |
@@ -214,10 +218,11 @@ spp > sec 1;forward
| |
v v
-Configuration for loopback
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+```
-```sh
+### Configuration for loopback
+
+```
spp > sec 0;patch 0 0
spp > sec 1;patch 1 1
spp > sec 0;forward
@@ -227,6 +232,7 @@ spp > sec 1;forward
Test Setup 3: Dual NFV with ring pmd
------------------------------------
+```
__
+----------+ ring +----------+ |
| spp_nfv | +--------+ | spp_nfv | |
@@ -248,10 +254,11 @@ Test Setup 3: Dual NFV with ring pmd
| |
: v
-Configuration for Uni directional L2fwd
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+```
-```sh
+### Configuration for Uni directional L2fwd
+
+```
spp > sec 0;add ring 0
spp > sec 1;add ring 0
spp > sec 0;patch 0 2
@@ -260,6 +267,7 @@ spp > sec 0;forward
spp > sec 1;forward
```
+```
__
ring |
+--------+ |
@@ -284,10 +292,11 @@ spp > sec 1;forward
| |
v v
-Configuration for L2fwd
-~~~~~~~~~~~~~~~~~~~~~~~
+```
+
+### Configuration for L2fwd
-```sh
+```
spp > sec 0;add ring 0
spp > sec 0;add ring 1
spp > sec 1;add ring 0
@@ -303,6 +312,7 @@ spp > sec 1;forward
Test Setup 4: Single NFV with VM through vhost pmd
--------------------------------------------------
+```
__
+----------------------+ |
| guest | |
@@ -336,13 +346,14 @@ Test Setup 4: Single NFV with VM through vhost pmd
| |
: v
+```
+
Legend:-
sec 0 = spp_nfv
sec 1 = spp_vm
-Configuration for Uni directional L2fwd
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+### Configuration for Uni directional L2fwd
```sh
[rm –rf /tmp/sock0]
@@ -358,15 +369,19 @@ spp > sec 0;forward
Optimizing qemu performance
---------------------------
+
First find out the PID for qemu-system-x86 process
-ps ea
+
+```sh
+$ ps ea
PID TTY STAT TIME COMMAND
192606 pts/11 Sl+ 4:42 ./x86_64-softmmu/qemu-system-x86_64 -cpu host -enable-kvm -object memory-backend-file,id=mem,siz
+```
Using pstree to list out qemu-system-x86_64 threads:-
```sh
-pstree -p 192606
+$ pstree -p 192606
qemu-system-x86(192606)--+--{qemu-system-x8}(192607)
|--{qemu-system-x8}(192623)
|--{qemu-system-x8}(192624)
--
2.13.1
next prev parent reply other threads:[~2017-08-20 16:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-20 16:42 [spp] [PATCH 1/6] Update command line examples ogawa.yasufumi
2017-08-20 16:42 ` ogawa.yasufumi [this message]
2017-08-20 16:42 ` [spp] [PATCH 3/6] Add table of contents ogawa.yasufumi
2017-08-20 16:42 ` [spp] [PATCH 4/6] Update markdown directives ogawa.yasufumi
2017-08-20 16:42 ` [spp] [PATCH 5/6] Correct assignment of secondary ID ogawa.yasufumi
2017-08-20 16:42 ` [spp] [PATCH 6/6] Refactor for misc update as followings ogawa.yasufumi
2017-08-23 11:34 ` [spp] [PATCH 1/6] Update command line examples Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170820164246.82586-2-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=gerald.rogers@intel.com \
--cc=spp@dpdk.org \
--cc=sy.jong.choi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).