[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2a4bea87-04bf-4373-8220-69650b435710@lunn.ch>
Date: Thu, 25 Apr 2024 14:49:30 +0200
From: Andrew Lunn <andrew@...n.ch>
To: MD Danish Anwar <danishanwar@...com>
Cc: Dan Carpenter <dan.carpenter@...aro.org>,
Heiner Kallweit <hkallweit1@...il.com>,
Jan Kiszka <jan.kiszka@...mens.com>,
Diogo Ivo <diogo.ivo@...mens.com>, Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
"David S. Miller" <davem@...emloft.net>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, srk@...com,
Vignesh Raghavendra <vigneshr@...com>, r-gunasekaran@...com,
Roger Quadros <rogerq@...nel.org>
Subject: Re: [PATCH net-next] net: ti: icssg_prueth: Add SW TX / RX
Coalescing based on hrtimers
> I did some benchmarking today with,
> 1. Default driver (without any IRQ coalescing enabled)
> 2. IRQ Coalescing (With this patch)
> 3. Default IRQ Coalescing (Suggested by you in the above patch)
>
> I have pasted the full logs at [1].
>
> Below are the final numbers,
>
> ==============================================================
> Method | Tput_TX | CPU_TX | Tput_RX | CPU_RX |
> ==============================================================
> Default Driver 943 Mbps 31% 517 Mbps 38% |
> IRQ Coalescing (Patch) 943 Mbps 28% 518 Mbps 25% |
> Default IRQ Coalescing 942 Mbps 32% 521 Mbps 25% |
> ==============================================================
>
> I see that the performance number is more or less same for all three
> methods only the CPU load seems to be varying. The IRQ coalescing patch
> (using hrtimer) seems to improve the cpu load by 3-4% in TX and 13% in
> RX. Whereas the default method that you have suggested doesn't give any
> improvemnet in tx however cpu load improves in RX with the same amount
> as method 2.
>
> Please let me know if this patch is OK to you based on the benchmarking?
It is good to include benchmark results in patches which claim to
improve performance. Please add the default and the patch version
results to the commit message.
The numbers show your more complex version does bring benefits, so it
is O.K. to use it. I just wounder how many other drivers would benefit
from a one line change.
Andrew
Powered by blists - more mailing lists