On Thu, Aug 26, 2021 at 9:50 AM Tommy Sway <sz_cuitao(a)163.com> wrote:
Hi:
I am running virtual machines on the KVM servers of oVirt env. The virtual
machine is running database, which needs to set the memory huge page on
the OPERATING system of the virtual machine.
If I need to set the huge page on the VIRTUAL machine, do I also need to
set huge page on the KVM physical machine? Or just on the virtual machine?
What best practices do you recommend?
Thank you very much!
I think that this is still the reference for 4.4
https://mpolednik.github.io/2017/06/26/hugepages-and-ovirt/
The downside, if I'm correct, is that you will allocate as huge pages all
the memory of the virtual machine and not only what potentially needed.
Coming to your example of database VM: I want to allocate 32Gb as huge
pages in a VM because that would be the memory assigned to the DB instance.
But the VM for its work (user processes of the connections and other needs)
will be configured as a 64Gb ram VM.
In that case you "waste" 32Gb of huge pages allocation on the host, that
you would prefer to be instead as normal pages....
Gianluca