Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7b0Z-0004w5-7r for qemu-devel@nongnu.org; Wed, 15 Sep 2004 10:43:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7b0R-0004o4-P2 for qemu-devel@nongnu.org; Wed, 15 Sep 2004 10:43:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7b0R-0004nn-Iy for qemu-devel@nongnu.org; Wed, 15 Sep 2004 10:43:35 -0400 Received: from [206.190.39.125] (helo=web52504.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1C7auG-000885-2m for qemu-devel@nongnu.org; Wed, 15 Sep 2004 10:37:12 -0400 Message-ID: <20040915143711.87797.qmail@web52504.mail.yahoo.com> Date: Wed, 15 Sep 2004 07:37:11 -0700 (PDT) From: Piotr Krysik Subject: Re: [Qemu-devel] time synchronization with qemu In-Reply-To: <200409151015.38280.bracco@frascati.enea.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi! When qemu is waiting to read data from your host disk, the clock may slow down. For start try to work on small images that fit in ram. My guess is that your guest uses timer interrupt as time source and when there should be two or more interrupts while qemu is waiting for disk read to complete, only first interrupt will be delivered. The solution is to modify qemu source code to use asynchronous disk IO. A patch was send on this list a few months ago (search the list archive for AIO), but I didn't try (or even analyze it), so I cannot tell if it can help. Regards, Piotrek --- giovanni bracco wrote: > I have tried but it does not works well and I > think that the reason is that inside a qemu system > the clock is not stable and depends on the load > of the ost machine (which depends, in my case of > the 3 qemu running together, also on the load on > the other qemu systems). I suppose that ntp does > not work well with very unstable clocks! > > Up to now the best solution I have found is to > run a cron job on the host which sets every minute > the clock of the 3 qemu systems using "rsh rdate > -s host.ip" but still the time difference between > qemu systems is til between 3 and 10 seconds (even > if there is a reset about every minute!) > > Any suggestion is welll accepted! > > Giovanni _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com