From owner-freebsd-stable@FreeBSD.ORG Sat Jan 21 13:20:55 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20BAE1065670 for ; Sat, 21 Jan 2012 13:20:55 +0000 (UTC) (envelope-from martin@sugioarto.com) Received: from mailserv.regfish.com (mailserv.regfish.com [79.140.61.33]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4DE8FC16 for ; Sat, 21 Jan 2012 13:20:54 +0000 (UTC) Received: (qmail 16080 invoked from network); 21 Jan 2012 13:20:53 -0000 Received: from pd9ec004a.dip0.t-ipconnect.de (HELO yuni.sugioarto.com) (46959-0001@[217.236.0.74]) (envelope-sender ) by mailserv.regfish.com (qmail-ldap-1.03) with SMTP for ; 21 Jan 2012 13:20:53 -0000 Received: from zelda.sugioarto.com (zelda.sugioarto.com [192.168.0.12]) by yuni.sugioarto.com (Postfix) with ESMTP id 2978A1BAC57; Sat, 21 Jan 2012 14:20:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sugioarto.com; s=mail; t=1327152052; bh=27pRz02YhoFP7hnKwrFzbDdnWNBvgaGX2soMBeN8yY8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: Mime-Version:Content-Type; b=h/NChWW+rtWg7nd0JyubPJO7NmDG+g8JCFdO4ogmrZ8hmdevuu+arB9emyiJzoK+c T5GoM1w/A6wvY7IV763ZJbkUE7DbrO8k9b2g34NNKGrIF3YCUasJpHwTddZQm+MzJf 89/JSmN9+qluv1V3H/bvPvucEXjCvb2+8FHxsfXg= Date: Sat, 21 Jan 2012 14:20:40 +0100 From: Martin Sugioarto To: Alexander Motin Message-ID: <20120121142040.1805e2ed@zelda.sugioarto.com> In-Reply-To: <4F1AAFFD.7070303@FreeBSD.org> References: <20120118075049.289954e8@zelda.sugioarto.com> <4F1AAFFD.7070303@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/wodxOEI3Z8kWpGqu6x6TCIC"; protocol="application/pgp-signature" Cc: FreeBSD-STABLE Mailing List Subject: Re: Timekeeping in stable/9 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2012 13:20:55 -0000 --Sig_/wodxOEI3Z8kWpGqu6x6TCIC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Sat, 21 Jan 2012 14:30:53 +0200 schrieb Alexander Motin : Hi Alexander, > I am not using VirtualBox right now, so I'll need to setup it to test=20 > this. Meanwhile you could try to experiment with switching to > different timecounters and eventtimers. May be some change in 9.0 > changed default timecounter for you, causing the problem. I think we have a misunderstanding here. The host (FreeBSD 9.0R) works fine. The time is being updated under heavy load without problems. I already said that this seems to be an application problem and this email(s) should be rather seen by the VBox maintainer. The problem is that VBox seems to stop working properly when you put heavy CPU load on the host. It even does not keep the clock up-to-date. I can desync the guest clock to -1 minute in a few seconds, just by running "openssl speed -multi 20". > timecounter wrap should be the main cause of time drift (if > timecounter hardware is emulated correctly at all). Different > timecounters have different wrap periods that can be calculated by > dividing kern.timecounter.tc.X.mask on > kern.timecounter.tc.X.frequency. In my case there are: 300s for HPET, > 5s for ACPI-fast, 2s for TSC and 55ms for i8254. If system won't get > timer interrupts within half of that time -- time will drift. Start > from looking what you are using and how good it is in your case. This is my current timecounter setting: kern.timecounter.choice: TSC-low(1000) HPET(950) i8254(0) ACPI-fast(900) dummy(-1000000) kern.timecounter.hardware: TSC-low kern.timecounter.tc.ACPI-fast.mask: 16777215 kern.timecounter.tc.ACPI-fast.counter: 10400371 kern.timecounter.tc.ACPI-fast.frequency: 3579545 kern.timecounter.tc.ACPI-fast.quality: 900 kern.timecounter.tc.i8254.mask: 65535 kern.timecounter.tc.i8254.counter: 41849 kern.timecounter.tc.i8254.frequency: 1193182 kern.timecounter.tc.i8254.quality: 0 kern.timecounter.tc.HPET.mask: 4294967295 kern.timecounter.tc.HPET.counter: 3255982446 kern.timecounter.tc.HPET.frequency: 14318180 kern.timecounter.tc.HPET.quality: 950 kern.timecounter.tc.TSC-low.mask: 4294967295 kern.timecounter.tc.TSC-low.counter: 1587561917 kern.timecounter.tc.TSC-low.frequency: 8593928 kern.timecounter.tc.TSC-low.quality: 1000 kern.timecounter.smp_tsc: 1 kern.timecounter.invariant_tsc: 1 I can try other timer counter settings, if you think it will improve responsivity inside VBox guest. -- Martin --Sig_/wodxOEI3Z8kWpGqu6x6TCIC Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQIcBAEBAgAGBQJPGruzAAoJEF8wvLx/5p/7wfIP/0kJOte5etn1PMUjP0OcdC13 UyDooq76PAloAPn7eFbnPX52YQgOzlGzg6gAtX5ut6xHhgbtoWJFSLk0o4Edhz/O npZ9wZDJ5vt5BvRa1eyTMxhxfgN91rLiPVkPe5VHQFUmezAzHSgX/i9LjAb2VQAh kJMIfoG+MKAo/qaoR7+8lNSn79ZPJJmKYOnpwn2RvBQ7x9KyMZUR62v8TX0cpwKL XEROvvMj5S9B4ikSpBwyPnFS473AOmx+LKL5/vosYxpT8HBxXfwuUp/iFz1G7BMG PI2ybdwzgqnzdneHV3eM26VeuvNmi4C0XvcqEimqkMsRtl12bz+s80flNcs4Y+s/ 09WTDS13eTigGHsprmeAjkqsYcq4HtuLOpFnV5bOqczp5cLMFYaBKnKMAs+P4683 rkPYfj/bxp7zQHASCEQs9cb/mMRPBtlluKxL46d06GpnOb+DIPvsKzOS5o3PX0sO DYYZUR6BcRNwAd5ExI3s5QE/Sa2FQsO0lSaYaUrfPhrhbBwtw8ZEiUEcFTY8PXMX xrahI2IDjnzN63KhTJCBUp5yU6wgelyJAsW+cpsEqIE0T34EVp9DVm8YImkvOT7u rPEXHmakkDcgAfczvtnyGUqNQPhPp2cF/mprv6Wh0X/GkYgkJvKW120f8PS/jBUC QTEwwV1Qfb24765zMaoY =nTKx -----END PGP SIGNATURE----- --Sig_/wodxOEI3Z8kWpGqu6x6TCIC--