* [PATCH] natsemi: Messages being noisy
@ 2006-09-13 13:28 Ingo Oeser
2006-09-14 15:39 ` Ingo Oeser
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Oeser @ 2006-09-13 13:28 UTC (permalink / raw)
To: Tim Hockin; +Cc: netdev
Hi there,
I get the following message when trying to transfer big files
(via FTP or SCP) since Linux 2.6.16.27. It didn't happen with Linux 2.6.13.4.
[702238.242237] eth1: increased tx threshold, txcfg 0xd0f01008.
[702238.242649] eth1: increased tx threshold, txcfg 0xd0f0100a.
What about putting this message at the message level "DEBUG"
or even under pr_debug()?
This NIC is just used for PPPoE in our setups.
The other message "tx underrun with maximum tx threshold"
is much more useful, since it indicates a real problem.
So I would suggest the following patch:
Signed-off-by: Ingo Oeser <netdev@axxeo.de>
--- linux-2.6.16.28/drivers/net/natsemi.c~ 2006-08-25 22:51:14.000000000 +0200
+++ linux-2.6.16.28/drivers/net/natsemi.c 2006-09-13 15:26:24.995044665 +0200
@@ -2338,8 +2338,7 @@
if ((np->tx_config & TxDrthMask) < TX_DRTH_VAL_LIMIT) {
np->tx_config += TX_DRTH_VAL_INC;
if (netif_msg_tx_err(np))
- printk(KERN_NOTICE
- "%s: increased tx threshold, txcfg %#08x.\n",
+ pr_debug("%s: increased tx threshold, txcfg %#08x.\n",
dev->name, np->tx_config);
} else {
if (netif_msg_tx_err(np))
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] natsemi: Messages being noisy
2006-09-13 13:28 [PATCH] natsemi: Messages being noisy Ingo Oeser
@ 2006-09-14 15:39 ` Ingo Oeser
2006-09-14 15:46 ` thockin
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Oeser @ 2006-09-14 15:39 UTC (permalink / raw)
To: Tim Hockin; +Cc: netdev
Hi there,
Ingo Oeser wrote:
> I get the following message when trying to transfer big files
> (via FTP or SCP) since Linux 2.6.16.27. It didn't happen with Linux 2.6.13.4.
>
> [702238.242237] eth1: increased tx threshold, txcfg 0xd0f01008.
> [702238.242649] eth1: increased tx threshold, txcfg 0xd0f0100a.
>
> What about putting this message at the message level "DEBUG"
> or even under pr_debug()?
Now I even know, that this happens together with a small disruption
of traffic, which makes applications hang for a second or less.
Is it possible to have the maximum value right from the start?
May I tune it somewhere to be the maximum from the start?
Would you accept patches for this?
Regards
Ingo Oeser
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] natsemi: Messages being noisy
2006-09-14 15:39 ` Ingo Oeser
@ 2006-09-14 15:46 ` thockin
2006-09-15 8:11 ` Ingo Oeser
2006-09-15 10:52 ` Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: thockin @ 2006-09-14 15:46 UTC (permalink / raw)
To: Ingo Oeser; +Cc: netdev
On Thu, Sep 14, 2006 at 05:39:08PM +0200, Ingo Oeser wrote:
> Hi there,
>
> Ingo Oeser wrote:
> > I get the following message when trying to transfer big files
> > (via FTP or SCP) since Linux 2.6.16.27. It didn't happen with Linux 2.6.13.4.
> >
> > [702238.242237] eth1: increased tx threshold, txcfg 0xd0f01008.
> > [702238.242649] eth1: increased tx threshold, txcfg 0xd0f0100a.
> >
> > What about putting this message at the message level "DEBUG"
> > or even under pr_debug()?
>
> Now I even know, that this happens together with a small disruption
> of traffic, which makes applications hang for a second or less.
>
> Is it possible to have the maximum value right from the start?
> May I tune it somewhere to be the maximum from the start?
>
> Would you accept patches for this?
This will (if I recall) increase transmit latency. It's a fine line. You
might tune it up, but this fallback path probably should not be removed..
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] natsemi: Messages being noisy
2006-09-14 15:46 ` thockin
@ 2006-09-15 8:11 ` Ingo Oeser
2006-09-15 10:52 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Ingo Oeser @ 2006-09-15 8:11 UTC (permalink / raw)
To: thockin; +Cc: Jeff Garzik, netdev
Hi Tim,
Hi Jeff,
thockin@hockin.org wrote:
> On Thu, Sep 14, 2006 at 05:39:08PM +0200, Ingo Oeser wrote:
> > Ingo Oeser wrote:
> > > I get the following message when trying to transfer big files
> > > (via FTP or SCP) since Linux 2.6.16.27. It didn't happen with Linux 2.6.13.4.
> > >
> > > [702238.242237] eth1: increased tx threshold, txcfg 0xd0f01008.
> > > [702238.242649] eth1: increased tx threshold, txcfg 0xd0f0100a.
> > Is it possible to have the maximum value right from the start?
> > May I tune it somewhere to be the maximum from the start?
>
> This will (if I recall) increase transmit latency. It's a fine line. You
> might tune it up, but this fallback path probably should not be removed..
Will implementing "ethtool_ringparam" be the right thing for this?
Or is there simply no ethtool mechanism for setting up thresholds, yet?
If not, I would simply like to have my original pr_debug patch included.
The actual value of the tx threshhold can be queried
via "ethtool -d eth0" already.
What do you think?
Regards
Ingo Oeser
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] natsemi: Messages being noisy
2006-09-14 15:46 ` thockin
2006-09-15 8:11 ` Ingo Oeser
@ 2006-09-15 10:52 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2006-09-15 10:52 UTC (permalink / raw)
To: thockin; +Cc: Ingo Oeser, netdev
On Thu, Sep 14, 2006 at 08:46:07AM -0700, thockin@hockin.org wrote:
> On Thu, Sep 14, 2006 at 05:39:08PM +0200, Ingo Oeser wrote:
> > Is it possible to have the maximum value right from the start?
> > May I tune it somewhere to be the maximum from the start?
> This will (if I recall) increase transmit latency. It's a fine line. You
> might tune it up, but this fallback path probably should not be removed..
Yes, raising the limit there will increase transmit latency since it
causes the chip to wait for more data to be DMAed before it begins
pushing the frame out. I guess the dropped packet could be worked
around by resubmitting the dropped packet when we reconfigure the chip,
though obviously that's not ideal.
It would be interesting to understand what caused this to start
happening. The main change in natsemi itself between 2.6.13.4 and
2.6.16.27 is the introduction of NAPI although it could be some other
change causing PCI bandwidth to become more scarce.
--
"You grabbed my hand and we fell into it, like a daydream - or a fever."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-15 10:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-13 13:28 [PATCH] natsemi: Messages being noisy Ingo Oeser
2006-09-14 15:39 ` Ingo Oeser
2006-09-14 15:46 ` thockin
2006-09-15 8:11 ` Ingo Oeser
2006-09-15 10:52 ` Mark Brown
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).