Re: is RTL8139 THAT bad?

2009-06-23 Thread peterjeremy
On 2009-Jun-22 13:12:08 +0200, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: i know all this, but i'm asking why processing single interrupt takes 4 CPU cycles. All I can suggest is that you browse the sources and see what the rl(4) interrupt handler does. If you want to dig

Re: is RTL8139 THAT bad?

2009-06-23 Thread EforeZZ
i have pentium 200 with that card. doing ftp from other machine, getting 3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. I had the same probelm. I rebuilt the kernel with the POLLING option set to ON and turned on polling for all network interfaces. It helped much :) Best regards,

Re: is RTL8139 THAT bad?

2009-06-22 Thread Wojciech Puchar
But - this computer can do memcpy at 80MB/s, so at 3.5MB/s it should be 5% CPU for memcpy, and one interrupt per one packet (2500 packets/s). Is something more that make it consume 50% CPU? Accessing the on-card memory through PCI is guaranteed to be slower than the main memory, and depending

Re: is RTL8139 THAT bad?

2009-06-22 Thread Wojciech Puchar
Why it's THAT bad? Because CPU always have to copy frames to/from the controller. comment says card do DMA. just then it has to copy but within main memory not PCI. These CPU cycles could have been used in other task to give more performance such as SSH encryption/decryption, checksum

is RTL8139 THAT bad?

2009-06-21 Thread Wojciech Puchar
i have pentium 200 with that card. doing ftp from other machine, getting 3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. when sending it's not that bad. tried writing file to disk with cat /dev/zero file, it's only 3% ints with 10MB/s traffic. Why it's THAT bad? 3.5MB/s is

Re: is RTL8139 THAT bad?

2009-06-21 Thread Dag-Erling Smørgrav
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl writes: Why it's THAT bad? http://svn.freebsd.org/base/head/sys/pci/if_rl.c Scroll down past the copyright, license and attribution. Read the 38-line comment that explains just how crappy this chip really is. Executive summary: every single

Re: is RTL8139 THAT bad?

2009-06-21 Thread Wojciech Puchar
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl writes: Why it's THAT bad? http://svn.freebsd.org/base/head/sys/pci/if_rl.c Scroll down past the copyright, license and attribution. Read the 38-line comment that explains just how crappy this chip really is. Well - really low end. But - this

Re: is RTL8139 THAT bad?

2009-06-21 Thread Pyun YongHyeon
On Sun, Jun 21, 2009 at 05:14:29PM +0200, Wojciech Puchar wrote: i have pentium 200 with that card. doing ftp from other machine, getting 3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. when sending it's not that bad. tried writing file to disk with cat /dev/zero file, it's

Re: is RTL8139 THAT bad?

2009-06-21 Thread Sergey Babkin
Wojciech Puchar wrote: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl writes: Why it's THAT bad? http://svn.freebsd.org/base/head/sys/pci/if_rl.c Scroll down past the copyright, license and attribution. Read the 38-line comment that explains just how crappy this chip really is.