From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [QEMU PATCH] kvmclock: advance clock by time window between vm_stop and pre_save Date: Fri, 4 Nov 2016 16:31:41 -0200 Message-ID: <20161104183137.GA13662@amt.cnet> References: <20161104094322.GA16930@amt.cnet> <20161104152522.GC5388@potion> <20161104170750.GA4346@amt.cnet> <20161104173918.GB32170@potion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: kvm@vger.kernel.org, qemu-devel , "Dr. David Alan Gilbert" , Paolo Bonzini , Juan Quintela , Eduardo Habkost To: Radim =?utf-8?B?S3LEjW3DocWZ?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932583AbcKDSnO (ORCPT ); Fri, 4 Nov 2016 14:43:14 -0400 Content-Disposition: inline In-Reply-To: <20161104173918.GB32170@potion> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Nov 04, 2016 at 06:39:18PM +0100, Radim Krčmář wrote: > 2016-11-04 15:07-0200, Marcelo Tosatti: > > On Fri, Nov 04, 2016 at 04:25:23PM +0100, Radim Krčmář wrote: > >> > + /* > >> > + * Transition from VM-running to VM-stopped via migration? > >> > + * Record when the VM was stopped. > >> > + */ > >> > + > >> > + if (state == RUN_STATE_FINISH_MIGRATE && > >> > + !migration_in_postcopy(migrate_get_current())) { > >> > + clock_gettime(CLOCK_MONOTONIC, &s->t_aftervmstop); > >> > >> How big (more like small) was the clock delta between here and > >> kvmclock_pre_save with postcopy? > >> > >> Thanks. > > > > qemu-system-x86_64: postcopy_ram_supported_by_host: userfaultfd not > > available: Function not implemented > > > > But should be about the same as precopy+this patch (guess as i don't > > know the postcopy path). > > I was wondering about the improvement we could achieve by not excluding > postcopy from the time fixup. (i.e. how much time elapses between > pausing and migrating the vm in postcopy) > > I would also guess that it is not significant. Ideally the total should be zero because for certain workloads any change is problematic...