Linux virtualization list
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Li, Liang Z" <liang.z.li@intel.com>
Cc: "ehabkost@redhat.com" <ehabkost@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	Roman Kagan <rkagan@virtuozzo.com>,
	"amit.shah@redhat.com" <amit.shah@redhat.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"virtualization@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	"rth@twiddle.net" <rth@twiddle.net>
Subject: Re: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization
Date: Fri, 4 Mar 2016 12:36:58 +0200	[thread overview]
Message-ID: <20160304122456-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <F2CBF3009FA73547804AE4C663CAB28E037717B5@SHSMSX101.ccr.corp.intel.com>

On Fri, Mar 04, 2016 at 10:11:00AM +0000, Li, Liang Z wrote:
> > On Fri, Mar 04, 2016 at 09:12:12AM +0000, Li, Liang Z wrote:
> > > > Although I wonder which is cheaper; that would be fairly expensive
> > > > for the guest wouldn't it? And you'd somehow have to kick the guest
> > > > before migration to do the ballooning - and how long would you wait for
> > it to finish?
> > >
> > > About 5 seconds for an 8G guest, balloon to 1G. Get the free pages
> > > bitmap take about 20ms for an 8G idle guest.
> > >
> > > Liang
> > 
> > Where is the time spent though? allocating within guest?
> > Or passing the info to host?
> > If the former, we can use existing inflate/deflate vqs:
> > Have guest put each free page on inflate vq, then on deflate vq.
> > 
> 
> Maybe I am not clear enough.
> 
> I mean if we inflate balloon before live migration, for a 8GB guest, it takes about 5 Seconds for the inflating operation to finish.

And these 5 seconds are spent where?

> For the PV solution, there is no need to inflate balloon before live migration, the only cost is to traversing the free_list to
>  construct the free pages bitmap, and it takes about 20ms for a 8GB idle guest( less if there is less free pages),
>  passing the free pages info to host will take about extra 3ms.
> 
> 
> Liang

So now let's please stop talking about solutions at a high level and
discuss the interface changes you make in detail.
What makes it faster? Better host/guest interface? No need to go through
buddy allocator within guest? Less interrupts? Something else?


