Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454955ybt; Fri, 19 Jun 2020 06:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl8iRyDKq3ETV/v/Uyym3AC/Qm7qO9KFeV53Tnw1S/Gsu07cmAfeLB1Vr9w1dpjq4LeGe6 X-Received: by 2002:a50:a1e7:: with SMTP id 94mr3103967edk.165.1592571672506; Fri, 19 Jun 2020 06:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592571672; cv=none; d=google.com; s=arc-20160816; b=f4jtQqWwvtAAJkORPCiHodmRxWHi0giFqMp34mOTxnDDuGyCZfGWIDfYBqQ3P5rwJl C199FxyG7n+IT9I6nFy1HqE3fVsiyDEANIUpXyQ0NH3szyzfLLhcXuICefMOC2/rOn3a XG7Fp0PRKtJgOVWmkTeuS9lruDu6zT77qkrw+kkJHcJ69trf/3mDIifw/p0eE0nUA/mz 5astGTGYueV2Cg6QnM/tBiQKKSKA/G0Ifc7G5fxK07vkcngRH2/9pMBDuIxn1pyi7L2N fX6vVTjOWh4RTm4UUC1RZpEBNlNnNTfVUr7/pdb5SEsRCS5oUB4QooG1mRosfaoABXry JdbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=Y0pdAe/RW3ZQLXkSNG1gWRiiMYwgkHmYF4D9hWxA8+c=; b=KlUNC0NORdyUkJoxpenEz621CsANRt7I8237lLp8gYMHanAkChVtJ7WU4TyQNePtin 7cDcmTlz+FtLWq/4hPXhJPCgnc6hoGay6Fpi/bdBJ7Uwwo4Ie4Xy66tsSBy/IfS3xDUW G2qS6bcesDvz6jQKdQgvYEuNCWw9y1fSeBsOX16LUV7YXIgpD62q8PM9EUxBFvPyPdQ/ 6pTjMEN7P2fLf5Df59QuxGeYTZI5R/UKGQsiUYqw/gPfLN72AMLyemff5qonHCHhLPvR xCoXiBnsK1jqn0ZYhsp81i1eMQ++DMdid5lYRa0LVMDy0++ONd0Jc1Dxvvkm0XnAVXPm SEqg== 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 k26si3726919ejv.109.2020.06.19.06.00.50; Fri, 19 Jun 2020 06:01:12 -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 S1732885AbgFSMRe (ORCPT + 99 others); Fri, 19 Jun 2020 08:17:34 -0400 Received: from foss.arm.com ([217.140.110.172]:55204 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728712AbgFSMRd (ORCPT ); Fri, 19 Jun 2020 08:17:33 -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 3F07F101E; Fri, 19 Jun 2020 05:17:32 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 926453F6CF; Fri, 19 Jun 2020 05:17:30 -0700 (PDT) References: <20200618195525.7889-1-qais.yousef@arm.com> <20200618195525.7889-3-qais.yousef@arm.com> <20200619115723.GF3129@suse.de> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Mel Gorman Cc: Qais Yousef , 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 In-reply-to: <20200619115723.GF3129@suse.de> Date: Fri, 19 Jun 2020 13:17:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/06/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. I don't wait Qais to hate me here - I think you could start the performance testing on this version if you feel like it, given my comments were mostly on changelog / debug options - the core of that patch shouldn't change much. > 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. I see, thanks! I suppose if we have access to individual samples we can also run some statistical tests / stare at some boxplots to see how it compares.