Soft Patch Panel
 help / color / Atom feed
From: Yasufumi Ogawa <yasufum.o@gmail.com>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH 1/2] tools/sppc: add single file segments EAL option
Date: Thu, 15 Aug 2019 17:03:38 +0900
Message-ID: <20190815080339.27914-2-yasufum.o@gmail.com> (raw)
In-Reply-To: <20190815080339.27914-1-yasufum.o@gmail.com>

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


  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publically 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=20190815080339.27914-2-yasufum.o@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /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

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox