[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [QEMU 4/7] balloon: get free page info from guest
From: |
Li, Liang Z |
Subject: |
Re: [Qemu-devel] [QEMU 4/7] balloon: get free page info from guest |
Date: |
Mon, 20 Jun 2016 02:48:00 +0000 |
> On Mon, Jun 13, 2016 at 06:16:46PM +0800, Liang Li wrote:
> > Add a new feature to get the free page information from guest, the
> > free page information is saved in a bitmap. Please note that 'free
> > page' only means these pages are free before the request, some of the
> > pages will become no free during the process of sending the free page
> > bitmap to QEMU.
> >
> > Signed-off-by: Liang Li <address@hidden>
>
>
> I don't much like this request interface.
> The meaning of free page is rather fuzzy too - so at what point are they free?
>
>
> My suggestion would be:
> report free page request ID to guest
> include request ID when guest sends free page list
>
> the definition is then:
> page was free sometime after host set this value of request
> ID and before it received response with the same ID
That's better. I will change in next version.
And there is another issue similar as we solved to speed up the
inflating/deflating process.
Should we use a large page bitmap or a small one ? I used a big one in the
patch.
If we chose to use a small page bitmap, then we have to traverse the free page
list for many times,
and the meaning of free page will be more fuzzy.
But if we use a big map bitmap, people may ask, why a small one here and a big
one there?
Thanks!
Liang
- Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process, (continued)
Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process, Michael S. Tsirkin, 2016/06/19
[Qemu-devel] [QEMU 2/7] virtio-balloon: add drop cache support, Liang Li, 2016/06/13
[Qemu-devel] [QEMU 4/7] balloon: get free page info from guest, Liang Li, 2016/06/13
[Qemu-devel] [QEMU 3/7] Add the hmp and qmp interface for dropping cache, Liang Li, 2016/06/13
Re: [Qemu-devel] [QEMU 3/7] Add the hmp and qmp interface for dropping cache, Li, Liang Z, 2016/06/13
Re: [Qemu-devel] [QEMU 3/7] Add the hmp and qmp interface for dropping cache, Dr. David Alan Gilbert, 2016/06/13
Re: [Qemu-devel] [QEMU 3/7] Add the hmp and qmp interface for dropping cache, Li, Liang Z, 2016/06/13
Re: [Qemu-devel] [QEMU 3/7] Add the hmp and qmp interface for dropping cache, Li, Liang Z, 2016/06/16