Bug 1848579

Summary: [RFE] Show total huge pages
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.VirtAssignee: Michal Skrivanek <michal.skrivanek>
Status: CLOSED CURRENTRELEASE QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.1CC: bugs, klaas
Target Milestone: ovirt-4.5.0Keywords: FutureFeature
Target Release: 4.5.0Flags: pm-rhel: ovirt-4.5?
pm-rhel: planning_ack?
ahadas: devel_ack+
pm-rhel: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 06:33:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arik 2020-06-18 14:44:43 UTC
This bug is about the second part of bz 1806339 - showing the total number of huge pages on the host.

Comment 2 Qin Yuan 2022-04-19 13:11:00 UTC
Verified with ovirt-engine-4.5.0.2-0.7.el8ev.noarch

Before VMs starting on host:
Huge Pages (size: free/total):  2048: 1024/1024, 1048576: 4/4

Start VM1(system memory 1024) with HugePages 2048, VM2(system memory 1024) with Hugepages 1048576,  VM3(system memory 3072) with HugePages 1048576:
Huge Pages (size: free/total):  2048: 512/1024, 1048576: 0/4


Check free/total huge pages in host statistics via API:
    <statistic id="6c5d91a5-6077-3f4e-8390-4023c6178729">
        <name>hugepages.2048.free</name>
        <description>Amount of free huge pages of the given size</description>
        <kind>gauge</kind>
        <type>integer</type>
        <unit>none</unit>
        <values>
            <value>
                <datum>512</datum>
            </value>
        </values>
    </statistic>
    <statistic id="0cd932f5-ca10-33ec-9ee4-afa34ab786a6">
        <name>hugepages.1048576.free</name>
        <description>Amount of free huge pages of the given size</description>
        <kind>gauge</kind>
        <type>integer</type>
        <unit>none</unit>
        <values>
            <value>
                <datum>0</datum>
            </value>
        </values>
    </statistic>
    <statistic id="3dc5d3c1-831a-395b-9ee6-efc87bd379de">
        <name>hugepages.2048.total</name>
        <description>Amount of total huge pages of the given size</description>
        <kind>gauge</kind>
        <type>integer</type>
        <unit>none</unit>
        <values>
            <value>
                <datum>1024</datum>
            </value>
        </values>
    </statistic>
    <statistic id="bf05b935-41a1-3ab3-a9e4-3917a0bc5146">
        <name>hugepages.1048576.total</name>
        <description>Amount of total huge pages of the given size</description>
        <kind>gauge</kind>
        <type>integer</type>
        <unit>none</unit>
        <values>
            <value>
                <datum>4</datum>
            </value>
        </values>
    </statistic>

Comment 3 Sandro Bonazzola 2022-04-20 06:33:59 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.