DPDK website maintenance
 help / color / mirror / Atom feed
* [dpdk-web] [PATCH] quick-start: use /dev/hugepages instead of /mnt/huge
@ 2020-06-24 16:34 Stephen Hemminger
  2020-07-02 11:40 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2020-06-24 16:34 UTC (permalink / raw)
  To: web; +Cc: Stephen Hemminger

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-03 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 16:34 [dpdk-web] [PATCH] quick-start: use /dev/hugepages instead of /mnt/huge Stephen Hemminger
2020-07-02 11:40 ` Ferruh Yigit
2020-07-03 10:27   ` Thomas Monjalon

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).