Support for hugepages in KVM VMs #11187
Unanswered
akrasnov-drv
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@akrasnov-drv this can be done with extra config |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The required feature described as a wish
We use hugepages and some other tweaks to optimize performance of KVM VMs.
I managed to use our KVM VM config in CloudStack by updating VM xml via hook.
The problem is that CloudStack checks free memory of Linux and ignores free hugepages.
As I understand, in the earlier version of CloudStack it used shell to get free memory info, but now it uses Java calls that I can't change without patching and rebuilding agent code.
The following changes should do what I miss:
I'd like to have config option (in Cloudstack config, or in agent.properties) to enable hugepages (defaults to off). IMHO, it's quite easy to do. The option will
MemFree
toHugePages_Free × Hugepagesize
Something like the following
Another option, though less preferable, is to allow using external script (e.g.
host.stats.command.script
) to override internally acquired values (e.g.MemFree
)Beta Was this translation helpful? Give feedback.
All reactions