netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vincent Whitchurch <Vincent.Whitchurch@axis.com>
To: "maxtram95@gmail.com" <maxtram95@gmail.com>,
	Vincent Whitchurch <Vincent.Whitchurch@axis.com>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
	"nbd@nbd.name" <nbd@nbd.name>,
	"alexandre.torgue@st.com" <alexandre.torgue@st.com>,
	"joabreu@synopsys.com" <joabreu@synopsys.com>,
	kernel <kernel@axis.com>,
	"peppe.cavallaro@st.com" <peppe.cavallaro@st.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net] net: stmmac: Use hrtimer for TX coalescing
Date: Mon, 18 Sep 2023 12:56:31 +0000	[thread overview]
Message-ID: <1b485fa168f2862adf3f0967a04a7f0e1a99ffe3.camel@axis.com> (raw)
In-Reply-To: <ZO-E2_A-UrC9127S@mail.gmail.com>

On Wed, 2023-08-30 at 21:05 +0300, Maxim Mikityanskiy wrote:
> On Wed, 30 Aug 2023 at 14:55:37 +0000, Vincent Whitchurch wrote:
> > Any test results with this patch on the hardware with the performance
> > problems would be appreciated.
> 
> TL/DR: it's definitely better than without the patch, but still worse
> than fully reverting hrtimer [1].

Thank you for testing this.

Have you also had the chance to try out Felix's suggestion of completely
disabling coalescing in the driver?  For that you will need to apply the
patch at [0] (the command below may appear to work without the patch but
the timer will continue to be programmed and expire immediately if the
patch is not applied) and then run something like:

  ethtool -C eth0 tx-frame 1 tx-usecs 0

[0] https://lore.kernel.org/all/20230907-stmmac-coaloff-v2-1-38ccfac548b9@axis.com/

With coalescing disabled in the driver, there is also the option of
playing with the generic software IRQ coalescing options available in
NAPI in newer kernels (eg. gro_flush_timeout), which may work better for
you than the one in the driver.

  reply	other threads:[~2023-09-18 12:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20 15:02 [PATCH net] net: stmmac: Use hrtimer for TX coalescing Vincent Whitchurch
2020-11-24  0:46 ` Jakub Kicinski
2020-11-24  4:11   ` Vincent Whitchurch
2020-11-24 16:50     ` Jakub Kicinski
2023-08-23 20:18 ` Felix Fietkau
2023-08-25 13:42   ` Vincent Whitchurch
2023-08-25 17:38     ` Felix Fietkau
2023-08-30 14:55       ` Vincent Whitchurch
2023-08-30 18:05         ` Maxim Mikityanskiy
2023-09-18 12:56           ` Vincent Whitchurch [this message]
2023-09-19 17:53             ` Maxim Mikityanskiy
2023-08-30 21:06         ` Felix Fietkau
2023-09-01 11:31           ` Vincent Whitchurch
2023-09-01 11:53             ` Felix Fietkau
2023-09-08 10:42               ` Vincent Whitchurch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1b485fa168f2862adf3f0967a04a7f0e1a99ffe3.camel@axis.com \
    --to=vincent.whitchurch@axis.com \
    --cc=alexandre.torgue@st.com \
    --cc=davem@davemloft.net \
    --cc=joabreu@synopsys.com \
    --cc=kernel@axis.com \
    --cc=kuba@kernel.org \
    --cc=maxtram95@gmail.com \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).