* [spp] [PATCH 0/2] Add --single-file-segments option to SPP container
@ 2019-08-15 8:03 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 ` [spp] [PATCH 2/2] docs: add single file segments EAL option for sppc Yasufumi Ogawa
0 siblings, 2 replies; 6+ messages in thread
From: Yasufumi Ogawa @ 2019-08-15 8:03 UTC (permalink / raw)
To: spp, ferruh.yigit, yasufum.o
This series of patches is to add EAL option --single-file-segments to
app contianer of sppc, and updating documentation.
Yasufumi Ogawa (2):
tools/sppc: add single file segments EAL option
docs: add single file segments EAL option for sppc
docs/guides/tools/sppc/app_launcher.rst | 10 ++++++++++
tools/sppc/lib/app_helper.py | 7 +++++++
2 files changed, 17 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [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
* [spp] PDF document compilation on CentOS
2019-08-15 8:03 ` [spp] [PATCH 1/2] tools/sppc: add single file segments EAL option Yasufumi Ogawa
@ 2019-08-16 9:12 ` Hideyuki Yamashita
2019-08-17 6:10 ` Yasufumi Ogawa
0 siblings, 1 reply; 6+ messages in thread
From: Hideyuki Yamashita @ 2019-08-16 9:12 UTC (permalink / raw)
To: spp
Hello,
Righ now , PDF compilation is not supported for CentOS.
I think some more packages should be installed in addition
to written in RST document.
(https://spp.readthedocs.io/en/latest/gsg/install.html#build-documentation)
The following steps resolved the problem for me.
1.
$sudo yum install latexmk texlive-*.noarch
2.
# tabulary.sty
$wget http://mirrors.ctan.org/macros/latex/contrib/tabulary.zip
$unzip tabulary.zip
$cd tabulary
$latex tabulary.ins
$cd ../
$sudo mv tabulary /usr/share/texlive/texmf-dist/tex/latex/
3.
# capt-of.sty
$wget http://mirrors.ctan.org/macros/latex/contrib/capt-of.zip
$unzip capt-of.zip
$cd capt-of
$latex capt-of.ins
$cd ../
$sudo mv capt-of /usr/share/texlive/texmf-dist/tex/latex/
4.
# needspace.sty
$wget http://mirrors.ctan.org/macros/latex/contrib/needspace.zip
$unzip needspace.zip
$cd needspace
$latex needspace.ins
$cd ../
$sudo mv needspace /usr/share/texlive/texmf-dist/tex/latex/
5.
# create ls-R database
$sudo texhash
Thanks.
BR,
Hideyuki Yamashita
NTT TechnoCross
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [spp] PDF document compilation on CentOS
2019-08-16 9:12 ` [spp] PDF document compilation on CentOS Hideyuki Yamashita
@ 2019-08-17 6:10 ` Yasufumi Ogawa
2019-08-19 1:24 ` 中村宏之
0 siblings, 1 reply; 6+ messages in thread
From: Yasufumi Ogawa @ 2019-08-17 6:10 UTC (permalink / raw)
To: Hideyuki Yamashita; +Cc: spp
> Hello,
>
> Righ now , PDF compilation is not supported for CentOS.
>
> I think some more packages should be installed in addition
> to written in RST document.
> (https://spp.readthedocs.io/en/latest/gsg/install.html#build-documentation)
Hideyuki,
Thanks for your help! By the way, which version of CentOS are you
tested? CentOS 7.6 as described here?
https://spp.readthedocs.io/en/latest/gsg/setup.html
>
> The following steps resolved the problem for me.
>
> 1.
> $sudo yum install latexmk texlive-*.noarch
>
> 2.
> # tabulary.sty
> $wget http://mirrors.ctan.org/macros/latex/contrib/tabulary.zip
> $unzip tabulary.zip
> $cd tabulary
> $latex tabulary.ins
> $cd ../
> $sudo mv tabulary /usr/share/texlive/texmf-dist/tex/latex/
>
> 3.
> # capt-of.sty
> $wget http://mirrors.ctan.org/macros/latex/contrib/capt-of.zip
> $unzip capt-of.zip
> $cd capt-of
> $latex capt-of.ins
> $cd ../
> $sudo mv capt-of /usr/share/texlive/texmf-dist/tex/latex/
>
> 4.
> # needspace.sty
> $wget http://mirrors.ctan.org/macros/latex/contrib/needspace.zip
> $unzip needspace.zip
> $cd needspace
> $latex needspace.ins
> $cd ../
> $sudo mv needspace /usr/share/texlive/texmf-dist/tex/latex/
>
> 5.
> # create ls-R database
> $sudo texhash
Could you send a patch for this update for documentation if possible?
Thanks,
Yasufumi
>
>
> Thanks.
>
> BR,
> Hideyuki Yamashita
> NTT TechnoCross
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [spp] PDF document compilation on CentOS
2019-08-17 6:10 ` Yasufumi Ogawa
@ 2019-08-19 1:24 ` 中村宏之
0 siblings, 0 replies; 6+ messages in thread
From: 中村宏之 @ 2019-08-19 1:24 UTC (permalink / raw)
To: Yasufumi Ogawa; +Cc: Hideyuki Yamashita, spp
>
> Thanks for your help! By the way, which version of CentOS are you
> tested? CentOS 7.6 as described here?
> https://spp.readthedocs.io/en/latest/gsg/setup.html
>
This test has done on Cent OS 7.6.
-----------------------------------------------
Hiroyuki NAKAMURA
tel2sip@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-08-19 1:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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-16 9:12 ` [spp] PDF document compilation on CentOS Hideyuki Yamashita
2019-08-17 6:10 ` Yasufumi Ogawa
2019-08-19 1:24 ` 中村宏之
2019-08-15 8:03 ` [spp] [PATCH 2/2] docs: add single file segments EAL option for sppc Yasufumi Ogawa
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).