Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3391163ima; Tue, 23 Oct 2018 05:18:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Nmy64rsYecdpN4C+InjohPSF/Sd9ISUM7jrZpPqptTXs2Jw8DswhYkqYWhCdhQxhI/zTL X-Received: by 2002:a17:902:28a2:: with SMTP id f31-v6mr48713116plb.312.1540297079924; Tue, 23 Oct 2018 05:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540297079; cv=none; d=google.com; s=arc-20160816; b=QrOTO+bTRWzqQOWBI2gis/YePsOgOULzkOgktlRygOMU6/IxztjptN5qoXjDJ3/XUW rxKYlltRAf2B3GV8cmHtEZuG1Cnh/Sd8KcLxy6/UksW315ez3D267iq1nOqJzOSrQ3xN SX06ur7rVfpJqBAKR/LlRwB7JP2FHxpzBWIYlspkV59F0xabGh1r3WBgTEpBGay/RPpY b2lNmR2RGpQVgA7zyavPIpHhDj281nUpxGtmruZf9EP/2QlLOP14f2AYaDRzF8ocMF9L mOIEVsOA8zUQt2GwnaIAH3C799zQmQn51bIwjudvr/GoUxEzWE4shPK7/tsDlyEJQzNa 82Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pQmzRTCkKasMuTUaJ65GS+2TFw9iSMz8vMwDuQQErL4=; b=UXeMhYha3CRNIcp0+7JW+ziRsHDVVxerHryAtKsxCleV41OA/ZO+6W4FIUtrSlODI1 C6mCp4Ou/ttCevpe+UbLmwrjhCLvRdNsONjRGDdH/KFuZOqm9PMhgzrQHc2xzyicA4P9 smwHvVljmZTdhaSoANTxErrbKkYD60j0nrISFm/p74OIyS0eRndfC30nwgYHtgTZHVoh RGoUZsu68T8yqfEz66/lp1tQha3KihRuInNNQju4ozHc65ej67A0YskSCONPcokNANEm ikN7KLkgLp7DqhtYH4Wdw52jumG4SpPHQHozzMZE1ImvIEF3tb9S+3ku9gM7zGJEoLG+ GxYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W9lxC6FC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k65-v6si1153958pfj.115.2018.10.23.05.17.43; Tue, 23 Oct 2018 05:17:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=W9lxC6FC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbeJWUjM (ORCPT + 99 others); Tue, 23 Oct 2018 16:39:12 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:53175 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeJWUjM (ORCPT ); Tue, 23 Oct 2018 16:39:12 -0400 Received: by mail-it1-f194.google.com with SMTP id 134-v6so1617433itz.2 for ; Tue, 23 Oct 2018 05:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pQmzRTCkKasMuTUaJ65GS+2TFw9iSMz8vMwDuQQErL4=; b=W9lxC6FCigRj30vLcl035kspsJKrYnTLKwHFzc0U9c8Ho350qH0rqNG6OCknZ3eZY6 1QNJQUFJ7hjRSD3Qt/UE2Zd3cJQoe6jlADypzXkxReFU+XdijjNStRw0ROzv06ceglOj o3iWA6BDD88B2ocVpaypdwgtHluOeP8mmxRyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pQmzRTCkKasMuTUaJ65GS+2TFw9iSMz8vMwDuQQErL4=; b=bhWuzZu+hb08lvEV62Hh5ut1d+xY71SaOnktOvl24JJZz6zUCHYMKgZPc7ZpLpNmGb esjRex/EVd2sD0dtMHgKPnWV51/QHibdyZTNvXaruf10uU9FNsajcY9ldnDsr+SjaBtf yRIEopls+ZGfJkXHNip5INly2FS3MK0o9EMCAqYH2PDuem0JsJA4hgDNNpkwjbKDhCSp X67tn1pfIxl+UQ556PBXTXEu1K17snZyysilk0tKqCVUSnVq/NgOjj2zSrb6J4kBKTx1 VQGjCLx414iYqkVj0RXiXESp8gfvCcaGJNG+gwAndr/0qHksphWkVvhX6g7iNPlsHFPo 7WPg== X-Gm-Message-State: ABuFfoglE/dLNjeMZjsO24Iu+AOSt6TrdwxTvD5inxvKyk1Gt0tKlyVs FhJWt5Cadi8c4hfWIxMT75Y6JoGLGxgYHwq81uKjcQ== X-Received: by 2002:a24:670a:: with SMTP id u10-v6mr12294512itc.114.1540296957137; Tue, 23 Oct 2018 05:15:57 -0700 (PDT) MIME-Version: 1.0 References: <1539965871-22410-1-git-send-email-vincent.guittot@linaro.org> <1539965871-22410-3-git-send-email-vincent.guittot@linaro.org> <20181023100057.GJ3109@worktop.c.hoisthospitality.com> In-Reply-To: <20181023100057.GJ3109@worktop.c.hoisthospitality.com> From: Vincent Guittot Date: Tue, 23 Oct 2018 14:15:46 +0200 Message-ID: Subject: Re: [PATCH v4 2/2] sched/fair: update scale invariance of PELT To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Dietmar Eggemann , Morten Rasmussen , Patrick Bellasi , Paul Turner , Ben Segall , Thara Gopinath Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Oct 2018 at 12:01, Peter Zijlstra wrote: > > On Fri, Oct 19, 2018 at 06:17:51PM +0200, Vincent Guittot wrote: > > In order to achieve this time scaling, a new clock_pelt is created per rq. > > > > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > > index 3990818..d987f50 100644 > > --- a/kernel/sched/sched.h > > +++ b/kernel/sched/sched.h > > @@ -848,6 +848,8 @@ struct rq { > > unsigned int clock_update_flags; > > u64 clock; > > u64 clock_task; > > + u64 clock_pelt; > > + unsigned long lost_idle_time; > > Very clever that. Seems to work out nicely. We should maybe look at Thanks > ensuring all these clock fields are indeed on the same cacheline. yes good point