[PATCH v8 2/7] latencystats: do not use floating point
    Thomas Monjalon 
    thomas at monjalon.net
       
    Thu Jun 12 00:18:24 CEST 2025
    
    
  
10/06/2025 16:12, Stephen Hemminger:
> The cycle counts do not need to be stored as floating point.
> Instead keep track of latency in cycles, and convert to
> nanoseconds when read.
> 
> Use scaled math with exponential Weighted Moving Average weight
> of .25 to avoid use of floating point for that.
> 
> The average latency took too long to "warm up".
> Do what RFC 6298 suggests and initialize on first sample.
An error appears when compiling patch by patch on Arm:
error: implicit declaration of function 'llabs'
       glob_stats->jitter += llabs(delta)
note: include '<stdlib.h>' or provide a declaration of 'llabs'
I can fix it while merging.
    
    
More information about the dev
mailing list