Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1437410
| From | Willy Tarreau <w@1wt.eu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net] net: mvneta: set real interrupt per packet for tx_done |
| Date | 2016-07-06 07:10 +0200 |
| Message-ID | <rRNfX-4Ur-7@gated-at.bofh.it> (permalink) |
| References | <rRKBr-38O-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On Wed, Jul 06, 2016 at 04:18:58AM +0200, Marcin Wojtas wrote:
> From: Dmitri Epshtein <dima@marvell.com>
>
> Commit aebea2ba0f74 ("net: mvneta: fix Tx interrupt delay") intended to
> set coalescing threshold to a value guaranteeing interrupt generation
> per each sent packet, so that buffers can be released with no delay.
>
> In fact setting threshold to '1' was wrong, because it causes interrupt
> every two packets. According to the documentation a reason behind it is
> following - interrupt occurs once sent buffers counter reaches a value,
> which is higher than one specified in MVNETA_TXQ_SIZE_REG(q). This
> behavior was confirmed during tests. Also when testing the SoC working
> as a NAS device, better performance was observed with int-per-packet,
> as it strongly depends on the fact that all transmitted packets are
> released immediately.
>
> This commit enables NETA controller work in interrupt per sent packet mode
> by setting coalescing threshold to 0.
We had a discussion about this in January 2015 and I thought I sent a patch
to change it but I can't find it, so I think it was only proposed to some
users for testing. I also remember that on more recent kernels by then
(>=3.13) we observed a slightly better performance with this value set to
zero.
Acked-by: Willy Tarreau <w@1wt.eu>
Willy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net] net: mvneta: set real interrupt per packet for tx_done Marcin Wojtas <mw@semihalf.com> - 2016-07-06 04:20 +0200 Re: [PATCH net] net: mvneta: set real interrupt per packet for tx_done Willy Tarreau <w@1wt.eu> - 2016-07-06 07:10 +0200 Re: [PATCH net] net: mvneta: set real interrupt per packet for tx_done David Miller <davem@davemloft.net> - 2016-07-09 05:50 +0200
csiph-web