luisarizmendi / ocp-libvirt-ipi-role

Ansible Role to deploy OpenShift 4 on a CentOS 7 or Fedora KVM using libvirt IPI
31 stars 14 forks source link

Is it possible to get Terraform + Openshift/libvirt to create VMs with hugepages? #6

Closed ElCoyote27 closed 3 years ago

ElCoyote27 commented 4 years ago

Hi Luis,

On my hypervisors, I have most of the memory dedicated to hugepages (the default 2Mb hugepages). This allows me to fit more VMs into reserved memory and makes their TLB's smaller.

Here's an example:

# virsh dumpxml sat6|head -24
<domain type='kvm' id='3'>
  <name>sat6</name>
[...]
  <memoryBacking>
    <hugepages/>
  </memoryBacking>
[...]

I've done some research and it appears that Terraform has support for hugepages but I wouldn't know where to change it in the openshift installer.. Do you have any idea of where that might be?

luisarizmendi commented 3 years ago

Sorry, I missed this one!, no idea, but take a look to this repo from a guy that made it work: https://github.com/MonolithProjects/terraform-libvirt-vm