Skip to contentSkip to conversation

possible memory-leak in qemu-dm

xen-discuss Florian Manschwetus 5 participants 10 messages Oct 14, 2009 – Nov 6, 2009 4 messages not in the archive

lore
Share & tools
lore
#4 lore raw
In reply to a message not in the archive

Am 14.10.2009 21:46, schrieb Mark Johnson:

Quoted 10 lines

Hi Florian,

Quoted 6 lines · Florian Manschwetus

Mark,
could you also make a short info howto update, a system I build just yesterday, when the patch is inplace. The older Machine I would have to re-bfu due to changed userspace, but the machine installed yesterday should be fixed with rebuilding and reinstalling xvm packages?

Quoted 7 lines
Quoted 2 lines

Btw, could you sync-up the onnv-3.4 with b124? It is difficult to build b123 with b124, due to missing, with b124 obsolete, headerfiles.

I've sync'd up with the changes in qemu-unstable, and qemu-dm is still leaking a ton of memory for HVM guests which don't have PV drivers. So it looks like they don't have a correct fix upstream for this.

Uh, if this could be confirmed it is really a huge and ultimately ugly problem. If I could do anything to help you to fix it, give me some detail.

Florian

Quoted 6 lines

MRJ

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
Quoted 14 lines · Florian Manschwetus

Am 14.10.2009 21:46, schrieb Mark Johnson:

Quoted 13 lines

Hi Florian,

Quoted 8 lines · Florian Manschwetus

Mark,
could you also make a short info howto update, a system I build just yesterday, when the patch is inplace. The older Machine I would have to re-bfu due to changed userspace, but the machine installed yesterday should be fixed with rebuilding and reinstalling xvm packages?

Btw, could you sync-up the onnv-3.4 with b124? It is difficult to build b123 with b124, due to missing, with b124 obsolete, headerfiles.

Quoted 7 lines
Quoted 4 lines

I've sync'd up with the changes in qemu-unstable, and qemu-dm is still leaking a ton of memory for HVM guests which don't have PV drivers. So it looks like they don't have a correct fix upstream for this.

Uh, if this could be confirmed it is really a huge and ultimately ugly problem. If I could do anything to help you to fix it, give me some detail.

Yeah.. what kind of HVM guest is triggering this bug? How fast it is leaking mem?

-- Pasi

#6 lore raw

Am 15.10.2009 12:26, schrieb Pasi Kärkkäinen:

Quoted 19 lines · Florian Manschwetus
Quoted 18 lines

Am 14.10.2009 21:46, schrieb Mark Johnson:

Quoted 17 lines

Hi Florian,

Quoted 8 lines · Florian Manschwetus

Mark,
could you also make a short info howto update, a system I build just yesterday, when the patch is inplace. The older Machine I would have to re-bfu due to changed userspace, but the machine installed yesterday should be fixed with rebuilding and reinstalling xvm packages?

Btw, could you sync-up the onnv-3.4 with b124? It is difficult to build b123 with b124, due to missing, with b124 obsolete, headerfiles.

I've sync'd up with the changes in qemu-unstable, and qemu-dm is still leaking a ton of memory for HVM guests which don't have PV drivers. So it looks like they don't have a correct fix upstream for this.

Quoted 6 lines
Quoted 3 lines

Uh, if this could be confirmed it is really a huge and ultimately ugly problem. If I could do anything to help you to fix it, give me some detail.

Yeah.. what kind of HVM guest is triggering this bug? How fast it is leaking mem?

It is a win2003R2 with exchange2007

xm uptime tmpexch
Name ID Uptime
tmpexch 7 9 days, 3:21:39

PID USERNAME NLWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2106 xvm 3 13 0 7340M 3807M cpu/4 31.4H 6.57% qemu-dm

Florian

Quoted 3 lines

-- Pasi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw
Quoted 28 lines · Florian Manschwetus

Am 15.10.2009 12:26, schrieb Pasi Kärkkäinen:

Quoted 19 lines · Florian Manschwetus
Quoted 18 lines

Am 14.10.2009 21:46, schrieb Mark Johnson:

Quoted 17 lines

Hi Florian,

Quoted 8 lines · Florian Manschwetus

Mark,
could you also make a short info howto update, a system I build just yesterday, when the patch is inplace. The older Machine I would have to re-bfu due to changed userspace, but the machine installed yesterday should be fixed with rebuilding and reinstalling xvm packages?

Btw, could you sync-up the onnv-3.4 with b124? It is difficult to build b123 with b124, due to missing, with b124 obsolete, headerfiles.

I've sync'd up with the changes in qemu-unstable, and qemu-dm is still leaking a ton of memory for HVM guests which don't have PV drivers. So it looks like they don't have a correct fix upstream for this.

Quoted 6 lines
Quoted 3 lines

Uh, if this could be confirmed it is really a huge and ultimately ugly problem. If I could do anything to help you to fix it, give me some detail.

Yeah.. what kind of HVM guest is triggering this bug? How fast it is leaking mem?

It is a win2003R2 with exchange2007

Quoted 9 lines

xm uptime tmpexch
Name ID Uptime
tmpexch 7 9 days, 3:21:39

PID USERNAME NLWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2106 xvm 3 13 0 7340M 3807M cpu/4 31.4H 6.57% qemu-dm

Florian

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#8 lore raw

Am 15.10.2009 13:04, schrieb Stefano Stabellini:

Quoted 36 lines · Florian Manschwetus
Quoted 35 lines

