summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasufumi Ogawa <yasufum.o@gmail.com>2019-08-15 17:03:38 +0900
committerYasufumi Ogawa <yasufum.o@gmail.com>2019-08-15 17:09:28 +0900
commitc045454b3ca2343be82284c73bc663084c8b0d6d (patch)
treeb69dd0103bb9c2e004d952836a317d0268782abd
parent748ccd7b6f81b928d733303d81d1887af50c6360 (diff)
downloadspp-c045454b3ca2343be82284c73bc663084c8b0d6d.zip
spp-c045454b3ca2343be82284c73bc663084c8b0d6d.tar.gz
spp-c045454b3ca2343be82284c73bc663084c8b0d6d.tar.xz
tools/sppc: add single file segments EAL option
This update is to add an EAL option `--single-file-segments` for app containers. Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rw-r--r--tools/sppc/lib/app_helper.py7
1 files changed, 7 insertions, 0 deletions
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
@@ -38,6 +38,10 @@ def add_eal_args(parser, mem_size=1024, mem_channel=4):
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,
default=mem_channel,
@@ -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, '\\',
'--', '\\']