Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1164584ybd; Wed, 26 Jun 2019 12:22:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc7TWml7feQPdU/zRvehH611gbOT7Z0mUq8uzwbA+BSU/qXoBelOWlTaWuMafawbvgk+Qx X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr864068pjq.134.1561576970091; Wed, 26 Jun 2019 12:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561576970; cv=none; d=google.com; s=arc-20160816; b=hzL89nH4NhXXQlYT+guwrbzQPlQzOvoO9RliKEk80cM6H5Zd/xoVqMreAN6bOyAs1i jnX+GeIdmd1UU/xTQQxIDxVzYvkrCDdzr37Z1+seuzRZgQvFKr+VXZ07W1xOxdxUAKYD 5glVSkQsRW1FlX8SrcEVQ+WQ5rayt7OIRgj5K64yZ46T3XxAYbXbj2i2CWNqtT+4AooP kmxzcekXXZt3ma3h+v0hHH34KU7RDhLD8SfCJcPmaatezqrgSbfZU0wC9kDytn0pvK+R H0a0+zMeuDMwNuTm42BQIS8JGI4cXzFeVo2hOTGqk4k1mEY5LLf6FG9w8cRxJ7JDt4+9 ifEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V0jLxYAn+nqGzG0R8aNQz9MoPnspgo1/uyky7k+5p+k=; b=bJRwTyU22iHL5K59MFYgd/5RA3FZGN+nnzW9lSwAVlA0IbquFKXWscWSfsvZ/OS0/I Pqn0jvXizQ+edzBknS5kzZi/l/fUakC1/zkFL9Wfo5w04ZogiJyGE+fzAZat8Z63PWLm lgpObsPkS9BDKe+sTmlivT70UhqV7obL78axD1JlvE2AAf33EXsd9g/EU83LqNZlQHav UtadHTyLygzEiluAAcrTKxCkSqXj13sJT5g/Goce8sFTYBntW6yuI5CEDw/D/YhUiyqm hZhb2nDvIOPErY5CiFmW7zy34ppl3TtEPxBJZW5ptpnBfhlPNPa++9aEOxysR7LGTmHC GY9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uxdz562l; 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 k33si4056072pld.359.2019.06.26.12.22.33; Wed, 26 Jun 2019 12:22:50 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uxdz562l; 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 S1726484AbfFZTVV (ORCPT + 99 others); Wed, 26 Jun 2019 15:21:21 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47614 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfFZTVV (ORCPT ); Wed, 26 Jun 2019 15:21:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V0jLxYAn+nqGzG0R8aNQz9MoPnspgo1/uyky7k+5p+k=; b=uxdz562loKTGsLdJtWlp/cwLTe GT+1eM+P/R1wFx79woFof2wJjB3Y9vYfQmzpdcIaIU83pKIZREcTNlzD+0rQbxJwujSJKNBgvz9IV LfVVZ6NxKM9RyPIIiCojd62gd1v+4J2V/GBk5FOPvpYUHzl3whUUNTdAOcHZTcjTpPdM/mz61drdu oo61DWBQRp82BvcQCC0MBkBHPF41qM8CnNL0XyGaV4JF23Vez0fIIQIxizHvdYj+Y5W2IPqa2Beyi zcX6IUhMf3KUcXS+1oP8DCrEk6svsMb7I5V++fYKN5uW4u74Lcyxrw/VVZ73r6dddBMWyTsKxrZL5 l/KTyAEg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hgDTb-0001Mk-E0; Wed, 26 Jun 2019 19:21:03 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A49CC209CEDA7; Wed, 26 Jun 2019 21:21:00 +0200 (CEST) Date: Wed, 26 Jun 2019 21:21:00 +0200 From: Peter Zijlstra To: "Raslan, KarimAllah" Cc: "tglx@linutronix.de" , "konrad.wilk@oracle.com" , "boris.ostrovsky@oracle.com" , "joao.m.martins@oracle.com" , "kvm@vger.kernel.org" , "kernellwp@gmail.com" , "linux-kernel@vger.kernel.org" , "mtosatti@redhat.com" , "pbonzini@redhat.com" , "ankur.a.arora@oracle.com" , "rkrcmar@redhat.com" Subject: Re: cputime takes cstate into consideration Message-ID: <20190626192100.GP3419@hirez.programming.kicks-ass.net> References: <20190626145413.GE6753@char.us.oracle.com> <20190626161608.GM3419@hirez.programming.kicks-ass.net> <20190626183016.GA16439@char.us.oracle.com> <1561575336.25880.7.camel@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1561575336.25880.7.camel@amazon.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 06:55:36PM +0000, Raslan, KarimAllah wrote: > If the host is completely in no_full_hz mode and the pCPU is dedicated to a? > single vCPU/task (and the guest is 100% CPU bound and never exits), you would? > still be ticking in the host once every second for housekeeping, right? Would? > not updating the mwait-time once a second be enough here? People are trying very hard to get rid of that remnant tick. Lets not add dependencies to it. IMO this is a really stupid issue, 100% time is correct if the guest does idle in pinned vcpu mode.