Red Hat Bugzilla – Bug 1582418
virsh capabilities reports invalid values for 4K pages [rhel-7.5.z]
Last modified: 2018-06-26 12:56:26 EDT
This bug has been copied from bug #1569678 and has been proposed to be backported to 7.5 z-stream (EUS).
To POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2018-May/msg00790.html Scratch build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=16461622
With libvirt-3.9.0-14.virtcov.el7_5.6.x86_64 version, enable 1G hugepages in RHEL7.5 system and config 1G hugepages counts for numa cells and run below commands. The values are correct. #virsh capabilities <topology> <cells num='8'> <cell id='0'> <memory unit='KiB'>16742068</memory> <pages unit='KiB' size='4'>1039789</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>12</pages> <distances> <sibling id='0' value='10'/> ... </distances> <cpus num='8'> <cpu id='0' socket_id='0' core_id='0' siblings='0,4'/> ... </cpus> </cell> <cell id='1'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>524288</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>14</pages> .... <cell id='2'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>4194304</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>0</pages> .... <cell id='3'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>524288</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>14</pages> ... <cell id='4'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>4194304</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>0</pages> .... <cell id='5'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>524288</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>14</pages> .... <cell id='6'> <memory unit='KiB'>16777216</memory> <pages unit='KiB' size='4'>524288</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>14</pages> .... <cell id='7'> <memory unit='KiB'>16760828</memory> <pages unit='KiB' size='4'>782335</pages> <pages unit='KiB' size='2048'>0</pages> <pages unit='KiB' size='1048576'>13</pages> # virsh freepages --all Node 0: 4KiB: 869199 2048KiB: 0 1048576KiB: 12 Node 1: 4KiB: 430137 2048KiB: 0 1048576KiB: 14 Node 2: 4KiB: 4072669 2048KiB: 0 1048576KiB: 0 Node 3: 4KiB: 430401 2048KiB: 0 1048576KiB: 14 Node 4: 4KiB: 4073071 2048KiB: 0 1048576KiB: 0 Node 5: 4KiB: 430404 2048KiB: 0 1048576KiB: 14 Node 6: 4KiB: 428752 2048KiB: 0 1048576KiB: 14 Node 7: 4KiB: 633198 2048KiB: 0 1048576KiB: 13
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:1997