Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1166188ybd; Wed, 26 Jun 2019 12:24:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmNNbcSIiaiVR0Df4J5EcjSL1btBGTfjbAURiZym9PPisLTgndbevyKNr+S5G/BwO+nk0m X-Received: by 2002:a63:6ecf:: with SMTP id j198mr4478851pgc.437.1561577087647; Wed, 26 Jun 2019 12:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561577087; cv=none; d=google.com; s=arc-20160816; b=y9HeHj7j1pPkYBLk7w5uM8+c4lYWgpyDLLGWOccxAVFbolStYsMzbRJLptiqJC+bZQ p3Q8Rjs/JpCUyuGgyV/qsl4n5h2MW1tNe1WaMT/KHKV0rOvIVMRAdpr4BipxNnSB2nd2 Ls8aua6zaAnRMrmqToBBOoh8fY0uZHm5eTR9xnY8TnHUOq0rvJGCGgTrV5kvlMG3S2Lw xLOXfYlZD18uQLl2IB3x9gNdOCLwcsYflc2WZw3+fnUDMEDTuj12f8rtmQvwxE1jv7f0 xlW1azPBuen7NJibGId7gJxWjcGG8lrzcu0mTbHe8kQVxjLKf9hw6GZ3Ow1+E6qIb84S XWlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=TfKiazXVyZ+OYfqSCLNMLh+5DZ8wJfweLZhhC5eTzjI=; b=V3dUOOqL4X2oG9VtddprGUR1LMKYXrKNt1IIm5fyh1pRs64j29R+NjZyJdyXXedThh m+/G/NlitxxWhaov7FSTRepnanDsHGjhpzeOIea53O7N+pXzB9FlO0JT80mIOiJ65APg YEiREKtWK/GBsFwp878shbaSktJ9I8VFZFaTZ+FJcCWNwdMwr35dbFopYFUMcW+dxEwP WpFq81tId0I3Vm9Ukk7VqThWd1pqtqDAjtGWGDTTCMhW0l+SYmL+ZAfQuemIS3HFseOA RdJGIXBs7AT3ewWTXwohxtSKlrtgY6NfG7BBzPvXv15Iqagn1H/x8wxarJHMY+jGpi7+ G5dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si13137901pgn.70.2019.06.26.12.24.31; Wed, 26 Jun 2019 12:24:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbfFZTXR (ORCPT + 99 others); Wed, 26 Jun 2019 15:23:17 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50184 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfFZTXQ (ORCPT ); Wed, 26 Jun 2019 15:23:16 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hgDVf-0004JZ-MD; Wed, 26 Jun 2019 21:23:11 +0200 Date: Wed, 26 Jun 2019 21:23:10 +0200 (CEST) From: Thomas Gleixner To: "Raslan, KarimAllah" cc: "boris.ostrovsky@oracle.com" , "joao.m.martins@oracle.com" , "konrad.wilk@oracle.com" , "ankur.a.arora@oracle.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "rkrcmar@redhat.com" , "pbonzini@redhat.com" , "kernellwp@gmail.com" , "mtosatti@redhat.com" Subject: Re: cputime takes cstate into consideration In-Reply-To: <1561575536.25880.10.camel@amazon.de> Message-ID: References: <20190626145413.GE6753@char.us.oracle.com> <1561575536.25880.10.camel@amazon.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-836335723-1561576991=:32342" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-836335723-1561576991=:32342 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 26 Jun 2019, Raslan, KarimAllah wrote: > On Wed, 2019-06-26 at 10:54 -0400, Konrad Rzeszutek Wilk wrote: > > There were some ideas that Ankur (CC-ed) mentioned to me of using the perf > > counters (in the host) to sample the guest and construct a better > > accounting idea of what the guest does. That way the dashboard > > from the host would not show 100% CPU utilization. > > You can either use the UNHALTED cycles perf-counter or you can use MPERF/APERF  > MSRs for that. (sorry I got distracted and forgot to send the patch) Sure, but then you conflict with the other people who fight tooth and nail over every single performance counter. Thanks, tglx --8323329-836335723-1561576991=:32342--