DPDK website maintenance
 help / color / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: web@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [dpdk-web] [PATCH] quick-start: use /dev/hugepages instead of /mnt/huge
Date: Wed, 24 Jun 2020 09:34:45 -0700
Message-ID: <20200624163445.13720-1-stephen@networkplumber.org> (raw)

The standard mount location for hugepages on most Linux distributions
is /dev/hugepages. Make the example safe, so that if hugepages are
already mounted nothing needs to be done.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
 content/doc/quick-start.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/content/doc/quick-start.md b/content/doc/quick-start.md
index a1c2a6cdf066..6b61b00ba166 100644
--- a/content/doc/quick-start.md
+++ b/content/doc/quick-start.md
@@ -22,14 +22,15 @@ To include the examples as part of the build,
 replace the meson command with:
   meson -Dexamples=all build
 Reserve huge pages memory.
-  mkdir -p /mnt/huge
-  mount -t hugetlbfs nodev /mnt/huge
+  mkdir -p /dev/hugepages
+  mountpoint -q /dev/hugepages || mount -t hugetlbfs nodev /dev/hugepages
   echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-24 16:34 Stephen Hemminger [this message]
2020-07-02 11:40 ` Ferruh Yigit
2020-07-03 10:27   ` Thomas Monjalon

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200624163445.13720-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=web@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK website maintenance

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/web/0 web/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 web web/ http://inbox.dpdk.org/web \
	public-inbox-index web

Newsgroup available over NNTP:

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