No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Guide for Interworking Between HUAWEI CloudFabric Solution and Redhat OpenStack

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Hugepage

Configuring Hugepage

  1. Log in to the CLI of the operating system as the root user, and run the cat /proc/cpuinfo | grep pdpe1gb -c command to check the value of hugepagesz supported by the system.

    • If the return value is 0, hugepagesz can only be set to 2 MB.
    • If the return value is not 0, hugepagesz can be set to 1 GB or 2 MB.

    If the value of hugepagesz can be set to 1 GB, it is recommended that you set it to 1 GB.

  2. Configure core isolation and hugepage.

    1. Run the vi /etc/default/grub command to open the grub file.

    2. Press i to access the editing interface, and enter GRUB_CMDLINE_LINUX_DEFAULT="quiet default_hugepagesz=1G hugepagesz=1G hugepages=10 isolcpus=1". The values of default_hugepagesz and hugepagesz can only be set to 1 GB or 2 MB, and must be the same.

    3. Press Esc to exit the editing interface.
    4. Enter :wq to save the configuration and exit.
    1. Run the grub2-mkconfig -o /boot/grub2/grub.cfg command to update the grub file.

    2. Run the reboot command to restart the system.

    The metadata added for the created cloud host is the same as the hugepage setting.

    You can run the following commands to add the metadata:

    1. #nova flavor-list: View the created cloud host.
    2. #nova flavor-key ID set hw:mem_page_size=xxx (unit: KB): Configure the metadata.

Updated: 2019-03-25

Document ID: EDOC1100072313

Views: 3393

Downloads: 24

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next