> 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. > > Signed-off-by: Stephen Hemminger <[email protected]> > Acked-by: Tyler Retzlaff <[email protected]> > Acked-by: Morten Brørup <[email protected]> > --- > lib/latencystats/rte_latencystats.c | 128 ++++++++++++++++------------ > 1 file changed, 73 insertions(+), 55 deletions(-) >
Acked-by: Konstantin Ananyev <[email protected]> > 2.47.2

