From: Dan Magenheimer Subject: RE: RE: rdtsc strangeness on upstream kernel Date: Mon, 19 Jul 2010 17:42:55 -0700 (PDT) Message-ID: <4b33f24d-e073-411a-acc3-7199a02d7b24@default> References: <0784c7e7-1e9c-4abd-8e90-837051fe6b8b@default 4C44E123.3030308@goop.org> <441eecef-5758-4c3f-924e-74823b7cb776@default> <681683ff-677b-4709-911e-3d90d7dbed7c@default 4C44EF08.3070103@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4C44EF08.3070103@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > On 07/19/2010 04:55 PM, Dan Magenheimer wrote: > >> With vcpus=3D2, timer0 goes up to about 2000 irq/sec on CPU0 > >> and timer1 on CPU1 is the same while rdtsc/sec is about 20000. > >> > > No, wait, correct that...timer0 and timer1 are 1000 irq/sec. > > (I was using "watch -d" which defaults to updating every > > two seconds, not every second.) > > > > > >> Is it possible that the timer interrupt is using rdtsc > >> five times each interrupt? > >> > > TEN times each interrupt. > > >=20 > Do you have any other debugging/tracing enabled? CONFIG_XEN_DEBUG_FS > for example? >=20 > 10 sounds a little high, but not necessarily completely unreasonable, > especially if there's tracing/debugging on. Yes, CONFIG_XEN_DEBUG_FS is on. I dug up some instrumentation I used in the hypervisor last fall which should identify the kernel locations of the rdtsc's. I'll plug that in and post the results tomorrow. Dan