RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 726014 - Fix memleak on exit in virtio-balloon
Summary: Fix memleak on exit in virtio-balloon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Amit Shah
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-27 10:25 UTC by Amit Shah
Modified: 2013-01-10 00:09 UTC (History)
6 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.179.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 15:54:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1531 0 normal SHIPPED_LIVE Moderate: qemu-kvm security, bug fix, and enhancement update 2011-12-06 01:23:30 UTC

Description Amit Shah 2011-07-27 10:25:41 UTC
Description of problem:

Unplugging a virtio-balloon device or exiting qemu doesn't free some RAM.  Adding an exit handler that calls virtio_cleanup() fixes the leak.

Comment 5 Shaolong Hu 2011-09-09 08:19:08 UTC
Verification of this bug is blocked by bug 736975.

Comment 6 Shaolong Hu 2011-10-10 04:50:22 UTC
According to:
https://bugzilla.redhat.com/show_bug.cgi?id=736975#c8

Bug 736975 has been fixed.

Reproduce and verify using steps in:
https://bugzilla.redhat.com/show_bug.cgi?id=726020#c7

Since from qemu 160, all version suffers from bug 736975, cannot reproduce this as a contrast, just verify the patch.

Verify on qemu-kvm-0.12.1.2-2.193.el6.x86_64:

used    free    buffers/cached             
181     7281          0/6             <---before start qemu
735     6726          0/9             <---start qemu
731     6730          0/9             <---after hotplug/unplug 300 times
182     7279          0/6             <---after exit qemu

According to above results, the patch works fine, verified.

However, there is another issue, once i did 300 times hotplug/unplug and check the result next morning, the used/free memory are 914/6547, i did two times more and check the result immediately after it finished, it looks like above one, seems when idle, qemu-kvm has memory leak? I will investigate this further. Any advice please let me know.

Comment 7 juzhang 2011-10-11 04:55:00 UTC
(In reply to comment #6)
> According to:
> https://bugzilla.redhat.com/show_bug.cgi?id=736975#c8
> 
> Bug 736975 has been fixed.
> 
> Reproduce and verify using steps in:
> https://bugzilla.redhat.com/show_bug.cgi?id=726020#c7
> 
> Since from qemu 160, all version suffers from bug 736975, cannot reproduce this
> as a contrast, just verify the patch.
> 
> Verify on qemu-kvm-0.12.1.2-2.193.el6.x86_64:
> 
> used    free    buffers/cached             
> 181     7281          0/6             <---before start qemu
> 735     6726          0/9             <---start qemu
> 731     6730          0/9             <---after hotplug/unplug 300 times
> 182     7279          0/6             <---after exit qemu
> 
> According to above results, the patch works fine, verified.
> 
> However, there is another issue, once i did 300 times hotplug/unplug and check
> the result next morning, the used/free memory are 914/6547, i did two times
> more and check the result immediately after it finished, it looks like above
> one, seems when idle, qemu-kvm has memory leak? I will investigate this
> further. Any advice please let me know.
I will set this issue as verified.about the potential issue,if you can identify it,please spilt it.

Comment 9 errata-xmlrpc 2011-12-06 15:54:45 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.

http://rhn.redhat.com/errata/RHSA-2011-1531.html


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