From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by ozlabs.org (Postfix) with ESMTP id E153267A59 for ; Wed, 15 Feb 2006 02:28:40 +1100 (EST) Received: by wproxy.gmail.com with SMTP id 71so1105652wra for ; Tue, 14 Feb 2006 07:28:39 -0800 (PST) Message-ID: <449c76a00602140728g3a9eb46sd70f23b894c4b96@mail.gmail.com> Date: Tue, 14 Feb 2006 10:28:37 -0500 From: Pantelis Antoniou To: Laurent Lagrange Subject: Re: Gianfar is slower than fcc_enet on MPC8541 ??? In-Reply-To: <000001c6317b$148162c0$5201a8c0@GEG2400> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19718_1414721.1139930917934" References: <000001c6317b$148162c0$5201a8c0@GEG2400> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_19718_1414721.1139930917934 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Laurent, I found that pretty hard to believe. What are you measuring exactly? Speed of replies? If so it's explainable since the TSECs use NAPI. Regards Pantelis On 2/14/06, Laurent Lagrange wrote: > > > Hello, > > I work on a cutom MPC8541 board with Linux 2.6.9. > The kernel activates the L1 cache (instructions and data) > and the L2 cache (entirely used as cache and not as sram). > > I configure > 1 FCC (FCC1), > 2 TSECs with or without NAPI (no effect) but without stashing in L2 sram. > All PHYs are automatically configured in 100MB full duplex. > > eth0: Gianfar Ethernet Controller Version 1.1, 00:10:cd:48:48:e0 > eth0: Running with NAPI disabled > eth0: 64/64 RX/TX BD ring size > eth1: Gianfar Ethernet Controller Version 1.1, 00:10:cd:48:48:e1 > eth1: Running with NAPI disabled > eth1: 64/64 RX/TX BD ring size > eth2: FCC ENET Version custom, 00:10:cd:48:48:e2 > > Then I launch 3 simple TCP servers, one on each ports. > > From remote machines I runs 3 TCP clients. > The client sends messages of 1000 bytes, > The server receives and echoes the message > The client receives the echoed message, check the content > and sends a new message again. > > The result is that the 2 TSECs are 2 times slower than the FCC. > > If I run a "top" application on the board, I use less than 10% of the CPU > Each port consumes about 1/3 of the CPU. > > Any idea on how to configure the gianfar driver ? > > Thanks > Laurent > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > ------=_Part_19718_1414721.1139930917934 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Laurent,

I found that pretty hard to believe.

What are you= measuring exactly?

Speed of replies? If so it's explainable since t= he TSECs use
NAPI.

Regards

Pantelis

On 2/14/06, Laurent Lagrange <lagrange@fr.oleane.com> wrote:

Hello,

I work on a cutom MPC8541 board with Linux 2.6.9.
The = kernel activates the L1 cache (instructions and data)
and the L2 cache (= entirely used as cache and not as sram).

I configure
1 FCC (FCC1)= ,
2 TSECs with or without NAPI (no effect) but without stashing in L2 sra= m.
All PHYs are automatically configured in 100MB full duplex.

&n= bsp;       eth0: Gianfar Ethernet Contro= ller Version 1.1, 00:10:cd:48:48:e0
        eth0: Running with NAPI dis= abled
        eth0: 64/64 RX/TX = BD ring size
        eth1: Gianf= ar Ethernet Controller Version 1.1, 00:10:cd:48:48:e1
   =      eth1: Running with NAPI disabled
 &nb= sp;      eth1: 64/64 RX/TX BD ring size
        eth2: FCC ENET Version = custom, 00:10:cd:48:48:e2

Then I launch 3 simple TCP servers, one on= each ports.

From remote machines I runs 3 TCP clients.
The clien= t sends messages of 1000 bytes,
The server receives and echoes the messa= ge
The client receives the echoed message, check the content
and sends = a new message again.

The result is that the 2 TSECs are 2 times slow= er than the FCC.

If I run a "top" application on the board= , I use less than 10% of the CPU
Each port consumes about 1/3 of the CPU.

Any idea on how to conf= igure the gianfar driver ?

Thanks
Laurent


____________= ___________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.or= g
= https://ozlabs.org/mailman/listinfo/linuxppc-embedded
<= /div>
------=_Part_19718_1414721.1139930917934--