[dpdk-web] [PATCH] quick-start: use /dev/hugepages instead of /mnt/huge

Stephen Hemminger stephen at networkplumber.org
Wed Jun 24 18:34:45 CEST 2020


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 at 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



More information about the web mailing list