Re: [PATCH] Change min/max to float numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/02/25 09:00, Sebastian Andrzej Siewior wrote:
> On 2025-02-06 06:16:22 [-0300], Rafael Folco wrote:
>> Make min/max consistent with avg by recording the latency samples
>> as float numbers instead of integers.
> 
> Why?

- More precise numbers of Max/Min for extreme low latency cases
- Distinguish zero latency in bucket 001 (us)
- Distinguish values from upper/lower boundaries in a bucket
- Clarify confusion on average (round up) vs maximum in the next bucket (casting)

Instead of:
        Core:    3 4 5
Counter Freq:    2100 2100 2100 (MHz)
    001 (us):    14880514 14880447 14880442
    002 (us):    0 0 0
    003 (us):    0 0 0
    004 (us):    0 0 0
    005 (us):    0 0 0 (including overflows)
     Minimum:    0 0 0 (us)
     Average:    1.000 1.000 1.000 (us)
     Maximum:    0 0 0 (us)
     Max-Min:    0 0 0 (us)

We'd see:
        Core:    3 4 5
Counter Freq:    2100 2100 2100 (MHz)
    001 (us):    12578842 12491108 12578752
    002 (us):    0 0 0
    003 (us):    0 0 0
    004 (us):    0 0 0
    005 (us):    0 0 0 (including overflows)
     Minimum:    0.033 0.035 0.035 (us)
     Average:    1.000 1.000 1.000 (us)
     Maximum:    0.129 0.153 0.134 (us)
     Max-Min:    0.095 0.118 0.099 (us)


> 
>> Signed-off-by: Rafael Folco <rfolco@xxxxxxxxxx>
> 
> Sebastian
> 





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux