Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp700426ybt; Fri, 19 Jun 2020 11:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBV28JzHTLvFBt9IfN6g1y/5AgM62Wksl2jlwPnSseDXuV5Jk76h7ADLlLvYmPIvE1P6kZ X-Received: by 2002:a05:6402:545:: with SMTP id i5mr4703919edx.179.1592591096912; Fri, 19 Jun 2020 11:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592591096; cv=none; d=google.com; s=arc-20160816; b=b+AdQbX1wLaOADRr9h5VOl2dV58fwHubIC3jqJ0u0ZHscINLKYyeAUB+QyIepHnXR4 DQZn2gBr3Fv47Pvr1VfAgR6VbB3SG+CcnWz9gtfhDWPB+xcGqo2RuWBu/1n5Trrk2qcg 7gos537MPPqPlWN4PQynMSxDvLuuBfMoIkYW3nesmUIRL3rvQJlo6R9d/aC9C6NfDcWC NZEfB22sjRVXphv72PToKmz/NkQ9yCFLsm0W15ElaFoUD3cfnxS1OUEaEuXzYs4qDJWY GgczwcJRyXZVERjYNW+/b9XSCfM5t6YIKLPcywWYuKBkubdDhED902te1qz4nVr9Oblj UF9A== 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=cZR6tU+6p/NOcIMNUsU2Zp/i4KL2SIeWk5g/h8TnHkc=; b=ApqxB9ZbJp01P530WGHmGt6vAqqFF9rhcZ6HboVkNXsVCQvcscnxxNK0u78K/mQYZC W375cEcovwMJ38Eg8SZ7jvBD7Tf9DvyTv0nEtMizpqX9dRB/J0rtVNXQpE9tRuy2TbSd Hkf0zkO4BzHQvp3/rI9+nS4c5sD/iK1CY7XTnIyIVaXoIxkkFgZ9RBpvNnYcuczkH+o9 Bb4kv5S3P5dmKIL/iAtaIyi15epG5mTZHSqgZMa8TTv1bIGLFkZ7/nOSrI8uKLSrTV5f BoEOyXOAfCWYbPk3Umn2p7Imv0S/65BuKOJQf+XHxfjbIBRZeKNzoksMveftDCtuqVCL fdrg== 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 v25si3411480ejw.29.2020.06.19.11.24.33; Fri, 19 Jun 2020 11:24:56 -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 S1732836AbgFSL5b (ORCPT + 99 others); Fri, 19 Jun 2020 07:57:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:54298 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732448AbgFSL5b (ORCPT ); Fri, 19 Jun 2020 07:57:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8A98BB5AF; Fri, 19 Jun 2020 11:57:26 +0000 (UTC) Date: Fri, 19 Jun 2020 12:57:23 +0100 From: Mel Gorman To: Valentin Schneider 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 Message-ID: <20200619115723.GF3129@suse.de> References: <20200618195525.7889-1-qais.yousef@arm.com> <20200618195525.7889-3-qais.yousef@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: 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 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. -- Mel Gorman SUSE Labs