Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-19 Thread Li, Liang Z
> > > > virtqueue_push(vq, elem, offset); @@ -374,6 +489,7 @@ static > > uint64_t virtio_balloon_get_features(VirtIODevice *vdev, uint64_t f, > > VirtIOBalloon *dev = VIRTIO_BALLOON(vdev); > > f |= dev->host_features; > > virtio_add_feature(&f, VIRTIO_BALLOON_F_STATS_VQ); >

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-18 Thread Michael S. Tsirkin
On Mon, Jun 13, 2016 at 06:16:43PM +0800, Liang Li wrote: > The implementation of the current virtio-balloon is not very efficient, > Bellow is test result of time spends on inflating the balloon to 3GB of > a 4GB idle guest: > > a. allocating pages (6.5%, 103ms) > b. sending PFNs to host (68.3%,

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-16 Thread Li, Liang Z
> +chunk = TARGET_PAGE_SIZE; > +} > +} > +} > + > +static void balloon_bulk_pages(ram_addr_t base_pfn, unsigned long > >>> *bitmap, > + unsigned long len, int page_shift, > +bool deflate) { #if defined(__l

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Thomas Huth
On 14.06.2016 16:41, Li, Liang Z wrote: >>> On 13.06.2016 12:16, Liang Li wrote: The implementation of the current virtio-balloon is not very efficient, Bellow is test result of time spends on inflating the balloon to 3GB of a 4GB idle guest: a. allocating pages (6.5%, 103m

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Li, Liang Z
> > On 13.06.2016 12:16, Liang Li wrote: > > > The implementation of the current virtio-balloon is not very > > > efficient, Bellow is test result of time spends on inflating the > > > balloon to 3GB of a 4GB idle guest: > > > > > > a. allocating pages (6.5%, 103ms) > > > b. sending PFNs to host (6

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Li, Liang Z
> Subject: Re: [QEMU 1/7] balloon: speed up inflating & deflating process > > On 13.06.2016 12:16, Liang Li wrote: > > The implementation of the current virtio-balloon is not very > > efficient, Bellow is test result of time spends on inflating the > > balloon to 3GB of a 4GB idle guest: > > > > a

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Thomas Huth
On 13.06.2016 12:16, Liang Li wrote: > The implementation of the current virtio-balloon is not very efficient, > Bellow is test result of time spends on inflating the balloon to 3GB of > a 4GB idle guest: > > a. allocating pages (6.5%, 103ms) > b. sending PFNs to host (68.3%, 787ms) > c. address t

[Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-13 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, Bellow is test result of time spends on inflating the balloon to 3GB of a 4GB idle guest: a. allocating pages (6.5%, 103ms) b. sending PFNs to host (68.3%, 787ms) c. address translation (6.1%, 96ms) d. madvise (19%, 300ms) It