From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEgNY-0007wx-OV for qemu-devel@nongnu.org; Fri, 23 Jan 2015 10:42:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEgNV-00089m-IW for qemu-devel@nongnu.org; Fri, 23 Jan 2015 10:42:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEgNV-00089a-Al for qemu-devel@nongnu.org; Fri, 23 Jan 2015 10:42:33 -0500 Message-ID: <54C26BE5.1060902@redhat.com> Date: Fri, 23 Jan 2015 08:42:29 -0700 From: Eric Blake MIME-Version: 1.0 References: <1418347746-15829-1-git-send-email-liang.z.li@intel.com> <1418347746-15829-13-git-send-email-liang.z.li@intel.com> <20150123134821.GL2370@work-vm> In-Reply-To: <20150123134821.GL2370@work-vm> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KSEsJwLEx9SnkihBal6Wx8mD52S8j03FO" Subject: Re: [Qemu-devel] [v3 12/13] migration: Add command to set migration parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" , Liang Li Cc: yang.z.zhang@intel.com, armbru@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, quintela@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KSEsJwLEx9SnkihBal6Wx8mD52S8j03FO Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/23/2015 06:48 AM, Dr. David Alan Gilbert wrote: > * Liang Li (liang.z.li@intel.com) wrote: >> Add the qmp and hmp commands to tune the parameters used in live >> migration. >=20 > If I understand correctly on the destination side we need to set the nu= mber of > decompression threads very early on an incoming migration - I'm not > clear how early that needs to be - especially if you're using fd: so it= 's > not waiting for a connect ? >=20 > Eric: How would libvirt do that? Libvirt does some handshaking before starting migration. The source would advertise that "I'm capable of threaded migration; and plan to use X send and Y receive threads"; the destination would either reply that threads are unsupported or set the receive thread count at that point, then the source would know if it can enable threads and set the send thread count, before letting migration start. I don't see any problems with the current design of starting things up. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --KSEsJwLEx9SnkihBal6Wx8mD52S8j03FO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJUwmvlAAoJEKeha0olJ0Nqrl0H/ihyM1O+qVzysZtSgWxz314r nB267B1vP42m9Gi27JvOR5QPFFgeGzaf2HK6IOQdPH7mT9R4tKRLCFTz2mlTfjNh Gon8rU4T98UzluhqIg3UIyKgV6A0Nzv0ifUcarje7Zv3VTnIBeHKbmmtPANiI1b8 Ct3FQYvv/0hToBqFe4YhWz9JrXWEiwGlC/cLYXhaOZK4wgBNrjNqQaYWLbFt2zdO xqZwZsSPNGXcIARJg60M3v9ExKF+S+doN4lsY5ZUC3OeWXTfsXDaGBeuaPj8uxwa ctbqLFGs+gbO3No6tgwoaszknP3Ti421Je+olj8vdsq6uCPuK8+HAsD2OynBJUk= =ewQw -----END PGP SIGNATURE----- --KSEsJwLEx9SnkihBal6Wx8mD52S8j03FO--