Re: [Qemu-devel] [PATCH v1 1/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-11 Thread Paolo Bonzini
- Original Message - > From: "Anthony Xu" > To: "Paolo Bonzini" , "Yang Zhong" > , qemu-devel@nongnu.org > Cc: "Chao P Peng" > Sent: Friday, March 10, 2017 8:30:06 PM > Subject: RE: [PATCH v1 1/2]

Re: [Qemu-devel] [PATCH v1 1/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-10 Thread Xu, Anthony
> > Ideally, freeing QOM object should not require a global lock. > > If you see any other QOM requiring a global lock, please let us know, we > are willing to fix it. > > All of them. When unplugging a device, the device object will be freed > from an RCU callback. > Thanks for your reply,

Re: [Qemu-devel] [PATCH v1 1/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-10 Thread Paolo Bonzini
On 10/03/2017 17:05, Xu, Anthony wrote: > Ideally, freeing QOM object should not require a global lock. > If you see any other QOM requiring a global lock, please let us know, we are > willing to fix it. All of them. When unplugging a device, the device object will be freed from an RCU

Re: [Qemu-devel] [PATCH v1 1/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-10 Thread Xu, Anthony
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Friday, March 10, 2017 12:42 AM > To: Zhong, Yang ; qemu-devel@nongnu.org > Cc: Xu, Anthony ; Peng, Chao P > > Subject: Re: [PATCH v1 1/2]

Re: [Qemu-devel] [PATCH v1 1/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-10 Thread Paolo Bonzini
On 10/03/2017 16:14, Yang Zhong wrote: > There are a lot of memory allocation during the qemu bootup, which are > freed later by RCU thread,which means the heap size becomes biger and > biger when allocation happens, but the heap may not be shrinked even > after release happens,because some