Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3841054ioa; Tue, 26 Apr 2022 10:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhj7p/0xZnvcHF/t1BDqfafWE8/AGzNCSIBTxpfZpEKbyeVkHD1epKYyE5eBDoOaEWqbrK X-Received: by 2002:a17:906:cf84:b0:6f3:a3d8:365f with SMTP id um4-20020a170906cf8400b006f3a3d8365fmr7484880ejb.242.1650995105278; Tue, 26 Apr 2022 10:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650995105; cv=none; d=google.com; s=arc-20160816; b=Am1UPHruvPQsW2zokvmnJmKH27jNqrIgmBhT05X7LiiW47e1C8xqgVH47UUUrLNg/P 6LrHHvbR50QuOZxd9HbaZ7xK4uchyTAWeB57XRzHyV89w68O3bfmCaXpTcXoXBpuNNk/ 54ylOc398mDIbTABnS57Yl1uuYDGELwPtlijX0tvX0tVUjTv3gRZe2nSex4m9m/MQCKd Gc6LrRlqxy1QtshsHh5Kw/M3Ik5iLU6w/flToSTPLO+q3kQuIdcD2VTnCcAGwa1k91Cx uZOZjWHWLpr2y18y7tWWSJ0dlUHhk5GEHvKKLZ7y0WTCBfUUBUeVQQ4MKrFZKh3MG4RD Rjzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=2/kthBoqM4hKDOtlu5dFuQW11D2DgQySEHHUbSKHELU=; b=T99yvNjCeM5ypmZwoVQG13noRBWHxeWpfnrJ5e4bYXZU+mux86qmkbZJEPtvjVpJp7 hQIppLQ2cECyBkOcKQ/ItY/k128hapJFMFDF2zAICnFbT7O7QChyFWlIkwdDc2/9Whh/ 61bmiT0l0IKfV1DDiXluTLJ32gd0TGUHV0UQ4mgbOI3UtFA9ZHrIjwWmKhQlPWUEh9qm vQ06ypBMCLvmyRrbEBPW88awb7RLwB5s2Mnukd9xqOvFtptk4yjaqj033gv5YNgpaN9s LfXoTpgxNVW6GwKRsRevHUtvzXS4GRSuHoNvbKaH3eytFewQAt5Murkok4onGf7BieRT Hofg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a170906b08400b006e862e900cfsi16555826ejy.524.2022.04.26.10.44.42; Tue, 26 Apr 2022 10:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351683AbiDZOoB (ORCPT + 99 others); Tue, 26 Apr 2022 10:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351183AbiDZOn4 (ORCPT ); Tue, 26 Apr 2022 10:43:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 821E613F14; Tue, 26 Apr 2022 07:40:48 -0700 (PDT) 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 4A68923A; Tue, 26 Apr 2022 07:40:48 -0700 (PDT) Received: from [10.57.12.108] (unknown [10.57.12.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B78D63F73B; Tue, 26 Apr 2022 07:40:46 -0700 (PDT) Message-ID: <0bc7e213-ecb5-10f5-4c5a-b809252dac22@arm.com> Date: Tue, 26 Apr 2022 15:40:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC PATCH v3 0/5] Introduce Cpufreq Active Stats Content-Language: en-US To: Viresh Kumar Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, amit.kachhap@gmail.com, linux-pm@vger.kernel.org References: <20220406220809.22555-1-lukasz.luba@arm.com> <20220426031125.ozaxwecwvuby6wo3@vireshk-i7> <20220426075402.qjpato6sqy2kes4x@vireshk-i7> <9eac86b6-0221-0f62-ac4f-f9e3b1613422@arm.com> <20220426080210.hvzrsa4kmxesn6dv@vireshk-i7> From: Lukasz Luba In-Reply-To: <20220426080210.hvzrsa4kmxesn6dv@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/26/22 09:02, Viresh Kumar wrote: > On 26-04-22, 08:59, Lukasz Luba wrote: >> :) but I didn't dare to make it sysfs. I don't know if anything in >> user-space would be interested (apart from my test scripts). > > Sure, I was talking about hierarchy in debugfs only. Will be useful if > you can show how it looks and what all data is exposed. > I've created a new way for sharing such thing. Please check the rendered notebook at [1]. You can find raw output of that debugfs at cell 9 or in cell 11 as a dictionary. The residency is in ns. You can also find a diff from two snapshots for all cpus at cell 16. We randomly use Little cpus: 0,3,4,5. At the bottom you can find plots for all cpus, their active residency at frequencies. Cpu1 and cpu2 are big, cpu2 has been hotplug out so there is an empty plot (which is good). BTW, if you are interested in comparison of different input power estimation mechanism, you can find them here [2]. There are 4 different power signals. One is real from Juno power/energy meters the rest is SW estimations of avg power for the 100ms period. As you can see there in cell 25 plot, the new proposal in this patch set is better that two previous one used in mainline. The last plot shows real power signal and the new avg signal. The plot is interactive and supports 'Box Zoom' on the right (scroll to right to see that toolbox). Regards, Lukasz [1] https://nbviewer.org/github/lukaszluba-arm/lisa/blob/public_tests/ipa_input_power-debugfs.ipynb [2] https://nbviewer.org/github/lukaszluba-arm/lisa/blob/public_tests/ipa_input_power.ipynb