From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: migrate_set_downtime bug Date: Tue, 29 Sep 2009 10:39:57 -0500 Message-ID: <4AC22A4D.5060805@codemonkey.ws> References: <90D306BE6EBC8D428A824FBBA7A3113DFDCDF175@ronja.maurer-it.com> <90D306BE6EBC8D428A824FBBA7A3113DFDCDF178@ronja.maurer-it.com> <90D306BE6EBC8D428A824FBBA7A3113DFDCDF179@ronja.maurer-it.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm , Glauber Costa To: Dietmar Maurer Return-path: Received: from qw-out-2122.google.com ([74.125.92.27]:16546 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752936AbZI2Pj6 (ORCPT ); Tue, 29 Sep 2009 11:39:58 -0400 Received: by qw-out-2122.google.com with SMTP id 5so1928881qwd.37 for ; Tue, 29 Sep 2009 08:40:01 -0700 (PDT) In-Reply-To: <90D306BE6EBC8D428A824FBBA7A3113DFDCDF179@ronja.maurer-it.com> Sender: kvm-owner@vger.kernel.org List-ID: Dietmar Maurer wrote: > this patch solves the problem by calculation an average bandwidth. > Can you take a look Glauber? Regards, Anthony Liguori > - Dietmar > > >> -----Original Message----- >> From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org] On >> Behalf Of Dietmar Maurer >> Sent: Dienstag, 29. September 2009 16:37 >> To: kvm >> Subject: RE: migrate_set_downtime bug >> >> Seems the bwidth calculation is the problem. The code simply does: >> >> bwidth = (bytes_transferred - bytes_transferred_last) / timediff >> >> but I assume network traffic is buffered, so calculated bwidth is >> sometimes much too high. >> >>