From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2A922141B5 for ; Fri, 11 Oct 2024 12:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728650723; cv=none; b=uox+TmRja++wBpa/R1GZBhhm8yuFOpVKb6br8Snmrw1B19VvGdBUZB7LOLt1uZ/qgIXHe7mUmH9NMvvqa46y4j9VPvpEKr+7ikFEFHDZRc+EEFQ0CmlRZtXZGaCbydUUaR1d94lLfcJU4y6jrbXwkFTxZ/j7IZX8lVR+8m3110Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728650723; c=relaxed/simple; bh=/T8q9dUBMOMdEmLWwZw5m6NVxYYucuxPp020R+G0bak=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gjns2PMAC0AEyQCHeUG2biBHobcuMSWVPD6FxPL/yySA2XiQuY2lPE82duqGUvq1nhHoFrjkkqWYGWnqY+LdihkqTX5VN/H68ChWi6ETat/UtdvQi/ZEoH5ksD+rntihxu3dI+Ey/4WNvTJWq5HRjS0DmEz+Ixc2hjyxU/5mk3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 8B296497; Fri, 11 Oct 2024 05:45:49 -0700 (PDT) Received: from [10.34.129.34] (e126645.nice.arm.com [10.34.129.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C0003F64C; Fri, 11 Oct 2024 05:45:17 -0700 (PDT) Message-ID: <9b515d19-b4f7-45b6-a234-dd7fcdabeb6d@arm.com> Date: Fri, 11 Oct 2024 14:45:15 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/1] sched/fair: Update blocked averages on tick To: linux-kernel@vger.kernel.org Cc: Hongyan Xia , Chritian Loehle , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider References: <20241011123222.1282936-1-pierre.gondois@arm.com> Content-Language: en-US From: Pierre Gondois In-Reply-To: <20241011123222.1282936-1-pierre.gondois@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/11/24 14:32, Pierre Gondois wrote: > The patch below was tested on a Pixel6 based on v6.8. The patch was > then ported to v6.12-rc2. The energy consumption of the Pixel6 is: > - measured using the phone's energy counters > - estimated using util signals, cluster frequency and the Energy Model > > An rt-app workload runs during 20s, 5 iterations. 'count' tasks are created > with a utilization of 'util'%. Task's period is 16ms. > > Measured energy: > +-------------+------+-------+-----------+------------+------------+ > | granularity | util | count | base | with patch | ratio | > +-------------+------+-------+-----------+------------+------------+ > | 0 | 5 | 8 | 5703.759 | 5624.371 | - 1.391 | > | 0 | 5 | 16 | 15021.425 | 14540.839 | - 3.199 | > | 0 | 5 | 24 | 30018.226 | 27046.899 | - 9.898 | > | 0 | 10 | 8 | 12843.869 | 12346.898 | - 3.869 | > | 0 | 10 | 16 | 45925.643 | 43081.072 | - 6.193 | I forgot to trimm a configuration off the results. Please ignore the lines with a 'granularity=2'. 8> > | 2 | 5 | 8 | 6288.044 | 6174.609 | - 1.803 | > | 2 | 5 | 16 | 15657.632 | 15037.596 | - 3.959 | > | 2 | 5 | 24 | 31483.032 | 27205.665 | -13.58 | > | 2 | 10 | 8 | 14003.121 | 12675.037 | - 9.484 | > | 2 | 10 | 16 | 45005.382 | 42088.515 | - 6.481 | <8 > +-------------+------+-------+-----------+------------+------------+ > > Computed energy: > +-------------+------+-------+-----------+------------+---------+ > | granularity | util | count | base | with patch | ratio | > +-------------+------+-------+-----------+------------+---------+ > | 0 | 5 | 8 | 2.5764e10 | 2.4581e10 | - 4.591 | > | 0 | 5 | 16 | 7.0705e10 | 6.2580e10 | -11.490 | > | 0 | 5 | 24 | 1.5034e11 | 1.1889e11 | -20.916 | > | 0 | 10 | 8 | 4.7312e10 | 4.1573e10 | -12.131 | > | 0 | 10 | 16 | 1.7860e11 | 1.4748e11 | -17.423 | 8> > | 2 | 5 | 8 | 3.0811e10 | 2.8950e10 | - 6.040 | > | 2 | 5 | 16 | 8.3871e10 | 7.1320e10 | -14.963 | > | 2 | 5 | 24 | 1.3414e11 | 1.2771e11 | - 4.788 | > | 2 | 10 | 8 | 5.8014e10 | 4.5861e10 | -20.949 | > | 2 | 10 | 16 | 1.8283e11 | 1.6708e11 | - 8.613 | <8 > +-------------+------+-------+-----------+------------+---------+ > > Pierre Gondois (1): > sched/fair: Update blocked averages on tick > > kernel/sched/fair.c | 21 ++++++++++++++++----- > 1 file changed, 16 insertions(+), 5 deletions(-) >