-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support use of huge pages without CPU pinning #6185
Comments
(cherry picked from commit d494b61)
VM topology can be defined: - To use a NUMA node and huge pages. Example: TOPOLOGY = [ NODE_AFFINITY = 0, HUGEPAGE_SIZE = 2 ] - To use huge pages without specifying the NUMA node. Example: TOPOLOGY = [ HUGEPAGE_SIZE = 2 ] In any case OpenNebula will: - look (or check) for a NUMA node with enough free huge pages - will pick the NUMA node with more free pages (if no NUMA node is specified) - configure the VM with CPU affinity to the selected NUMA node (cherry picked from commit 1b3b88e)
Ensure that OpenNebula will: configure the VM with CPU affinity to the auto-selected NUMA node Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Hello @rsmontero, I created PR for this issue. In the issue description there is "The VM will be configured with CPU affinity to the selected NUMA node", but if no affinity is selected, them huge pages are pinned to some numa node, but vCPUs are not. This PR fix this, so all vCPUs will be pinned to auto-selected numa node. EDIT: EDIT2: |
VM topology can be defined: - To use a NUMA node and huge pages. Example: TOPOLOGY = [ NODE_AFFINITY = 0, HUGEPAGE_SIZE = 2 ] - To use huge pages without specifying the NUMA node. Example: TOPOLOGY = [ HUGEPAGE_SIZE = 2 ] In any case OpenNebula will: - look (or check) for a NUMA node with enough free huge pages - will pick the NUMA node with more free pages (if no NUMA node is specified) - configure the VM with CPU affinity to the selected NUMA node (cherry picked from commit 1b3b88e)
Ensure that OpenNebula will: configure the VM with CPU affinity to the auto-selected NUMA node Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Ensure that OpenNebula will: configure the VM with CPU affinity to the auto-selected NUMA node Signed-off-by: Kristian Feldsam <feldsam@gmail.com> (cherry picked from commit c6adde2) (cherry picked from commit a456c817d018281b4678480066add9baba3af16c)
Description
OpenNebula < 6.6 requires to set a Pin policy for using huge pages. With the implementation of NUMA pinning it should be posible to just specify the desired huge page size, so:
Use case
Simply use of huge pages (also easier use of DPDK with Open vSwitch)
Interface Changes
Templates can be defined with just HUGEPAGE_SIZE
The text was updated successfully, but these errors were encountered: