Bug 2052489 - KubevirtVmHighMemoryUsage is based on limit not request
Summary: KubevirtVmHighMemoryUsage is based on limit not request
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Metrics
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Shirly Radco
QA Contact: Satyajit Bulage
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-09 11:36 UTC by Fabian Deutsch
Modified: 2025-04-04 14:16 UTC (History)
7 users (show)

Fixed In Version: v4.10.0-671
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-16 16:07:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 7204 0 None Merged Updated the KubevirtVmHighMemoryUsage alert 2022-02-10 17:28:37 UTC
Github kubevirt kubevirt pull 7209 0 None Merged [release-0.49] Updated the KubevirtVmHighMemoryUsage alert 2022-02-10 17:28:21 UTC
Red Hat Product Errata RHSA-2022:0947 0 None None None 2022-03-16 16:07:19 UTC

Description Fabian Deutsch 2022-02-09 11:36:30 UTC
Description of problem:
There is an alert to warn the user when the VM (launcher) is about to exceed it's memory requests.
This is an important warning sign, because once the launcher is exceeding it's memory requests, then it is eligible to be killed.
Because of the impact on the workload, it is important that the alert is correct in order to give the user visibility into this problem

Today, the alert is based on limits. This is also heplful, but less relevant, as requests must have been crossed before the memory usage approaches the limits. Thus a requests based alert is firing earlier (usually, except for gauranteed class), than a limits based on.
A limits based on is giving us no insights into if the VM ever approaches or crosses the requests.

Version-Release number of selected component (if applicable):
4.10

How reproducible:
Difficult - As he launcher needs to grow in it's memory usage to approach the requested limits

Steps to Reproduce:
1. TBD
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Satyajit Bulage 2022-02-16 03:56:24 UTC
I followed below steps:

1. Created VM (fedora)
2. Installed 'stress' command
3. Applied memory load using 'stress' command couple of times.
  i. stress --vm 2 --vm-bytes 512M
4. I see the alert "KubevirtVmHighMemoryUsage" having severity:"warning" and state:"Firing"

See attached screenshot.

@shirly is this sufficient to check/verify this BZ?

Comment 5 Satyajit Bulage 2022-02-16 11:24:40 UTC
After guidance from Shirly, I will verify this BZ.

Comment 8 errata-xmlrpc 2022-03-16 16:07:15 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 (Moderate: OpenShift Virtualization 4.10.0 Images security and bug fix update), 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-2022:0947


Note You need to log in before you can comment on or make changes to this bug.