Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure Huge Pages

Learn how to configure huge pages for the Cloud-Native Router vRouter.

Huge pages make memory accesses more efficient by reducing the number of TLB (translation look-aside buffer) misses and are instrumental in getting the best performance from your Cloud-Native Router vRouter installation.

Configuring huge pages is a two-part procedure. First, specify the number and size of huge pages that you want the node to make available (Configure the Number of Huge Pages Available on a Node) and then configure the Cloud-Native Router vRouter to use these huge pages (Configure the Number of Huge Pages to Use).

By default, the Cloud-Native Router vRouter is already configured to use huge pages, so the second part is only necessary if you want to change the number of huge pages that you want the Cloud-Native Router vRouter to use.

Configure the Number of Huge Pages Available on a Node

Use this procedure to specify the number and size of huge pages that you want to make available on a node.

Note:

This procedure does not apply to a Red Hat OpenShift or a Wind River Cloud Platform deployment.

  1. Log in as root to the cluster node where you want to configure huge pages.
  2. Configure GRUB to boot up the node with the desired number of huge pages.

    Add GRUB_CMDLINE_LINUX_DEFAULT values in /etc/default/grub.

    For example, the following configures the node to boot up with 10 x 1 GB huge pages (and SR-IOV pass-through support):

  3. Update GRUB.
  4. Reboot.
  5. Log back in to the node.
  6. Verify that the node has acquired the requested number of huge pages.
    Look at the output to confirm that GRUB has been configured to request the desired number of huge pages:Look at the output to confirm that the node has successfully acquired and made available the desired number of huge pages:

Configure the Number of Huge Pages to Use

By default, the Cloud-Native Router vRouter is already configured to use huge pages. Use this procedure to change the number of huge pages that the Cloud-Native Router vRouter uses.

  1. On the host where you're running the Cloud-Native Router installation procedures, go to the Helm chart directory for the Cloud-Native Router vRouter.
  2. Configure the number of huge pages in the Cloud-Native Router vRouter values.yaml file.
    Change the below default hugepages-1Gi value in limits and requests to the number of your choice:

    For example, to set huge pages to 10 GB:

    Note:

    The number you specify here must not be greater than the number of huge pages you've made available on the node.

  3. Save and exit the file.