From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Andy Fleming <afleming@freescale.com>
Cc: netdev@vger.kernel.org, Rick Jones <rick.jones2@hp.com>,
linuxppc-dev@ozlabs.org
Subject: Re: [RFC] gianfar: low gigabit throughput
Date: Wed, 7 May 2008 17:33:46 +0400 [thread overview]
Message-ID: <20080507133346.GA8308@polina.dev.rtsoft.ru> (raw)
In-Reply-To: <E82C3C5F-0D93-4190-ADDC-3FA37D13E250@freescale.com>
On Tue, May 06, 2008 at 03:29:06PM -0500, Andy Fleming wrote:
>>>
>>> I've tried to tune gianfar driver in various ways... and it gave
>>> some positive results with this patch:
>>> diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h
>>> index fd487be..b5943f9 100644
>>> --- a/drivers/net/gianfar.h
>>> +++ b/drivers/net/gianfar.h
>>> @@ -123,8 +123,8 @@ extern const char gfar_driver_version[];
>>> #define GFAR_10_TIME 25600
>>> #define DEFAULT_TX_COALESCE 1
>>> -#define DEFAULT_TXCOUNT 16
>>> -#define DEFAULT_TXTIME 21
>>> +#define DEFAULT_TXCOUNT 80
>>> +#define DEFAULT_TXTIME 105
>>> #define DEFAULT_RXTIME 21
>>
>> No ethtool coalescing tuning support for gianfar?-)
>
> Yeah, there's coalescing tuning in gianfar.
>
> Anton, those numbers aren't too surprising on a 400 MHz machine, I
> think.
This is my thinking too, actually. I've seen the MPC885 board with CPU
running at 133 MHz and CSB at 66MHz. It was using the completely
different driver (fs_enet's FEC), and it failed to produce even 60 Mb/s
(with a 100 Mb/s PHY). 50-55 Mb/s was quite normal for that board.
Which means, I think, that ~160 Mb/s is quite good for the 400/133
MHz board.
> But I'd be happy to see any analysis on performance bottlenecks
> in the driver. And patches to fix those bottlenecks are even better! :)
The thing is that I don't see obvious bottlenecks, so I'm afraid we'll
not able to do x2 boost or something... Just fine tuning the driver here
and there... Interrupts coalescing was very obvious step to boost the
troughtput, but there are its drawbacks...
Thanks,
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-05-07 13:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 19:20 [RFC] gianfar: low gigabit throughput Anton Vorontsov
2008-05-06 20:07 ` Rick Jones
2008-05-06 20:29 ` Andy Fleming
2008-05-07 13:33 ` Anton Vorontsov [this message]
2008-05-07 13:28 ` Anton Vorontsov
2008-05-07 16:33 ` Rick Jones
2008-05-07 15:52 ` André Schwarz
2008-05-07 16:01 ` Anton Vorontsov
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=20080507133346.GA8308@polina.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=afleming@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.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).