Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 979F4C433EF for ; Fri, 5 Nov 2021 15:25:29 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C8B261037 for ; Fri, 5 Nov 2021 15:25:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4C8B261037 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dingwall.me.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.222471.384680 (Exim 4.92) (envelope-from ) id 1mj15b-00074p-Gg; Fri, 05 Nov 2021 15:25:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 222471.384680; Fri, 05 Nov 2021 15:25:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mj15b-00074i-Dh; Fri, 05 Nov 2021 15:25:11 +0000 Received: by outflank-mailman (input) for mailman id 222471; Fri, 05 Nov 2021 15:25:10 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mj15a-00073q-4k for xen-devel@lists.xenproject.org; Fri, 05 Nov 2021 15:25:10 +0000 Received: from smarthost01c.ixn.mail.zen.net.uk (smarthost01c.ixn.mail.zen.net.uk [212.23.1.22]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8c2aede9-3e4c-11ec-a9d2-d9f7a1cc8784; Fri, 05 Nov 2021 16:25:05 +0100 (CET) Received: from [217.155.64.189] (helo=mail0.xen.dingwall.me.uk) by smarthost01c.ixn.mail.zen.net.uk with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1mj15S-0008EZ-IW; Fri, 05 Nov 2021 15:25:02 +0000 Received: from localhost (localhost [IPv6:::1]) by mail0.xen.dingwall.me.uk (Postfix) with ESMTP id 8D1BF1CCC97; Fri, 5 Nov 2021 15:25:01 +0000 (GMT) Received: from mail0.xen.dingwall.me.uk ([127.0.0.1]) by localhost (mail0.xen.dingwall.me.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DPkqon5_M_OX; Fri, 5 Nov 2021 15:25:01 +0000 (GMT) Received: from ghoul.dingwall.me.uk (ghoul.dingwall.me.uk [IPv6:2a02:8010:698e:302::c0a8:1c8]) by dingwall.me.uk (Postfix) with ESMTP id 715BF1CCC94; Fri, 5 Nov 2021 15:25:01 +0000 (GMT) Received: by ghoul.dingwall.me.uk (Postfix, from userid 1000) id 633DF1DA; Fri, 5 Nov 2021 15:25:01 +0000 (GMT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8c2aede9-3e4c-11ec-a9d2-d9f7a1cc8784 X-Virus-Scanned: Debian amavisd-new at dingwall.me.uk Date: Fri, 5 Nov 2021 15:25:01 +0000 From: James Dingwall To: xen-devel@lists.xenproject.org Cc: Jan Beulich Subject: Re: xen 4.11.4 incorrect (~3x) cpu frequency reported Message-ID: <20211105152501.GA485838@dingwall.me.uk> References: <20210721092958.GA2502468@dingwall.me.uk> <20210726123332.GA3844057@dingwall.me.uk> <06be7360-0235-3773-b833-3e0d65512092@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06be7360-0235-3773-b833-3e0d65512092@suse.com> X-Originating-smarthost01c-IP: [217.155.64.189] Feedback-ID: 217.155.64.189 Hi Jan, On Fri, Nov 05, 2021 at 01:50:04PM +0100, Jan Beulich wrote: > On 26.07.2021 14:33, James Dingwall wrote: > > Hi Jan, > > > > Thank you for taking the time to reply. > > > > On Wed, Jul 21, 2021 at 12:59:11PM +0200, Jan Beulich wrote: > >> On 21.07.2021 11:29, James Dingwall wrote: > >>> We have a system which intermittently starts up and reports an incorrect cpu frequency: > >>> > >>> # grep -i mhz /var/log/kern.log > >>> Jul 14 17:47:47 dom0 kernel: [ 0.000475] tsc: Detected 2194.846 MHz processor > >>> Jul 14 22:03:37 dom0 kernel: [ 0.000476] tsc: Detected 2194.878 MHz processor > >>> Jul 14 23:05:13 dom0 kernel: [ 0.000478] tsc: Detected 2194.848 MHz processor > >>> Jul 14 23:20:47 dom0 kernel: [ 0.000474] tsc: Detected 2194.856 MHz processor > >>> Jul 14 23:57:39 dom0 kernel: [ 0.000476] tsc: Detected 2194.906 MHz processor > >>> Jul 15 01:04:09 dom0 kernel: [ 0.000476] tsc: Detected 2194.858 MHz processor > >>> Jul 15 01:27:15 dom0 kernel: [ 0.000482] tsc: Detected 2194.870 MHz processor > >>> Jul 15 02:00:13 dom0 kernel: [ 0.000481] tsc: Detected 2194.924 MHz processor > >>> Jul 15 03:09:23 dom0 kernel: [ 0.000475] tsc: Detected 2194.892 MHz processor > >>> Jul 15 03:32:50 dom0 kernel: [ 0.000482] tsc: Detected 2194.856 MHz processor > >>> Jul 15 04:05:27 dom0 kernel: [ 0.000480] tsc: Detected 2194.886 MHz processor > >>> Jul 15 05:00:38 dom0 kernel: [ 0.000473] tsc: Detected 2194.914 MHz processor > >>> Jul 15 05:59:33 dom0 kernel: [ 0.000480] tsc: Detected 2194.924 MHz processor > >>> Jul 15 06:22:31 dom0 kernel: [ 0.000474] tsc: Detected 2194.910 MHz processor > >>> Jul 15 17:52:57 dom0 kernel: [ 0.000474] tsc: Detected 2194.854 MHz processor > >>> Jul 15 18:51:36 dom0 kernel: [ 0.000474] tsc: Detected 2194.900 MHz processor > >>> Jul 15 19:07:26 dom0 kernel: [ 0.000478] tsc: Detected 2194.902 MHz processor > >>> Jul 15 19:43:56 dom0 kernel: [ 0.000154] tsc: Detected 6895.384 MHz processor > >> > >> Well, this is output from Dom0. What we'd need to see (in addition) > >> is the corresponding hypervisor log at maximum verbosity (loglvl=all). > > > > This was just to illustrate that the dom0 usually reports the correct speed. I'll update the xen boot options with loglvl=all and try to collect the boot messages for each case. > > > >> > >>> The xen 's' debug output: > >>> > >>> (XEN) TSC marked as reliable, warp = 0 (count=4) > >>> (XEN) dom1: mode=0,ofs=0x1d1ac8bf8e,khz=6895385,inc=1 > >>> (XEN) dom2: mode=0,ofs=0x28bc24c746,khz=6895385,inc=1 > >>> (XEN) dom3: mode=0,ofs=0x345696b138,khz=6895385,inc=1 > >>> (XEN) dom4: mode=0,ofs=0x34f2635f31,khz=6895385,inc=1 > >>> (XEN) dom5: mode=0,ofs=0x3581618a7d,khz=6895385,inc=1 > >>> (XEN) dom6: mode=0,ofs=0x3627ca68b2,khz=6895385,inc=1 > >>> (XEN) dom7: mode=0,ofs=0x36dd491860,khz=6895385,inc=1 > >>> (XEN) dom8: mode=0,ofs=0x377a57ea1a,khz=6895385,inc=1 > >>> (XEN) dom9: mode=0,ofs=0x381eb175ce,khz=6895385,inc=1 > >>> (XEN) dom10: mode=0,ofs=0x38cab2e260,khz=6895385,inc=1 > >>> (XEN) dom11: mode=0,ofs=0x397fc47387,khz=6895385,inc=1 > >>> (XEN) dom12: mode=0,ofs=0x3a552762a0,khz=6895385,inc=1 > >>> > >>> A processor from /proc/cpuinfo in dom0: > >>> > >>> processor : 3 > >>> vendor_id : GenuineIntel > >>> cpu family : 6 > >>> model : 85 > >>> model name : Intel(R) Xeon(R) D-2123IT CPU @ 2.20GHz > >>> stepping : 4 > >>> microcode : 0x2000065 > >>> cpu MHz : 6895.384 > >>> [...] > >>> > >>> Xen has been built at 310ab79875cb705cc2c7daddff412b5a4899f8c9 from the stable-4.12 branch. > >> > >> While this contradicts the title, both 4.11 and 4.12 are out of general > >> support. Hence it would be more helpful if you could obtain respective > >> logs with a more modern version of Xen - ideally from the master branch, > >> or else the most recent stable one (4.15). Provided of course the issue > >> continues to exist there in the first place. > > > > That was my error, I meant the stable-4.11 branch. We have a development environment based around 4.14.2 which I can test. > > I'm sorry to ask, but have you got around to actually doing that? Or > else is resolving this no longer of interest? We have recorded a couple of other occurences on 4.11 but it is happening so infrequently (probably once every few hundred boots) that further investigation is low on a long list of tasks. We are also moving to 4.14.3 and so far have no occurences with that version. Thanks, James