Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8073425ybi; Tue, 9 Jul 2019 08:44:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6UNUqS9N4XIUHH7/Z7hC9QnNqgDylSK25qOqGJ+uKrxZbp/h2saqEdB0qhQ2SzTBN+nmf X-Received: by 2002:a17:902:44a4:: with SMTP id l33mr32944149pld.174.1562687076614; Tue, 09 Jul 2019 08:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562687076; cv=none; d=google.com; s=arc-20160816; b=T1w94lDK0bfXrbUpWPblqmP85r/W3TEhwyuGY0y9/ivfyxA/Hw9i9rR91hlfhOKAm+ ACWNv6C1VJp5YwyLsAHy2yUzPNvJs6XQDHuc+EhszXyVqv2M8tPa1WQzOCU/TXK/QLQK UwgKBfTaXJLq7hlKm1Ia+1wx4fPyT8ab/zdcdhmz0kyUwEcpd9b1qeAQPwQiQf5czDWG fYIDAlkLpt+GUsxVLLC5iab09N+rfOKSMHhd5rUCCcJOEQDeSksrD8CvSjyoQ4/j/Rrz 7cZ1gI+6IXUhTzkpeTYiEWxklwc2QORZKRbNlUW76WcCFbandlgMu3nI1lijO9UzTQy0 fs6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:reply-to:references:cc:to:subject; bh=tYJHFfbZ0ZVhfxBusCJYuQU7P3q8WW1QEQDjFqY5qNs=; b=t2XGNoiGO7N6AJ5KLl41RELd8Dk22BsIyN4bRbU5n1FqSafcMtFNx/LgvUIc0gBeXE cdnkXW3B912NNA8NxWD9h08+JhiV/AVoSk1dlnqjkiRezz02xES7Y4T6FsbSyrnwe7ms HFalMPvP6qfxM0ZW/11gWEpoW8GOueKc/vk7Hx9PzjaojX7P9xybSiAFTmyxNAzk/1w7 b8cRVEh7zb4K+OJsubzxXet2Lr/dp5ZFy1e4EU+NILwWNslMXavB+T8kY0tVgLfnoVv0 WWko3eJ+qmffJhRP07G4BysT4MhSTXX3UyK8pC/zor86v8oeG3E3l+E5qEpCsmLyHwFv wZ3w== 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 m189si22921032pgm.443.2019.07.09.08.44.20; Tue, 09 Jul 2019 08:44:36 -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 S1726358AbfGIPmK (ORCPT + 99 others); Tue, 9 Jul 2019 11:42:10 -0400 Received: from foss.arm.com ([217.140.110.172]:46354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfGIPmK (ORCPT ); Tue, 9 Jul 2019 11:42:10 -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 C2C7E2B; Tue, 9 Jul 2019 08:42:09 -0700 (PDT) Received: from [10.1.194.67] (e108031-lin.cambridge.arm.com [10.1.194.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E4D1C3F246; Tue, 9 Jul 2019 08:42:08 -0700 (PDT) Subject: Re: [PATCH] sched/fair: Update rq_clock, cfs_rq before migrating for asym cpu capacity To: Vincent Guittot Cc: Peter Zijlstra , "linux-kernel@vger.kernel.org" , Ingo Molnar , Morten Rasmussen , Dietmar Eggemann References: <20190709115759.10451-1-chris.redpath@arm.com> <20190709135054.GF3402@hirez.programming.kicks-ass.net> Reply-To: chris.redpath@arm.com From: Chris Redpath Message-ID: <1128a866-6817-3703-8962-8c3670dd10c1@foss.arm.com> Date: Tue, 9 Jul 2019 16:42:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/2019 16:36, Vincent Guittot wrote: > Hi Chris, > >> >> We enter this code quite often in our testing, most individual runs of a >> test which has small tasks involved have at least one hit where we make >> a change to the clock with this patch in. > > Do you have a rt-app file that you can share ? > The ThreeSmallTasks test which is the worst hit produces this: { "tasks": { "small_0": { "policy": "SCHED_OTHER", "delay": 0, "loop": 1, "phases": { "p000001": { "loop": 62, "run": 2880, "timer": { "ref": "small_0", "period": 16000 } } } }, "small_1": { "policy": "SCHED_OTHER", "delay": 0, "loop": 1, "phases": { "p000001": { "loop": 62, "run": 2880, "timer": { "ref": "small_1", "period": 16000 } } } }, "small_2": { "policy": "SCHED_OTHER", "delay": 0, "loop": 1, "phases": { "p000001": { "loop": 62, "run": 2880, "timer": { "ref": "small_2", "period": 16000 } } } } }, "global": { "default_policy": "SCHED_OTHER", "duration": -1, "calibration": 264, "logdir": "/root/devlib-target" } } when I run it >> >> That said - despite the relatively high number of hits only about 5% of >> runs see enough additional energy consumed to trigger a test failure. We >> do try to keep a quiet system as much as possible and only run for a few >> seconds so the impact we see in testing is also probably higher than in >> the real world. > > Yeah, I'm curious to see the impact on a real system which have a > 60fps screen update like an android phone > I wouldn't expect much change there but I would on the idle-ish homescreen/day-of-use type benchmarks. If I had a platform with any kind of representative energy use, I'd test it :)