Bug 1582416

Summary: virsh capabilities reports invalid values for 4K pages [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED ERRATA QA Contact: Jing Qi <jinqi>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: chhu, dyuan, jdenemar, jherrman, lmen, marjones, mkalinin, mprivozn, mtessun, rbalakri, tbonds, xuzhang
Target Milestone: rcKeywords: Upstream, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-3.2.0-14.el7_4.11 Doc Type: Bug Fix
Doc Text:
The "virsh capabilities" command previously displayed an inaccurate number of 4 KiB memory pages on systems with very large amounts of memory. This update optimizes the memory diagnostic mechanism to ensure memory page numbers are displayed correctly on such systems.
Story Points: ---
Clone Of: 1569678 Environment:
Last Closed: 2018-06-26 16:22:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1569678    
Bug Blocks:    

Description Oneata Mircea Teodor 2018-05-25 07:20:09 UTC
This bug has been copied from bug #1569678 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 5 Jing Qi 2018-06-12 09:04:40 UTC
Verified with libvirt-3.2.0-14.virtcov.el7_4.11.x86_64
 version on RHEL7.4 (3.10.0-693.el7.x86_64). The data for 4K pages are correct.
   # virsh capabilities
        <cell id='0'>
          <memory unit='KiB'>16681308</memory>
          <pages unit='KiB' size='4'>2073175</pages>
          <pages unit='KiB' size='1048576'>8</pages>
          <distances>
            <sibling id='0' value='10'/>
            <sibling id='1' value='21'/>
          </distances>
          <cpus num='16'>
            <cpu id='0' socket_id='0' core_id='0' siblings='0,16'/>
            ...
          </cpus>
        </cell>
        <cell id='1'>
          <memory unit='KiB'>16777216</memory>
          <pages unit='KiB' size='4'>524288</pages>
          <pages unit='KiB' size='1048576'>14</pages>
          <distances>
            <sibling id='0' value='21'/>
            <sibling id='1' value='10'/>
          </distances>
          <cpus num='16'>
            <cpu id='1' socket_id='1' core_id='0' siblings='1,17'/>
            ...
          </cpus>
        </cell>
    
    #virsh freepages --all
        Node 0:
       4KiB: 1815163
      1048576KiB: 8

     Node 1:
     4KiB: 288599
     1048576KiB: 14

Comment 7 errata-xmlrpc 2018-06-26 16:22:48 UTC
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:2006