All of lore.kernel.org
 help / color / mirror / Atom feed
* memory leak in block/xen_disk in qemu-3.x
@ 2018-12-11 15:30 ` Olaf Hering
  0 siblings, 0 replies; 8+ messages in thread
From: Olaf Hering @ 2018-12-11 15:30 UTC (permalink / raw)
  To: xen-devel, qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]

What are the live time rules of ioreq->buf?

In my testing the memory usage of qemu is constantly growing from about
250MB to several GB after a few days.

Some debugging shows that ioreq_runio_qemu_aio() overwrites ioreq->buf,
which contributes to the leak. In addition, ioreq_reset() also just
globbers iorew->buf. While this was observed with a backport of xen_disk
changes to qemu-2.9, the code in xen_disk.c did not change in this
regard. I changed the code to call qemu_vfree(ioreq->buf) in the few
places that globber the pointer, that fixes the leak for me.

Right now neither qemu-3.0 nor 3.1 for me, so I can not test
qemu.git#master if it eventually behaves different than
qemu.git#stable-2.9+backport.

Olaf

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-11 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11 15:30 memory leak in block/xen_disk in qemu-3.x Olaf Hering
2018-12-11 15:30 ` [Qemu-devel] " Olaf Hering
2018-12-11 16:01 ` Paul Durrant
2018-12-11 16:01   ` [Qemu-devel] [Xen-devel] " Paul Durrant
2018-12-11 16:07   ` Olaf Hering
2018-12-11 16:07     ` [Qemu-devel] [Xen-devel] " Olaf Hering
2018-12-11 16:15     ` Paul Durrant
2018-12-11 16:15       ` [Qemu-devel] [Xen-devel] " Paul Durrant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.