* [Qemu-devel] [PATCH] migration: Fix rate limit
@ 2013-11-25 19:42 Matthew Garrett
2013-12-03 17:18 ` Matthew Garrett
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2013-11-25 19:42 UTC (permalink / raw)
To: qemu-devel; +Cc: Matthew Garrett
The migration thread appears to want to allow writeout to occur at full
speed rather than being rate limited during completion of state saving,
but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes
problems if there's more than 2GB of state left to save at this point. It
probably ought to just be INT64_MAX instead.
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
---
migration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration.c b/migration.c
index 2b1ab20..ff00bfb 100644
--- a/migration.c
+++ b/migration.c
@@ -583,7 +583,7 @@ static void *migration_thread(void *opaque)
ret = vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
if (ret >= 0) {
- qemu_file_set_rate_limit(s->file, INT_MAX);
+ qemu_file_set_rate_limit(s->file, INT64_MAX);
qemu_savevm_state_complete(s->file);
}
qemu_mutex_unlock_iothread();
--
1.8.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] migration: Fix rate limit
2013-11-25 19:42 [Qemu-devel] [PATCH] migration: Fix rate limit Matthew Garrett
@ 2013-12-03 17:18 ` Matthew Garrett
2013-12-03 17:21 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2013-12-03 17:18 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, quintela
Any feedback on this?
On Mon, Nov 25, 2013 at 02:42:43PM -0500, Matthew Garrett wrote:
> The migration thread appears to want to allow writeout to occur at full
> speed rather than being rate limited during completion of state saving,
> but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes
> problems if there's more than 2GB of state left to save at this point. It
> probably ought to just be INT64_MAX instead.
>
> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
> ---
> migration.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/migration.c b/migration.c
> index 2b1ab20..ff00bfb 100644
> --- a/migration.c
> +++ b/migration.c
> @@ -583,7 +583,7 @@ static void *migration_thread(void *opaque)
>
> ret = vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
> if (ret >= 0) {
> - qemu_file_set_rate_limit(s->file, INT_MAX);
> + qemu_file_set_rate_limit(s->file, INT64_MAX);
> qemu_savevm_state_complete(s->file);
> }
> qemu_mutex_unlock_iothread();
> --
> 1.8.4.2
>
>
>
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] migration: Fix rate limit
2013-12-03 17:18 ` Matthew Garrett
@ 2013-12-03 17:21 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2013-12-03 17:21 UTC (permalink / raw)
To: Matthew Garrett; +Cc: qemu-stable, qemu-devel, quintela
> On Mon, Nov 25, 2013 at 02:42:43PM -0500, Matthew Garrett wrote:
> > The migration thread appears to want to allow writeout to occur at full
> > speed rather than being rate limited during completion of state saving,
> > but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes
> > problems if there's more than 2GB of state left to save at this point. It
> > probably ought to just be INT64_MAX instead.
> >
> > Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
> > ---
> > migration.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/migration.c b/migration.c
> > index 2b1ab20..ff00bfb 100644
> > --- a/migration.c
> > +++ b/migration.c
> > @@ -583,7 +583,7 @@ static void *migration_thread(void *opaque)
> >
> > ret = vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
> > if (ret >= 0) {
> > - qemu_file_set_rate_limit(s->file, INT_MAX);
> > + qemu_file_set_rate_limit(s->file, INT64_MAX);
> > qemu_savevm_state_complete(s->file);
> > }
> > qemu_mutex_unlock_iothread();
> > --
> > 1.8.4.2
I didn't see this,
Cc: qemu-stable@nongnu.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-03 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 19:42 [Qemu-devel] [PATCH] migration: Fix rate limit Matthew Garrett
2013-12-03 17:18 ` Matthew Garrett
2013-12-03 17:21 ` Paolo Bonzini
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).