RE: [PATCH 0/4] sched: Various reweight_entity() fixes

Doug Smythies posted 4 patches 2 months ago
Only 0 patches received!
There is a newer version of this series
RE: [PATCH 0/4] sched: Various reweight_entity() fixes
Posted by Doug Smythies 2 months ago
On 2026.02.11 08:22 Peter Zijlstra wrote:
> On Wed, Feb 11, 2026 at 11:48:33AM +0100, Peter Zijlstra wrote:
>
>> Now let me go check on that latency thing from Doug (although hopefully
>> that was the same boo-boo).
>
> Only ~3 hours so far, I'll let it run overnight.
>
> So on my ADL with P-cores only (unplug the E things):
>
> $ NR=`grep -c processor /proc/cpuinfo`; for ((i=0; i<$NR; i++)) do yes > /dev/null & done
> $ turbostat --quiet --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,TSC_MHz,Time_Of_Day_Seconds,usec --interval 1 --out
/dev/shm/turbo.log
>
> $ gawk '/^usec/ {next} { if (T) { d=$2-T; bucket[int(d*1000)]++; } T=$2 } END { for (i in bucket) { printf "%0.3f: %d\n", i/1000,
bucket[i] }}' < /dev/shm/turbo.log
> 1.000: 4943
> 1.001: 5000
> 1.002: 21
> 1.003: 10
> 1.004: 1
> 1.005: 1
>
> Which seems to suggest things are looking better again.

Same here, 6 hours and 20 minutes so far, and I'll leave it overnight:
By the way, thank you for the cool parsing and histogram command line.

$ gawk '/^usec/ {next} { if (T) { d=$2-T; bucket[int(d*1000)]++; } T=$2 } END { for (i in bucket) { printf "%0.3f: %d\n", i/1000,
bucket[i] }}' < /dev/shm/turbo.log
1.000: 12381
1.001: 10388
1.002: 32
1.003: 20
1.004: 9
1.005: 2
1.006: 2

System:
Processor: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz, 6 cores 12 CPUs.
CPU frequency scaling driver: intel_pstate.
CPU frequency scaling governor: powersave.
HWP: enabled.
idle governor teo.
Re: [PATCH 0/4] sched: Various reweight_entity() fixes
Posted by Peter Zijlstra 2 months ago
On Wed, Feb 11, 2026 at 09:54:40PM -0800, Doug Smythies wrote:

> Same here, 6 hours and 20 minutes so far, and I'll leave it overnight:

Excellent!

> By the way, thank you for the cool parsing and histogram command line.

No problem. I love awk :-) Its just small enough to re-learn by reading
the man page.

I always struggle with things like perl and python because I don't use
them enough to retain stuff, and then I'm left endlessly googling how
the heck things worked again. But awk fits in a single 'short' manpage.
RE: [PATCH 0/4] sched: Various reweight_entity() fixes
Posted by Doug Smythies 2 months ago
On 2026.02.11 23:52 Peter Zijlstra wrote:
> On Wed, Feb 11, 2026 at 09:54:40PM -0800, Doug Smythies wrote:
>
>> Same here, 6 hours and 20 minutes so far, and I'll leave it overnight:
>
> Excellent!
>
>> By the way, thank you for the cool parsing and histogram command line.
>
> No problem. I love awk :-) Its just small enough to re-learn by reading
> the man page.
>
> I always struggle with things like perl and python because I don't use
> them enough to retain stuff, and then I'm left endlessly googling how
> the heck things worked again. But awk fits in a single 'short' manpage.

We already know all is good, but just for completeness after overnight:
14 hours and 46 minutes:

Cool method:

$ gawk '/^usec/ {next} { if (T) { d=$2-T; bucket[int(d*1000)]++; } T=$2 } END { for (i in bucket) { printf "%0.3f: %d\n", i/1000,
bucket[i] }}' < /dev/shm/turbo.log
1.000: 28858
1.001: 24052
1.002: 87
1.003: 56
1.004: 31
1.005: 11
1.006: 8
1.008: 2

My old way. Interesting differences, likely due to subtle differences in subtracting 2 16 digit numbers:

cat v3.his
1.000, 32974
1.001, 20012
1.002, 86
1.003, 57
1.004, 31
1.005, 11
1.006, 8
1.008, 2

Total: 53181 : Total >= 10 mSec: 0 ( 0.00 percent)