From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58D11468DA; Thu, 12 Jun 2025 00:18:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DAC44021F; Thu, 12 Jun 2025 00:18:30 +0200 (CEST) Received: from fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) by mails.dpdk.org (Postfix) with ESMTP id 929C740156 for ; Thu, 12 Jun 2025 00:18:29 +0200 (CEST) Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1515B11401F5; Wed, 11 Jun 2025 18:18:29 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 11 Jun 2025 18:18:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1749680309; x=1749766709; bh=9F8BF0ZU2QZ4Kcy2KLMSrBiUCYaF0RDnABz4UKTcD+I=; b= mmR6zUum7leis7vCJZoH15fGDDnEmpZDfXtS5F2kf7y0fRtkUtrr0hUNtQPXwugF nhWWjh7Ywyqbg0PsL7CgHDDmCWSUR5EBOg1cjvFTIzpc9Mn85tCzc3bgRfYKDhaR evtx5+tXSWTQ4eLY9a+1YNEesiUQFIwaF5+a9xx0twt366QKFDBAdrSXLAzqN9aw uu+8YK5UH1eK+NuQZYAnpTvx0jcC6I6+4U5puuUcDuGBi99k6rNA0Jni+w+Bv1L5 CoTKXvgx2Adr78TPDrf5JBW4DsX0qXd59nm5yi7b9UQxGPq2YR+yCDfIXIDOVqxT bZ1Sq89YLCKXkh4IcBinhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749680309; x= 1749766709; bh=9F8BF0ZU2QZ4Kcy2KLMSrBiUCYaF0RDnABz4UKTcD+I=; b=F f9w1hxoKEOtrRSUSYc6YZ+tAWmGs1uIqa/g1PBaU3XbAx5LHc7qSIEgan3HJkxVZ c332eCE79216xG/oFs+vyeOgkI2qRGuMakH+/W2IRxtUFVvKaSPCD/5Ye5fbCv7Z m/h/sJkCYN8t4FaNCRnpNPKEGqQsQlwpIDVgUOc2f02iJ10SJfSwuECNaNkUZ4SO LlmgdyM5IywBrZwPzxD+GcuJUZauZeoWTacsUqLh8D9NCpUoecJt26DphqW0clVR cFc8FthZZ9xvrNXDjQg2gDX9xhSY4r7jzmtYzw2lrF3DSuiTkcr1YKuNzM5g69rI chZTGs7n1jkXCheJ7VCuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddufeefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdej necuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjh grlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepjeduveehieevuddutdevfffgtdeg keeuveejffejgedtgeegkefgvdeugfefkeejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthdp nhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshhtvg hphhgvnhesnhgvthifohhrkhhplhhumhgsvghrrdhorhhgpdhrtghpthhtohepuggvvhes ughpughkrdhorhhgpdhrtghpthhtoheprhhorhgvthiilhgrsehlihhnuhigrdhmihgtrh hoshhofhhtrdgtohhmpdhrtghpthhtohepmhgssehsmhgrrhhtshhhrghrvghshihsthgv mhhsrdgtohhmpdhrtghpthhtohepkhhonhhsthgrnhhtihhnrdgrnhgrnhihvghvsehhuh grfigvihdrtghomhdprhgtphhtthhopehrvghshhhmrgdrphgrthhtrghnsehinhhtvghl rdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Jun 2025 18:18:26 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Tyler Retzlaff , Morten =?UTF-8?B?QnLDuHJ1cA==?= , Konstantin Ananyev , Reshma Pattan Subject: Re: [PATCH v8 2/7] latencystats: do not use floating point Date: Thu, 12 Jun 2025 00:18:24 +0200 Message-ID: <15450130.EVyyLHbfrO@thomas> In-Reply-To: <20250610141355.91759-3-stephen@networkplumber.org> References: <20240408195036.182545-1-stephen@networkplumber.org> <20250610141355.91759-1-stephen@networkplumber.org> <20250610141355.91759-3-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 '' or provide a declaration of 'llabs' I can fix it while merging.