qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] sleeping in vm live migration code
@ 2017-04-12 13:43 ali saeedi
  2017-04-18 14:53 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: ali saeedi @ 2017-04-12 13:43 UTC (permalink / raw)
  To: qemu-devel

Hi
why we have below code in vm live migration?
  * g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);*
thanks a lot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] sleeping in vm live migration code
  2017-04-12 13:43 [Qemu-devel] sleeping in vm live migration code ali saeedi
@ 2017-04-18 14:53 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-04-18 14:53 UTC (permalink / raw)
  To: ali saeedi; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

On Wed, Apr 12, 2017 at 06:13:33PM +0430, ali saeedi wrote:
> why we have below code in vm live migration?
>   * g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);*

It's for migration rate-limiting.  The migration thread throttles itself
if the user has configured a maximum transmission rate for the live
migration connection.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-18 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-12 13:43 [Qemu-devel] sleeping in vm live migration code ali saeedi
2017-04-18 14:53 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).