Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23608

virsh freepages does not display for 16G page size

    • libvirt-10.3.0-1.el9
    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 15
    • 2
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • aarch64
    • 10.2.0
    • None

      What were you trying to do that didn't work?

      Display numa free pages with 16G page size specified via virsh freepages.

      The pagesizes with 64, 2048, 524288, 2M, 512M are displayed correctly, but 16G and 16777216 are displayed incorrectly.

       

      Please provide the package NVR for which bug is seen:

      libvirt-10.0.0-2.el9.aarch64

      How reproducible:

      100%

      Steps to reproduce

      • List all numa node free pages via --all

      virsh freepages --all
      Node 0:
      64KiB: 3570500
      2048KiB: 0
      524288KiB: 0
      16777216KiB: 0

      * List numa ndoe free pages with pagesize specified

      virsh freepages --cellno  0 16777216
      error: Scaled numeric value '16777216' for <pagesize> option is malformed or out of range
      error: numerical overflow: value too large: 16777216

      virsh freepages --cellno  0 16G
      error: Scaled numeric value '16G' for <pagesize> option is malformed or out of range
      error: numerical overflow: value too large: 16G

      virsh freepages --cellno  0 2048
      2048KiB: 0

      virsh freepages --cellno  0 2M
      2048KiB: 0

      virsh freepages --cellno  0 524288
      524288KiB: 0

      virsh freepages --cellno  0 512M
      524288KiB: 0

      virsh freepages --cellno  0 64
      64KiB: 3570335

       

      Expected results

      Below commands could display correctly.

      virsh freepages --cellno  0 16G

      16777216KiB: 0

      virsh freepages --cellno  0 16777216 

      16777216KiB: 0

      Actual results

      See above reproduce steps

              mprivozn@redhat.com Michal Privoznik
              rhn-support-dzheng Dan Zheng
              Dan Zheng
              Michal Privoznik Michal Privoznik
              Dan Zheng Dan Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: