Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3488017imm; Tue, 29 May 2018 08:05:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrD3vV2980ZPrX7NehmPtvft2NSsGCKimu8xlix7IqRGB2WaALCD1pni90J4w4MOYxdvmpn X-Received: by 2002:a63:6741:: with SMTP id b62-v6mr14222927pgc.5.1527606333967; Tue, 29 May 2018 08:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527606333; cv=none; d=google.com; s=arc-20160816; b=AjYqcrZM0pdx7OZ3eENrMc1vtnD6Ug8kyvTDicKTYsfX++PWrB1I2Nhby+QRTEenbL 4h6GZ/tXuFyzpHp/pQTdsfhZ5Iha5eSx5cFuLJXfZHjtIeWzWsE/0LyvXJT/NTJbwgBQ UtqIcmGKKzEqErO4NvBvJaRVfXdt8tQagt8rDNVi+3Ea1a67V8s2sI/a+QFtHlUqvl3V YKX5egexTbTkohjIpNVsL2bBXgte4FO7az2eaHQJQPoiBpwRpnxjj/rTjtk+sZ8fpcHq z6UBmFD7V0tG8ij08WjBIekdvzGM36dvovrTZfH80HiW6W5ej8btY3oUg8r4qwIqc3zv v0xw== 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=+T/a88slM5NcycAJTaMsVbLFxqlMn8bzSUVDP4mF45A=; b=VyMlxls6JTLv5keyxJXzrX3qJAojtkb8G2pjn/ybWdWnkSxB8VkvRnD28J1VPyina2 l5L9xD/GQT9flb0xduoR8AWDXf+LtTYl8KJt475PlQzGeKr3oi09mTd1mEnY1HRub04r LGfOOVH04qlbBBiN0VLrXKLvc/YqMaU8KCWNM10cztqcP32LbPLyCm0XFmvOdxszJbOC eOkBfQA8cbWACnTywFt9n2vOx4GBtxNbvujQYJOGlkBFbqmNkpWr95KVcp5XpWggyTet j1nqZt/DzucR1x/TxizcunkexCl4B4VaWOLV60t2aQerJp3yz6Fpqk83oJ6DZ22LKfMP mecw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4-v6si32511577plp.219.2018.05.29.08.05.19; Tue, 29 May 2018 08:05:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936727AbeE2PE4 (ORCPT + 99 others); Tue, 29 May 2018 11:04:56 -0400 Received: from foss.arm.com ([217.140.101.70]:42272 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935490AbeE2PEt (ORCPT ); Tue, 29 May 2018 11:04:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9369F80D; Tue, 29 May 2018 08:04:49 -0700 (PDT) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A59743F557; Tue, 29 May 2018 08:04:47 -0700 (PDT) Date: Tue, 29 May 2018 16:04:46 +0100 From: Quentin Perret To: Vincent Guittot Cc: Patrick Bellasi , Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Juri Lelli , Dietmar Eggemann , Morten Rasmussen , viresh kumar , Valentin Schneider Subject: Re: [PATCH v5 01/10] sched/pelt: Move pelt related code in a dedicated file Message-ID: <20180529150445.GG15173@e108498-lin.cambridge.arm.com> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-2-git-send-email-vincent.guittot@linaro.org> <20180525142648.GC15173@e108498-lin.cambridge.arm.com> <20180525180455.GF30654@e110439-lin> <20180529145506.GF15173@e108498-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 29 May 2018 at 17:02:29 (+0200), Vincent Guittot wrote: > Hi Quentin, > > On 29 May 2018 at 16:55, Quentin Perret wrote: > > > > On Friday 25 May 2018 at 19:04:55 (+0100), Patrick Bellasi wrote: > > > On 25-May 15:26, Quentin Perret wrote: > > > > And also, I understand these functions are large, but if we _really_ > > > > want to inline them even though they're big, why not putting them in > > > > sched-pelt.h ? > > > > > > Had the same tought at first... but then I recalled that header is > > > generated from a script. Thus, eventually, it should be a different one. > > > > Ah, good point. This patch already introduces a pelt.h so I guess that > > could work as well. > > > > > > > > > We probably wouldn't accept that for everything, but > > > > those PELT functions are used all over the place, including latency > > > > sensitive code paths (e.g. task wake-up). > > > > > > We should better measure the overheads, if any, and check what > > > (a modern) compiler does. Maybe some hackbench run could help on the > > > first point. > > > > FWIW, I ran a few hackbench tests today on my Intel box: > > - Intel i7-6700 (4 cores / 8 threads) @ 3.40GHz > > - Base kernel: today's tip/sched/core "2539fc82aa9b sched/fair: Update > > util_est before updating schedutil" > > - Compiler: GCC 7.3.0 > > Which cpufreq governor are you using ? powersave, with the intel_pstate driver. > > > > > The tables below summarize the results for: > > perf stat --repeat 10 perf bench sched messaging --pipe --thread -l 50000 --group G > > > > Without patch: > > +---+-------+----------+---------+ > > | G | Tasks | Duration | Stddev | > > +---+-------+----------+---------+ > > | 1 | 40 | 3.906 | +-0.84% | > > | 2 | 80 | 8.569 | +-0.77% | > > | 4 | 160 | 16.384 | +-0.46% | > > | 8 | 320 | 33.686 | +-0.42% | > > +---+-------+----------+---------+ > > > > With patch: > > Just to make sure. You mean only this patch and not the whole patchset ? That's right, I applied only this patch. > > > +---+-------+----------------+---------+ > > | G | Tasks | Duration | Stddev | > > +---+-------+----------------+---------+ > > | 1 | 40 | 3.953 (+1.2%) | +-1.43% | > > | 2 | 80 | 8.646 (+0.9%) | +-0.32% | > > | 4 | 160 | 16.390 (+0.0%) | +-0.38% | > > | 8 | 320 | 33.992 (+0.9%) | +-0.27% | > > +---+-------+----------------+---------+ > > > > So there is (maybe) a little something on my box, but not so significant > > IMHO ... :) > > > > Thanks, > > Quentin