WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] fix qemu memory leak

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] fix qemu memory leak
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Wed, 12 Aug 2009 10:14:28 -0700 (PDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Aug 2009 10:15:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.0908121711370.10516@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Is this just for stubdom, or is it a generic qemu problem?
(Your patch just gives the filename, no path to it.)

> -----Original Message-----
> From: Stefano Stabellini [mailto:stefano.stabellini@xxxxxxxxxxxxx]
> Sent: Wednesday, August 12, 2009 10:12 AM
> To: Stefano Stabellini
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] [PATCH] fix qemu memory leak
> 
> 
> On Wed, 12 Aug 2009, Stefano Stabellini wrote:
> > Hi all,
> > the qemu block interface leaks memory every time a read or 
> write request
> > is issued, this patch fixes it.
> > This is also the bug that is causing stubdomains to crash under high
> > disk IO.
> 
> I forgot to say that this patch should be backported to 3.4 too.
> 
> 
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> > 
> > ---
> > 
> > diff --git a/block.c b/block.c
> > index 36f5eb9..6ce453c 100644
> > --- a/block.c
> > +++ b/block.c
> > @@ -1378,6 +1378,7 @@ static void 
> bdrv_aio_rw_vector_cb(void *opaque, int ret)
> >      qemu_vfree(s->bounce);
> >      s->this_aiocb->cb(s->this_aiocb->opaque, ret);
> >      qemu_aio_release(s->this_aiocb);
> > +    qemu_free(s);
> >  }
> >  
> >  static BlockDriverAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> > 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel