usage_pktgen.rst: multiple instances: clean up section intro
PATCH 1/2 usage_pktgen.rst: multiple instances: clean up section intro
--- docs/source/usage_pktgen.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
docs/source/usage_pktgen.rst +9 -9
@@ -103,15 +103,15 @@ Multiple Instances of Pktgen or other application ================================================= One possible solution I use and if you have enough ports available to use. -Lets say you need two ports for your application, but you have 4 ports in -your system. I physically loop back the cables to have port 0 connect to -port 2 and port 1 connected to port 3. Now I can give two ports to my -application and two ports to Pktgen. - -Setup if pktgen and your application you have to startup each one a bit -differently to make sure they share the resources like memory and the -ports. I will use two Pktgen running on the same machine, which just means -you have to setup your application as one of the applications. +Let's say you need two ports for your application, but you have 4 ports in +your system. I physically loop back the cables to have port 0 connect to port +2 and port 1 connected to port 3. Now I can give two ports to my application +and two ports to Pktgen. + +If you are running pktgen and your application together, you have to start up +each one a bit differently to make sure they share the resources like memory +and the ports. I will use two Pktgens running on the same machine, which just +means you have imagine your application as one of the applications. In my machine I have 8 10G ports and 72 lcores between 2 sockets. Plus I have 1024 hugepages per socket for a total of 2048.
Signature · 1 line
2.5.0
PATCH 2/2 usage_pktgen.rst: multiple instances: clarify EAL options needed
--- docs/source/usage_pktgen.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
docs/source/usage_pktgen.rst +15 -0
@@ -157,4 +157,19 @@ The -m option then assigns lcores to the ports. The information from above is taken from two new files pktgen-master.sh and pktgen-slave.sh, have a look at them and adjust as you need. +The following DPDK / EAL options must be configured correctly as well: + +* ``-l lcore_id_list``: non-conflicting list of lcores for each app + +* ``--master-lcore lcore_id``: non-conflicting master lcore for each app + +* ``-m hugepage_mb / --socket-mem hugepage_mb_list``: non-conflicting amount +of hugepage memory for each app, or for each app on each CPU socket + +* ``--no-shconf``: prevents DPDK from claiming a lockfile that breaks +concurrent use of multiple apps + +* ``--file-prefix``: assigns a unique name to the hugepage mmap() files for +each app + Pktgen can also be configured using the :ref:`commands`.
Signature · 1 line
2.5.0
Re: [PKTGEN] [PATCH 2/2] usage_pktgen.rst: multiple instances: clarify EAL options needed
Quoted 13 lines · dev on behalf of Matthew Hall
Signed-off-by Matthew Hall <[email protected]>---
docs/source/usage_pktgen.rst| 15 +++++++++++++++1 file changed, 15 insertions(+)docs/source/usage_pktgen.rst +0
-0@@ -157,4 +157,19 @@ The -m option then assigns lcores to the ports.The information from above is taken from two new files
pktgen-master.shandpktgen-slave.sh, have a look at them and adjust as you need.
docs/source/usage_pktgen.rst The -m option then assigns lcores to the ports. · line 162
Quoted 3 lines
docs/source/usage_pktgen.rst +3
-0+The following DPDK / EAL options must be configured correctly as well: + +* ``-l lcore_id_list``: non-conflicting list of lcores for each app
If you are going to add -l option then you need to add the -c option too.
docs/source/usage_pktgen.rst
Quoted 2 lines
docs/source/usage_pktgen.rst +2
-0+ +* ``--master-lcore lcore_id``: non-conflicting master lcore for each app
This option is not required for pktgen or DPDK, which I think we can leave out.
docs/source/usage_pktgen.rst The -m option then assigns lcores to the ports. · line 170
Quoted 6 lines
docs/source/usage_pktgen.rst +6
-0+ +* ``-m hugepage_mb / --socket-mem hugepage_mb_list``: non-conflicting amount +of hugepage memory for each app, or for each app on each CPU socket + +* ``--no-shconf``: prevents DPDK from claiming a lockfile that breaks +concurrent use of multiple apps
This one is not required, correct? As long as you set the primary processes file-prefix to different prefixes for each one.
Quoted 9 lines
docs/source/usage_pktgen.rst +4
-0+ +* ``--file-prefix``: assigns a unique name to the hugepage mmap() files for +each app +Pktgen can also be configured using the :ref:
commands.Signature · 1 line
2.5.0
Regards,
Keith
Quoted 16 lines · dev on behalf of Matthew Hall
Signed-off-by Matthew Hall <[email protected]>---
docs/source/usage_pktgen.rst| 18 +++++++++---------1 file changed, 9 insertions(+), 9 deletions(-)docs/source/usage_pktgen.rst +0
-0@@ -103,15 +103,15 @@ Multiple Instances of Pktgen or other application=================================================
One possible solution I use and if you have enough ports available to use.
docs/source/usage_pktgen.rst +0
-3-Lets say you need two ports for your application, but you have 4 ports in -your system. I physically loop back the cables to have port 0 connect to -port 2 and port 1 connected to port 3. Now I can give two ports to my
docs/source/usage_pktgen.rst Multiple Instances of Pktgen or other application · line 109
Quoted 10 lines
docs/source/usage_pktgen.rst +4
-6-application and two ports to Pktgen. - -Setup if pktgen and your application you have to startup each one a bit -differently to make sure they share the resources like memory and the -ports. I will use two Pktgen running on the same machine, which just means -you have to setup your application as one of the applications. +Let's say you need two ports for your application, but you have 4 ports in +your system. I physically loop back the cables to have port 0 connect to port +2 and port 1 connected to port 3. Now I can give two ports to my application +and two ports to Pktgen.
It appears (if I compared the text correctly) the above only move a few trailing words to the next line, why?
docs/source/usage_pktgen.rst Multiple Instances of Pktgen or other application · line 114
Quoted 5 lines
docs/source/usage_pktgen.rst +5
-0+ +If you are running pktgen and your application together, you have to start up +each one a bit differently to make sure they share the resources like memory +and the ports. I will use two Pktgens running on the same machine, which just +means you have imagine your application as one of the applications.
Maybe this is clearer.
If you are running pktgen and your application together, you have to start up each one a bit differently to make sure they share the resources like memory, huge page files and ports. I will use two Pktgens running on the same machine, which just means you have imagine your application as one of the Pktgen instances.
Quoted 7 lines
In my machine I have 8 10G ports and 72 lcores between 2 sockets. Plus I have 1024 hugepages per socket for a total of 2048.
Signature · 1 line
2.5.0
Regards,
Keith
Quoted 2 lines · Keith
It appears (if I compared the text correctly) the above only move a few trailing words to the next line, why?
I believe in trying to leave code / docs cleaner than I found them.
Most Markdown / ReStructured Text has a tradition of 78-character wide line length limits.
So just trying to make the world a better place. That's it.
Quoted 6 lines
Maybe this is clearer.
If you are running pktgen and your application together, you have to start up each one a bit differently to make sure they share the resources like memory, huge page files and ports. I will use two Pktgens running on the same machine, which just means you have imagine your application as one of the Pktgen instances.
I'll make some adjustments when I get more time and try again.
In general I think it would be good if we had a bit more of a forest view of trying to make docs for all of the things pktgen docs are missing and not get too hung up on one tree or another.
I don't necessarily have a ton of time for editing these to the Nth degree, but I do want to make life better for the next confused people to avoid a storm of duplicate comments and issues.
Matthew.