Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp740732ybt; Fri, 19 Jun 2020 12:29:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9hNKNJg6Fow4ccTE55gbtESSKJj6zx/pfiPbnRSTofvVDhp/Nq9DeWnQ+/3oh2TQ8om8h X-Received: by 2002:a17:907:209b:: with SMTP id pv27mr4896160ejb.146.1592594973504; Fri, 19 Jun 2020 12:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592594973; cv=none; d=google.com; s=arc-20160816; b=cneOBOGZXCagY0qhYmkVZmtKXYZgoXqeGeEDaOMwGHKtGr4P2AEVXs5IZDSFM8mdzJ 4Yudm8bVm+8HQo0PaL45DcRaSq0WN5Zm98JonSejqjEhgTFm/pqDcy59E4IbJc4LduTw GJVnI/5bJUmeyxhUZ1XD8/HB+YzaMH9krLpu+AEDBMByktKS9AITRJJIoPd0g5xbEAqi 4aPY0Mx8Pwwd1CVevv1Z1wi0qeY0q1p8o/FpxOTAXS6mSjakRE9p/Qk+dZM1s7WQWovZ N1iCf9vviISiS1S5RbmZdGYeW9Y8CENiNXaTdBqrEdiyyqrdv2ijdOruf03t6vLsBJZ4 g6tg== 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; bh=im6zUSUkzjU+aUJQxfDeWb+CCkVDe1Svwf2fmYY70QE=; b=QgfghRdAzcZdS6PktwzUFEXbUm2ghtkBycwM8KY3vO+qPwIu9E1SUJmuKDCrju1WOp +ZXA/kes7u6pX4zhrDMUhUsmfCdiqOpMIs0C8J5bhjaGKq7PTa8N66v5Mfvyj0a/mXt3 KGWW8imVaKazipJW92PENjU3nfNvJzK+NhGMTIVjoU1HMhdHD67Qez7v7rPRciA9ALD3 udZJgVkJJIq8YYyiJRQif/kAiQcnUF8S/OEr/NulEgGFy5L4fg6X8dXopJGAxaHLYV3s kUntN22wOHg4iEURQXHWWYhSbaeUyHyyBrkgMYTq8pBRsqRWugrVehSSfTFE5gzrXECg vtsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si4739908eds.570.2020.06.19.12.29.10; Fri, 19 Jun 2020 12:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389505AbgFSOvw (ORCPT + 99 others); Fri, 19 Jun 2020 10:51:52 -0400 Received: from foss.arm.com ([217.140.110.172]:36082 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389446AbgFSOv1 (ORCPT ); Fri, 19 Jun 2020 10:51:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3EE28101E; Fri, 19 Jun 2020 07:51:27 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8F9373F71F; Fri, 19 Jun 2020 07:51:25 -0700 (PDT) Date: Fri, 19 Jun 2020 15:51:23 +0100 From: Qais Yousef To: Mel Gorman Cc: Valentin Schneider , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Patrick Bellasi , Chris Redpath , Lukasz Luba , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sched/uclamp: Protect uclamp fast path code with static key Message-ID: <20200619145113.tgaxvzejmpstsnx7@e107158-lin.cambridge.arm.com> References: <20200618195525.7889-1-qais.yousef@arm.com> <20200618195525.7889-3-qais.yousef@arm.com> <20200619115723.GF3129@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200619115723.GF3129@suse.de> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/19/20 12:57, Mel Gorman wrote: > On Fri, Jun 19, 2020 at 11:36:46AM +0100, Valentin Schneider wrote: > > > nouclamp uclamp uclamp-static-key > > > Hmean send-64 162.43 ( 0.00%) 157.84 * -2.82%* 163.39 * 0.59%* > > > Hmean send-128 324.71 ( 0.00%) 314.78 * -3.06%* 326.18 * 0.45%* > > > Hmean send-256 641.55 ( 0.00%) 628.67 * -2.01%* 648.12 * 1.02%* > > > Hmean send-1024 2525.28 ( 0.00%) 2448.26 * -3.05%* 2543.73 * 0.73%* > > > Hmean send-2048 4836.14 ( 0.00%) 4712.08 * -2.57%* 4867.69 * 0.65%* > > > Hmean send-3312 7540.83 ( 0.00%) 7425.45 * -1.53%* 7621.06 * 1.06%* > > > Hmean send-4096 9124.53 ( 0.00%) 8948.82 * -1.93%* 9276.25 * 1.66%* > > > Hmean send-8192 15589.67 ( 0.00%) 15486.35 * -0.66%* 15819.98 * 1.48%* > > > Hmean send-16384 26386.47 ( 0.00%) 25752.25 * -2.40%* 26773.74 * 1.47%* > > > > > > > Am I reading this correctly in that compiling in uclamp but having the > > static key enabled gives a slight improvement compared to not compiling in > > uclamp? I suppose the important bit is that we're not seeing regressions > > anymore, but still. > > > > I haven't reviewed the series in depth because from your review, another > version is likely in the works. However, it is not that unusual to > see small fluctuations like this that are counter-intuitive. The report > indicates the difference is likely outside of the noise with * around the > percentage difference instead of () but it could be small boot-to-boot > variance, differences in code layout, slight differences in slab usage > patterns etc. The definitive evidence that uclamp overhead is no there > is whether the uclamp functions show up in annotated profiles or not. The diff between nouclamp and uclamp-static-key (disabling uclamp in fast path) 8.73% -1.55% [kernel.kallsyms] [k] try_to_wake_up 0.07% +0.04% [kernel.kallsyms] [k] deactivate_task 0.13% -0.02% [kernel.kallsyms] [k] activate_task The diff between nouclamp and uclamp-static-key (uclamp actively used in the fast path) 8.73% -0.72% [kernel.kallsyms] [k] try_to_wake_up 0.13% +0.39% [kernel.kallsyms] [k] activate_task 0.07% +0.38% [kernel.kallsyms] [k] deactivate_task I will include these numbers in the commit message in v2. Thanks -- Qais Yousef