Skip to content
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

[DNM] PoC for huge pages in libvirt domain definition #698

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jellonek
Copy link
Contributor

@jellonek jellonek commented Jun 19, 2018

There is no verification if host supports huge pages.
There is no verification of any kind of additional libvirt/qemu configuration if it's needed for huge pages.
There is no validation of nodeset value at the moment.

Simply if there is VirtletHugePages annotation its value is used to
construct data in memoryBacking section of libvirt domain xml
(according to https://libvirt.org/formatdomain.html#elementsMemoryBacking).

Whole value is split to sub entries using ";" as separator.
Each entry should have 3 values:

  • size - as a uint
  • unit - single character denoting unit size (K, M, or G)
  • nodeset - node ranges (e.g. 0-3), or/and particular node numbers of
    numa nodes, combined with comma sign (please refer to libvirt docs for
    details - this part is passed "as is" to domain definition).

This change is Reviewable

There is no verification if host supports huge pages.
There is no verification of any kind of libvirt/qemu configuration if
it's needed for huge pages.
There is no validation of nodeset value at the moment.

Simply if there is VirtletHugePages annotation its value is used to
construct data in memoryBacking section of libvirt domain xml
(according to
https://libvirt.org/formatdomain.html#elementsMemoryBacking)

Whole value is split to sub entries using ";" as separator.
Each entry should have 3 values,
 * size - as a uint
 * unit - single character denoting unit size (K, M, or G)
 * nodeset - node ranges (e.g. 0-3), or/and particular node numbers of
 numa nodes, combined with comma sign (please refer to libvirt docs for
 details - this part is passed "as is" to domain definition).
@stale
Copy link

stale bot commented Aug 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 28, 2018
@pigmej pigmej added the wip label Aug 31, 2018
@stale stale bot removed the wontfix label Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants