Bug 618685 - mem-leak on guests with high disk IO
Summary: mem-leak on guests with high disk IO
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu   
(Show other bugs)
Version: 12
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL: http://git.kernel.org/?p=virt/kvm/qem...
Keywords: Patch
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-27 14:33 UTC by Jan ONDREJ
Modified: 2013-01-09 11:37 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-12-03 13:03:31 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Another patch (109 bytes, text/plain)
2010-07-27 18:03 UTC, Jan ONDREJ
no flags Details

Description Jan ONDREJ 2010-07-27 14:33:46 UTC
Description of problem:
Some of my virtual machines eats more memory like defined in configuration. It is sometime more than 3-times like in definition. For example should use 2.5 GB RAM, but top shows:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 2412 qemu      20   0 7563m 3.5g 1092 S 99.7 22.2   7926:00 qemu-kvm           

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

How reproducible:
aprox. one week after guest reboot, guest memory usage is growing with constant usage.

Steps to Reproduce:
I am not sure, if it is reproducible on your machine, but I think this was already fixed upstream, so may be no need to reproduce.
Additional info:
qemu-0.12.4 has an fix for:
  Fix multiwrite memory leak in error case

May be this patch helps:

If there are no plans to release 0.12.4 for Fedora, is it possible to patch current stable qemu-kvm?

I can recheck, if you push an updates-testing package.

Comment 1 Jan ONDREJ 2010-07-27 18:03:54 UTC
Created attachment 434794 [details]
Another patch

May be we need to apply also this patch before.

Comment 2 Jan ONDREJ 2010-08-25 19:28:38 UTC
Looks like this is fixed in qemu-0.12.5-1.fc13. Any chance to get this into F12 too? If not, I will update my host to F13.

And I tested to compile this patch (+any other from upstream) and looks like it helped to leave memory usage at constant value (I think it's still high, but at least not increasing).

My mail server should use 2.5 GB memory, but top says:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 2768 qemu      20   0 5443m 3.8g 1116 S  3.8 24.0  12558:01 qemu-kvm           

5 GB VIRT (>2*defined_memory) and 3.8 GB RES.

Comment 3 Bug Zapper 2010-11-03 11:30:56 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 4 Bug Zapper 2010-12-03 13:03:31 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

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