DPDK website maintenance
 help / color / mirror / 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	[thread overview]
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
 ```
 
-- 
2.26.2


             reply	other threads:[~2020-06-24 16:34 UTC|newest]

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 publicly 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=20200624163445.13720-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=web@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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).