1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright (c) 2020 Microsoft Corporation
4 dpdk-hugepages Application
5 ==========================
7 The ``dpdk-hugepages`` tool is a Data Plane Development Kit (DPDK) utility
8 that helps in reserving hugepages.
9 As well as checking for current settings.
12 Running the Application
13 -----------------------
15 The tool has a number of command line options:
17 .. code-block:: console
19 dpdk-hugepages [options]
27 Display usage information and quit
31 Print the current huge page configuration
33 * ``-c driver, --clear``
35 Clear existing huge page reservation
39 Mount the huge page filesystem
43 Unmount the huge page filesystem
45 * ``-n NODE, --node=NODE``
47 Set NUMA node to reserve pages on
49 * ``-p SIZE, --pagesize=SIZE``
51 Select hugepage size to use.
52 If not specified the default system huge page size is used.
54 * ``-r SIZE, --reserve=SIZE``
57 Size is in bytes with K, M or G suffix.
61 Short cut to clear, unmount, reserve and mount.
65 While any user can run the ``dpdk-hugepages.py`` script to view the
66 status of huge pages, modifying the setup requires root privileges.
72 To display current huge page settings::
76 To a complete setup of with 2 Gigabyte of 1G huge pages::
78 dpdk-hugepages.py -p 1G --setup 2G