[realtek] 8139too performance - can you shed some light?

Carlo E. Prelz fluido@fluido.as
Fri, 3 Aug 2001 08:27:41 +0200


	Subject: Re: [realtek] 8139too performance - can you shed some light?
	Date: Thu, Aug 02, 2001 at 01:31:29PM -0400

Quoting Donald Becker (becker@scyld.com):

> > > > See if you can tell where the pkts are being dropped, and for what
> > > > reason.  Take a look at the /proc/net/dev file on all the machines,
> > > > for instance.
> 
> The number of packets dropped by the hardware, presumably because there
> was no room in the Rx ring, shows up in
>    stats.rx_missed_errors 
> The number of packets dropped because there were no skbuffs available is
> counted in
>    stats.rx_dropped

The kernel part seems to behave properly: on a period of one half
minute at full speed, almost 300000 packets were sent, and only 40
were dropped and 1 was missed (data from /proc/net/dev).

But my application sees almost nothing. And I have a separate thread
for reading from the socket, who calls select, grabs the bytes, stores
them in shared memory if needed, and goes back to select.

On a faster machine, all works perfectly.

Thanks for your attention!

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)