Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3127382imm; Thu, 17 May 2018 03:59:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodAk+DuVRAy1t4FXKGiKFOUh/2VEh9N/kZgE7VS5G+JCtJ/kS5ETl3QgXPFVZFo2X3hghJ X-Received: by 2002:a62:9c0d:: with SMTP id f13-v6mr4691793pfe.15.1526554781443; Thu, 17 May 2018 03:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526554781; cv=none; d=google.com; s=arc-20160816; b=DD/NvMLumkr4GjqYCLPVyvHKkFIjFlwgLzEb+9oYa4YULiTGEfLuJOZCAOIw+GR2Yt p/Yh9HjB2ajoSMVzgDvOuGSQzbf4mMp3jTayb4nRaU9XRcaY2nsHk3lhqJw2TFSVQd4m v42+frxSqEgH92bdnwCpg624e+HLdvFwN8uXHb/gGQvj7Zo9IE+9yArebiwmTmR6tBhK aYSwvEyJEhEn4vNIGdtikFZ6PGrQx6EX+9Nx9P6uOgussxEUgHXyJOEWvbgOOOp++8HM 1fjjRpfebY4IeQH9AE+qEssajRuSaSWTbXAGw5J/1D29PLgAZwP77g9wrSb+PNDsIGmR FkHg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=X34sVb0Noei69vWgTrcT+LceUJ5ycFlsqaiN2DR1LPE=; b=Ny4YXV1Up6xNgDIp6nngTRe2MgSCFWSmz46btw2VG3OLxdU/9Ps/2eB4L78/qnaJQo 0bF2Dqz+lyfwoJH3QvRlOQA6gJuPXpyq9gVTiNN7QS5ARJ0rv+hlEiiVM9KhiHWZ2mcf q5HxFdf906v3mrBaWBCeBkEcqpTkKrfc3vG++gvhQH3nT5wzqVcZBWJ9QdCFGFMOcg3/ KnJYk7s45x2H5zDD4d8SJgoeOgeyYOW651RlnVIP2uPPkbpGWHXRRik47oQSpRy184gu ng+UuHlpgDUVjEuVRbZ/R3scojEbQvLomZGrjKc4oM5ZutNE4ITFGeTnb0M0YOKswU5/ jEXw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13-v6si4663085plp.128.2018.05.17.03.59.27; Thu, 17 May 2018 03:59:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbeEQK7N (ORCPT + 99 others); Thu, 17 May 2018 06:59:13 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51972 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbeEQK7L (ORCPT ); Thu, 17 May 2018 06:59:11 -0400 Received: by mail-wm0-f66.google.com with SMTP id j4-v6so7703036wme.1 for ; Thu, 17 May 2018 03:59:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X34sVb0Noei69vWgTrcT+LceUJ5ycFlsqaiN2DR1LPE=; b=AA1urNt32U5tgk16pWcpk31FGzJ4OQdlxeITgtXPMhJGsl1BISGrK21zcIE4MebB+0 KQNl1FF72AwYyWGe+2gtdZ1/dzt7siwUYLu+kG/y8CZOjSmbyVXhcfe0es0wU5okadym mjbuCrO1JyXeMnOBK9BbUhMbBCtuac+ES869V4GkIFgf9nEU/xV0srB75RlLApSpR7NP VaBPl/UmQ23KA05vJtqw9bRFtH9EPzGv9TAaFDXjcyC2/VPKxcbNp7lz02kBzM7NbayS k37r+UcNXFBpoMlcb4wGU9iqL4BHHkNL84LhA1WRI6V3w/09wIz1s1g8QQpRXGQv0KeF bx4g== X-Gm-Message-State: ALKqPwc0Aj8P478t/Ng+iXQ1uU0U/Pvz8FHYlCb+Rzux+CLQPA6o7Owf SL9qrCvNt68Pzgo+JEiKLLH7YOAYkIw= X-Received: by 2002:a1c:be0f:: with SMTP id o15-v6mr1496727wmf.104.1526554750265; Thu, 17 May 2018 03:59:10 -0700 (PDT) Received: from localhost.localdomain ([151.15.207.48]) by smtp.gmail.com with ESMTPSA id y81-v6sm5423622wmd.31.2018.05.17.03.59.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 03:59:09 -0700 (PDT) Date: Thu, 17 May 2018 12:59:07 +0200 From: Juri Lelli To: Peter Zijlstra Cc: Srinivas Pandruvada , tglx@linutronix.de, mingo@redhat.com, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net, mgorman@techsingularity.net, x86@kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting Message-ID: <20180517105907.GC22493@localhost.localdomain> References: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> <20180516044911.28797-3-srinivas.pandruvada@linux.intel.com> <20180516151925.GO28366@localhost.localdomain> <20180516154733.GF12198@hirez.programming.kicks-ass.net> <20180516163105.GP28366@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180516163105.GP28366@localhost.localdomain> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/05/18 18:31, Juri Lelli wrote: > On 16/05/18 17:47, Peter Zijlstra wrote: > > On Wed, May 16, 2018 at 05:19:25PM +0200, Juri Lelli wrote: > > > > > Anyway, FWIW I started testing this on a E5-2609 v3 and I'm not seeing > > > hackbench regressions so far (running with schedutil governor). > > > > https://en.wikipedia.org/wiki/Haswell_(microarchitecture)#Server_processors > > > > Lists the E5 2609 v3 as not having turbo at all, which is basically a > > best case scenario for this patch. > > > > As I wrote earlier today; when turbo exists, like say the 2699, then > > when we're busy we'll run at U=2.3/3.6 ~ .64, which might confuse > > things. > > Indeed. I was mostly trying to see if adding this to the tick might > introduce noticeable overhead. Blindly testing on an i5-5200U (2.2/2.7 GHz) gave the following # perf bench sched messaging --pipe --thread --group 2 --loop 20000 count mean std min 50% 95% 99% max hostname kernel i5-5200U test_after 30.0 13.843433 0.590605 12.369 13.810 14.85635 15.08205 15.127 test_before 30.0 13.571167 0.999798 12.228 13.302 15.57805 16.40029 16.690 It might be interesting to see what happens when using a single CPU only? Also, I will look at how the util signals look when a single CPU is busy..