Verification

Getting Started with Napatech Link-Virtualization™ Software

Platform
Napatech SmartNIC
Content Type
Getting Started
Getting Started Guide
Capture Software Version
Link-Virtualization™ Software 4.5

Confirm IOMMU and the huge-pages memory allocation.

About this task

This describes command examples to verify that the configuration has been successfully updated after reboot, .

Procedure

  1. Enter the following command to verify that the configuration has been successfully updated.
    cat /proc/cmdline

    The output of this command should include the paramters for IOMMU and huge pages.

    An output example:
    BOOT_IMAGE=/boot/vmlinuz-3.10.0-1160.el7.x86_64 root=/dev/sda6 intel_iommu=on default_hugepagesz=1G hugepagesz=1G hugepages=32
  2. Confirm that IOMMU is enabled.
    • Enter the following command for AMD-based machines :
      dmesg | grep AMD-Vi
    • Enter the following command for Intel-based machines :
      dmesg | grep -i IOMMU
    If there is no output from one of these commands, you will need to remedy this before moving on.
    • Verify that your hardware supports VT-d and that it has been enabled in the BIOS
    • Verify that the motherboard chipset supports IOMMU
    • Check dmesg for errors suggesting that the BIOS is broken
  3. Verify the number of actual allocated huge pages by entering the following command.
    cat /proc/meminfo | grep Huge
    An output example:
    AnonHugePages:    157696 kB
    ShmemHugePages:        0 kB
    HugePages_Total:      32
    HugePages_Free:       32
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:    1048576 kB
    Note: By default, memory in a dual-socket system will be allocated from each NUMA node.
    Enter the following command to display the per-node distribution of huge pages.
    cat /sys/devices/system/node/node*/meminfo | grep Huge