> > --
> > MST

  reply	other threads:[~2016-03-04 10:36 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1457001868-15949-1-git-send-email-liang.z.li@intel.com>
2016-03-03 10:44 ` [RFC qemu 1/4] pc: Add code to get the lowmem form PCMachineState Liang Li
2016-03-03 10:44 ` [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device Liang Li
2016-03-03 10:44 ` [RFC qemu 3/4] migration: not set migration bitmap in setup stage Liang Li
2016-03-03 10:44 ` [RFC qemu 4/4] migration: filter out guest's free pages in ram bulk stage Liang Li
     [not found] ` <1457001868-15949-5-git-send-email-liang.z.li@intel.com>
2016-03-03 12:16   ` Cornelia Huck
2016-03-04  2:32     ` Li, Liang Z
2016-03-03 12:45   ` [Qemu-devel] " Daniel P. Berrange
     [not found]   ` <20160303124520.GE32270@redhat.com>
2016-03-04  2:43     ` Li, Liang Z
     [not found] ` <1457001868-15949-3-git-send-email-liang.z.li@intel.com>
2016-03-03 12:23   ` [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device Cornelia Huck
2016-03-03 12:56   ` Michael S. Tsirkin
     [not found]   ` <20160303125651.GA21382@redhat.com>
2016-03-04  2:29     ` Li, Liang Z
     [not found]   ` <20160303132334.5e4565df.cornelia.huck@de.ibm.com>
2016-03-04  2:38     ` Li, Liang Z
2016-03-03 13:58 ` [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization Roman Kagan
2016-03-04  1:35   ` Li, Liang Z
2016-03-03 17:46 ` Dr. David Alan Gilbert
     [not found] ` <20160303174615.GF2115@work-vm>
2016-03-04  1:52   ` Li, Liang Z
2016-03-04  8:14     ` [Qemu-devel] " Roman Kagan
     [not found]     ` <20160304081411.GD9100@rkaganb.sw.ru>
2016-03-04  9:08       ` Li, Liang Z
     [not found]       ` <F2CBF3009FA73547804AE4C663CAB28E0377160A@SHSMSX101.ccr.corp.intel.com>
2016-03-04 10:23         ` Roman Kagan
     [not found]         ` <20160304102346.GB2479@rkaganb.sw.ru>
2016-03-04 14:26           ` Li, Liang Z
     [not found]           ` <F2CBF3009FA73547804AE4C663CAB28E0414516C@shsmsx102.ccr.corp.intel.com>
2016-03-04 14:45             ` Michael S. Tsirkin
2016-03-04 15:49               ` Li, Liang Z
     [not found]               ` <F2CBF3009FA73547804AE4C663CAB28E041452EA@shsmsx102.ccr.corp.intel.com>
2016-03-05 19:55                 ` Michael S. Tsirkin
     [not found]                 ` <20160305214748-mutt-send-email-mst@redhat.com>
2016-03-07  6:49                   ` Li, Liang Z
     [not found]                   ` <F2CBF3009FA73547804AE4C663CAB28E04146308@shsmsx102.ccr.corp.intel.com>
2016-03-07 11:40                     ` Michael S. Tsirkin
2016-03-07 15:06                       ` Li, Liang Z
2016-03-09 14:28                       ` Roman Kagan
     [not found]                       ` <20160309142851.GA9715@rkaganb.sw.ru>
2016-03-09 15:27                         ` Li, Liang Z
     [not found]                         ` <F2CBF3009FA73547804AE4C663CAB28E041498BA@shsmsx102.ccr.corp.intel.com>
2016-03-09 15:30                           ` Michael S. Tsirkin
     [not found]                           ` <20160309172929-mutt-send-email-mst@redhat.com>
2016-03-10  1:41                             ` Li, Liang Z
     [not found]                             ` <F2CBF3009FA73547804AE4C663CAB28E0414A41D@shsmsx102.ccr.corp.intel.com>
2016-03-10 12:29                               ` Michael S. Tsirkin
2016-03-09 15:41                         ` Michael S. Tsirkin
     [not found]                         ` <20160309173017-mutt-send-email-mst@redhat.com>
2016-03-09 17:04                           ` Roman Kagan
     [not found]                           ` <20160309170438.GB9715@rkaganb.sw.ru>
2016-03-09 17:39                             ` Michael S. Tsirkin
2016-03-10 10:21                               ` Roman Kagan
2016-03-09 19:38                             ` Rik van Riel
     [not found]                             ` <1457552332.17933.24.camel@redhat.com>
2016-03-10  9:30                               ` Roman Kagan
2016-03-04 16:24             ` Paolo Bonzini
     [not found]             ` <56D9B6C2.3070708@redhat.com>
2016-03-04 18:51               ` Dr. David Alan Gilbert
2016-03-07  5:34                 ` Li, Liang Z
2016-03-09 13:22                 ` Roman Kagan
     [not found]                 ` <20160309132210.GA5869@rkaganb.sw.ru>
2016-03-09 14:19                   ` Li, Liang Z
2016-03-09  6:18               ` Li, Liang Z
2016-03-04  7:55   ` Roman Kagan
     [not found]   ` <20160304075538.GC9100@rkaganb.sw.ru>
2016-03-04  8:23     ` Li, Liang Z
2016-03-04  8:35       ` Roman Kagan
     [not found]       ` <20160304083550.GE9100@rkaganb.sw.ru>
2016-03-04  9:08         ` Dr. David Alan Gilbert
     [not found]         ` <20160304090820.GA2149@work-vm>
2016-03-04  9:12           ` Li, Liang Z
2016-03-04  9:47             ` Michael S. Tsirkin
     [not found]             ` <20160304114519-mutt-send-email-mst@redhat.com>
2016-03-04 10:11               ` Li, Liang Z
2016-03-04 10:36                 ` Michael S. Tsirkin [this message]
2016-03-04 15:13                   ` Li, Liang Z
     [not found]                   ` <F2CBF3009FA73547804AE4C663CAB28E04145231@shsmsx102.ccr.corp.intel.com>
2016-03-08 14:03                     ` Michael S. Tsirkin
     [not found]                     ` <20160308160145-mutt-send-email-mst@redhat.com>
2016-03-08 14:17                       ` Li, Liang Z
2016-03-04  9:35           ` Roman Kagan
2016-03-08 11:13 ` Amit Shah
2016-03-08 13:11   ` Li, Liang Z
2016-03-10  7:44   ` Li, Liang Z
     [not found]   ` <F2CBF3009FA73547804AE4C663CAB28E0414A7E3@shsmsx102.ccr.corp.intel.com>
2016-03-10  7:57     ` Amit Shah
     [not found]     ` <20160310075728.GB4678@grmbl.mre>
2016-03-10  8:36       ` Li, Liang Z
     [not found]       ` <F2CBF3009FA73547804AE4C663CAB28E0414A860@shsmsx102.ccr.corp.intel.com>
2016-03-10 11:18         ` Dr. David Alan Gilbert
     [not found]         ` <20160310111844.GB2276@work-vm>
2016-03-11  2:38           ` Li, Liang Z
     [not found]           ` <F2CBF3009FA73547804AE4C663CAB28E0414B118@shsmsx102.ccr.corp.intel.com>
2016-03-14 17:03             ` Dr. David Alan Gilbert
     [not found]             ` <20160314170334.GK2234@work-vm>
2016-03-15  3:31               ` Li, Liang Z
2016-03-15 10:29               ` Michael S. Tsirkin
     [not found]               ` <20160315121613-mutt-send-email-mst@redhat.com>
2016-03-15 11:11                 ` Li, Liang Z
2016-03-15 19:55                   ` Dr. David Alan Gilbert
2016-03-16  1:20                     ` Li, Liang Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160304122456-mutt-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=amit.shah@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=liang.z.li@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rkagan@virtuozzo.com \
    --cc=rth@twiddle.net \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox