* [spp] [PATCH 1/2] tools/sppc: add single file segments EAL option
2019-08-15 8:03 [spp] [PATCH 0/2] Add --single-file-segments option to SPP container Yasufumi Ogawa
@ 2019-08-15 8:03 ` Yasufumi Ogawa
2019-08-16 9:12 ` [spp] PDF document compilation on CentOS Hideyuki Yamashita
2019-08-15 8:03 ` [spp] [PATCH 2/2] docs: add single file segments EAL option for sppc Yasufumi Ogawa
1 sibling, 1 reply; 6+ messages in thread
From: Yasufumi Ogawa @ 2019-08-15 8:03 UTC (permalink / raw)
To: spp, ferruh.yigit, yasufum.o
This update is to add an EAL option `--single-file-segments` for app
containers.
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
tools/sppc/lib/app_helper.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/sppc/lib/app_helper.py b/tools/sppc/lib/app_helper.py
index 17b98b3..310d9e2 100644
--- a/tools/sppc/lib/app_helper.py
+++ b/tools/sppc/lib/app_helper.py
@@ -37,6 +37,10 @@ def add_eal_args(parser, mem_size=1024, mem_channel=4):
'-w', '--pci-whitelist',
nargs='*', type=str,
help='PCI whitelist for including devices')
+ parser.add_argument(
+ '--single-file-segments',
+ action='store_true',
+ help='Create fewer files in hugetlbfs (non-legacy mode only).')
parser.add_argument(
'--nof-memchan',
type=int,
@@ -100,6 +104,9 @@ def setup_eal_opts(args, file_prefix, proc_type='auto', hugedir=None):
for wd in args.pci_whitelist:
eal_opts += ['-w', wd, '\\']
+ if args.single_file_segments is not None:
+ eal_opts += ['--single-file-segments', '\\']
+
eal_opts += [
'--file-prefix', file_prefix, '\\',
'--', '\\']
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [spp] [PATCH 2/2] docs: add single file segments EAL option for sppc
2019-08-15 8:03 [spp] [PATCH 0/2] Add --single-file-segments option to SPP container Yasufumi Ogawa
2019-08-15 8:03 ` [spp] [PATCH 1/2] tools/sppc: add single file segments EAL option Yasufumi Ogawa
@ 2019-08-15 8:03 ` Yasufumi Ogawa
1 sibling, 0 replies; 6+ messages in thread
From: Yasufumi Ogawa @ 2019-08-15 8:03 UTC (permalink / raw)
To: spp, ferruh.yigit, yasufum.o
This update is to add examples of `blacklist` and `whitelist` to
examples of SPP container tools.
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
docs/guides/tools/sppc/app_launcher.rst | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/guides/tools/sppc/app_launcher.rst b/docs/guides/tools/sppc/app_launcher.rst
index 80dc262..009bc80 100644
--- a/docs/guides/tools/sppc/app_launcher.rst
+++ b/docs/guides/tools/sppc/app_launcher.rst
@@ -144,6 +144,7 @@ On the other hand, application specific options are different each other.
[--socket-mem SOCKET_MEM]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[--nof-memchan NOF_MEMCHAN] [-n NOF_RING]
[-p PORT_MASK]
[-dv DEV_VHOST_IDS] [-dt DEV_TAP_IDS] [-ip CTRL_IP]
@@ -166,6 +167,9 @@ On the other hand, application specific options are different each other.
PCI blacklist for excluding devices
-w [PCI_WHITELIST [PCI_WHITELIST ...]], --pci-whitelist [PCI_WHITELIST..
PCI whitelist for including devices
+ --single-file-segments
+ Create fewer files in hugetlbfs (non-legacy mode
+ only).
--nof-memchan NOF_MEMCHAN
Number of memory channels (default is 4)
-n NOF_RING, --nof-ring NOF_RING
@@ -218,6 +222,7 @@ It shows only application specific options for simplicity.
[--socket-mem SOCKET_MEM] [--nof-memchan NOF_MEMCHAN]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[-i SEC_ID] [-ip CTRL_IP] [--ctrl-port CTRL_PORT]
[--dist-name DIST_NAME] [--dist-ver DIST_VER]
[-ci CONTAINER_IMAGE] [-fg] [--dry-run]
@@ -268,6 +273,7 @@ It shows options without of EAL and container for simplicity.
usage: l2fwd.py [-h] [-l CORE_LIST] [-c CORE_MASK] [-m MEM]
[--socket-mem SOCKET_MEM] [--nof-memchan NOF_MEMCHAN]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
+ [--single-file-segment]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
[-d DEV_IDS] [-nq NOF_QUEUES] [--no-privileged]
[-p PORT_MASK]
@@ -386,6 +392,7 @@ It shows options without of EAL and container for simplicity.
[--socket-mem SOCKET_MEM] [--nof-memchan NOF_MEMCHAN]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[-d DEV_IDS] [-nq NOF_QUEUES] [--no-privileged]
[-p PORT_MASK] [--config CONFIG] [-P] [-E] [-L]
[-dst [ETH_DEST [ETH_DEST ...]]] [--enable-jumbo]
@@ -485,6 +492,7 @@ It shows options without of EAL and container.
[--socket-mem SOCKET_MEM] [--nof-memchan NOF_MEMCHAN]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[-d DEV_IDS] [-nq NOF_QUEUES] [--no-privileged]
[--pci] [-i] [-a] [--tx-first]
[--stats-period STATS_PERIOD]
@@ -770,6 +778,7 @@ It shows options without of EAL and container for simplicity.
[--socket-mem SOCKET_MEM] [--nof-memchan NOF_MEMCHAN]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[-d DEV_IDS] [-nq NOF_QUEUES] [--no-privileged]
[--matrix MATRIX] [--log-level LOG_LEVEL]
[--dist-name DIST_NAME] [--dist-ver DIST_VER]
@@ -978,6 +987,7 @@ Refer options and usages by ``load-balancer.py -h``.
[--socket-mem SOCKET_MEM]
[-b [PCI_BLACKLIST [PCI_BLACKLIST ...]]]
[-w [PCI_WHITELIST [PCI_WHITELIST ...]]]
+ [--single-file-segment]
[--nof-memchan NOF_MEMCHAN]
[-d DEV_IDS] [-nq NOF_QUEUES] [--no-privileged]
[-rx RX_PORTS] [-tx TX_PORTS] [-w WORKER_LCORES]
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread