From: Jed Smith Subject: Re: time accounting problem in pvops kernel Date: Wed, 18 Aug 2010 10:17:33 -0400 Message-ID: <4E70B699-FB82-4F4F-8AC7-EEBBA5B545C2@linode.com> References: <4C6AC705.1080904@redhat.com> <4C6B1276.9060203@goop.org> <4C6B9088.5040203@redhat.com> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4C6B9088.5040203@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Paolo Bonzini Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Aug 18, 2010, at 3:49 AM, Paolo Bonzini wrote: > On 08/18/2010 12:51 AM, Jeremy Fitzhardinge wrote: >> On 08/17/2010 10:29 AM, Paolo Bonzini wrote: >>> Hi, >>>=20 >>> while experimenting a bit with time.c we found a bug in time >>> accounting. Basically, /proc/stat counts idle time twice for PV = guests >>> running a pvops kernel >>=20 >> What version? >=20 > I was using the latest RHEL6 snapshot + the 16-patch blkfront series = (i.e. without the patch you pointed out). >=20 >> Upstream and stable kernels contain the changeset "xen: >> drop xen_sched_clock in favour of using plain wallclock time" which >> should fix a lot of timekeeping/scheduling problems. >=20 > I'll try this patch; however, offhand I don't see how it fixes the = problem of calling account_idle_ticks twice. I saw this too, even with said patch applied. To avoid this being = simply a 'me too!' message, I noticed that it aggravated Munin quite a bit. The = CPU plugin detects 800% of idle on a 4-core machine, but only idle time is = off. Regards, Jed Smith Systems Administrator Linode, LLC +1 (609) 593-7103 x1209 jed@linode.com