diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-08-19 11:38:06 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-10-13 23:22:32 +0000 |
commit | 9ad39c026c8a3c945a7003c4aa4f5cb1d4c80160 (patch) | |
tree | 3cca19635417e28ae381d67ae31c75df2925032d /docs/gettingstarted/users/configuring/hugepages.rst | |
parent | f47122e07e1ecd0151902a3cabe46c60a99bee8e (diff) |
docs: better docs, mv doxygen to sphinx
This patch refactors the VPP sphinx docs
in order to make it easier to consume
for external readers as well as VPP developers.
It also makes sphinx the single source
of documentation, which simplifies maintenance
and operation.
Most important updates are:
- reformat the existing documentation as rst
- split RELEASE.md and move it into separate rst files
- remove section 'events'
- remove section 'archive'
- remove section 'related projects'
- remove section 'feature by release'
- remove section 'Various links'
- make (Configuration reference, CLI docs,
developer docs) top level items in the list
- move 'Use Cases' as part of 'About VPP'
- move 'Troubleshooting' as part of 'Getting Started'
- move test framework docs into 'Developer Documentation'
- add a 'Contributing' section for gerrit,
docs and other contributer related infos
- deprecate doxygen and test-docs targets
- redirect the "make doxygen" target to "make docs"
Type: refactor
Change-Id: I552a5645d5b7964d547f99b1336e2ac24e7c209f
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'docs/gettingstarted/users/configuring/hugepages.rst')
-rw-r--r-- | docs/gettingstarted/users/configuring/hugepages.rst | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/docs/gettingstarted/users/configuring/hugepages.rst b/docs/gettingstarted/users/configuring/hugepages.rst deleted file mode 100644 index 7a1e0bd8057..00000000000 --- a/docs/gettingstarted/users/configuring/hugepages.rst +++ /dev/null @@ -1,63 +0,0 @@ -.. _hugepages: - -Huge Pages ----------- - -VPP requires *hugepages* to run during VPP operation, to manage large pages of memory. -During VPP installation, VPP will overwrite the existing hugepage settings. -By default, VPP sets the number of hugepages on a system to 1024 2M hugepages. -This is the number of hugepages on the system, not just used by VPP. - -When VPP is installed, the following configuration file is copied to the system. The -hugepage settings are applied in the VPP installation and on system reboots. To set -the hugepage settings, perform the following commands: - -.. code-block:: console - - $ cat /etc/sysctl.d/80-vpp.conf - # Number of 2MB hugepages desired - vm.nr_hugepages=1024 - - # Must be greater than or equal to (2 * vm.nr_hugepages). - vm.max_map_count=3096 - - # All groups allowed to access hugepages - vm.hugetlb_shm_group=0 - - # Shared Memory Max must be greater or equal to the total size of hugepages. - # For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024 - # If the existing kernel.shmmax setting (cat /sys/proc/kernel/shmmax) - # is greater than the calculated TotalHugepageSize then set this parameter - # to current shmmax value. - kernel.shmmax=2147483648 - -Depending on how the system is being used, this configuration file can be updated to adjust -the number of hugepages reserved on a system. Below are some examples of -possible settings. - -For a small VM with minimal workload: - -.. code-block:: console - - vm.nr_hugepages=512 - vm.max_map_count=2048 - kernel.shmmax=1073741824 - -For a large system running multiple VMs, each needing its own set of hugepages: - -.. code-block:: console - - vm.nr_hugepages=32768 - vm.max_map_count=66560 - kernel.shmmax=68719476736 - - -.. note:: - - If VPP is being run in a Virtual Machine (VM), the VM must have hugepage - backing. When VPP is installed, it will attempt to overwrite existing the - hugepage setting. If the VM does not have hugepage backing, the install will fail, - but the failure may go unnoticed. When the VM is rebooted, on system startup, - *'vm.nr_hugepages'* will be reapplied, and will fail, and the VM will abort kernel - boot, locking up the VM. To avoid this scenario, ensure the VM has enough - hugepage backing. |