Am 15.10.2009 12:26, schrieb Pasi Kärkkäinen:

Quoted 19 lines · Florian Manschwetus
Quoted 18 lines

Am 14.10.2009 21:46, schrieb Mark Johnson:

Quoted 17 lines

Hi Florian,

Quoted 8 lines · Florian Manschwetus

Mark,
could you also make a short info howto update, a system I build just yesterday, when the patch is inplace. The older Machine I would have to re-bfu due to changed userspace, but the machine installed yesterday should be fixed with rebuilding and reinstalling xvm packages?

Btw, could you sync-up the onnv-3.4 with b124? It is difficult to build b123 with b124, due to missing, with b124 obsolete, headerfiles.

I've sync'd up with the changes in qemu-unstable, and qemu-dm is still leaking a ton of memory for HVM guests which don't have PV drivers. So it looks like they don't have a correct fix upstream for this.

Quoted 6 lines
Quoted 3 lines

Uh, if this could be confirmed it is really a huge and ultimately ugly problem. If I could do anything to help you to fix it, give me some detail.

Yeah.. what kind of HVM guest is triggering this bug? How fast it is leaking mem?

It is a win2003R2 with exchange2007

xm uptime tmpexch
Name ID Uptime
tmpexch 7 9 days, 3:21:39

PID USERNAME NLWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2106 xvm 3 13 0 7340M 3807M cpu/4 31.4H 6.57% qemu-dm

Quoted 6 lines
Quoted 2 lines

Florian

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

It is an older build of xvm-3.4 gate
I have to review current patch state and will update accordingly if possible.

It was Mark, who told that the problem isn't fixed by the Patch. So I not rushed to update.

Florian

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#13 lore raw
In reply to Stefano Stabellini
Quoted 3 lines · Stefano Stabellini

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

I'm not sure when it first showed up... It exists in current qemu-xen-3.4 bits.

I've updated the qemu bits to the latest qemu-xen-unstable bits (basically running qemu-xen-unstable with xen 3.4) including your patches, and qemu-dm is still leaking memory with a HVM guest with no PV drivers..

Tried a couple of different HVM guests with the same results..

MRJ

#9 lore raw
In reply to Florian Manschwetus
Quoted 18 lines · Florian Manschwetus
Quoted 12 lines
Quoted 12 lines
Quoted 3 lines

Yeah.. what kind of HVM guest is triggering this bug? How fast it is leaking mem?

It is a win2003R2 with exchange2007

xm uptime tmpexch
Name ID Uptime
tmpexch 7 9 days, 3:21:39

PID USERNAME NLWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2106 xvm 3 13 0 7340M 3807M cpu/4 31.4H 6.57% qemu-dm

Quoted 6 lines
Quoted 2 lines

Florian

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

Quoted 7 lines

It is an older build of xvm-3.4 gate
I have to review current patch state and will update accordingly if possible.

It was Mark, who told that the problem isn't fixed by the Patch. So I not rushed to update.

Hmm.. wondering if this is opensolaris specific, or if it happens also with Linux dom0s.

-- Pasi

#10 lore raw
Quoted 9 lines · Pasi Kärkkäinen
Quoted 8 lines · Florian Manschwetus
Quoted 4 lines

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

It is an older build of xvm-3.4 gate
I have to review current patch state and will update accordingly if possible.

Quoted 5 lines
Quoted 3 lines

It was Mark, who told that the problem isn't fixed by the Patch. So I not rushed to update.

Hmm.. wondering if this is opensolaris specific,

It's possible... I looked through our qemu patches and we don't have any changes in that code path.. So I would be surprised..

Quoted 1 line

or if it happens also with Linux dom0s.

Has anyone else seen this on 3.4 or unstable? e.g. boot a rhel3 guest and watch the memory usage of qemu-dm... You can't miss it if its leaking...

MRJ

#11 lore raw
Quoted 16 lines · Mark Johnson
Quoted 9 lines · Pasi Kärkkäinen
Quoted 8 lines · Florian Manschwetus
Quoted 4 lines

Was this happening before you applied my patches, but after "fix qemu memory leak in block interface"?
I am trying to understand if this is a recent regression.

It is an older build of xvm-3.4 gate
I have to review current patch state and will update accordingly if possible.

Quoted 5 lines
Quoted 3 lines

It was Mark, who told that the problem isn't fixed by the Patch. So I not rushed to update.

Hmm.. wondering if this is opensolaris specific,

Quoted 9 lines

It's possible... I looked through our qemu patches and we don't have any changes in that code path.. So I would be surprised..

Quoted 1 line

or if it happens also with Linux dom0s.

Has anyone else seen this on 3.4 or unstable? e.g. boot a rhel3 guest and watch the memory usage of qemu-dm... You can't miss it if its leaking...

What kind of operations are you doing in the guest?
Is there a simple benchmark that triggers this behaviour (for example a disk or network benchmark)?

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw
In reply to Mark Johnson
Quoted 2 lines · Mark Johnson

Has anyone else seen this on 3.4 or unstable?  e.g. boot a rhel3 guest and watch the memory usage of qemu-dm... You can't miss it if its leaking...

I just wanted to report that I also saw this memory leak problem on 3.4.1.

I applied the patch mentioned before:
http://lists.xensource.com/archives/html/xen-changelog/2009-10/msg00132.html

After applying the patch, the memory leak seems to be fixed. This is on a Linux 64-bit dom0 and freebsd HVM guest. Memory leak of qemu-dm was apparent just by extracting a ~5MB tarball of various text files.