usertools: add huge page setup script
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 9 Sep 2020 18:51:01 +0000 (11:51 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 21:38:03 +0000 (22:38 +0100)
commit6e1b58fa84d309fe6e7668ae79d42fd33d2e8f40
treeb4ccd3a54153a7e97a817f9db3d87d1e18380ba5
parent3515fa1e5ecbe0099cb886b81ba77058d1a2d397
usertools: add huge page setup script

This is an improved version of the setup of huge pages
bases on earlier DPDK setup.

Differences are:
   * autodetects NUMA vs non NUMA
   * allows setting different page sizes
     recent kernels support multiple sizes.
   * accepts a parameter in bytes (not pages).
   * can display current hugepage settings.

Most users will just use --setup argument but if necessary
the steps of clearing old settings and mounting/umounting
can be done individually.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/tools/hugepages.rst [new file with mode: 0644]
doc/guides/tools/index.rst
usertools/dpdk-hugepages.py [new file with mode: 0755]
usertools/meson.build