lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130710134104.GA4086@amd.pavel.ucw.cz>
Date:	Wed, 10 Jul 2013 15:41:04 +0200
From:	Pavel Machek <pavel@....cz>
To:	Eric Dumazet <eric.dumazet@...il.com>
Cc:	nic_swsd@...ltek.com, romieu@...zoreil.com, netdev@...r.kernel.org
Subject: Re: Extremely bad performance with RTL8111/8168B

Hi!

> > I've small Intel desktop with RTL8111/8168B ethernet... but the
> > performance is extremely bad.
> > 
> > In 3.10, I only get about 200KB/sec:
> > 
> > pavel@amd:~$ scp /tmp/delme pavel@duo:/tmp
> > pavel@...'s password: 
> > delme                                               100%   16MB
> > 236.0KB/s   01:09    
> > 
> > In older version, I get 1MB/s, but network fails every 10 minutes or
> > so. Card is:
> > 
> > 03:00.0 Ethernet controller: Realtek Semiconductor Co.,
> > Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
> > 
> > I did install firmware-realtek package as suggested by debian
> > installer.
> > 
> > Dmesg says:
> > 
> > r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
> > r8169 0000:03:00.0 eth0: RTL8168d/8111d at 0xf8010000,
> > 00:27:0e:2a:43:71, XID 081000c0 IRQ 17
> > r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx
> > checksumming: ko]
> > 
> > Any ideas what is wrong?
> 
> Hi Pavel
> 
> I guess receiving is OK ?

Actually, receiving is slow. Transmit is ok. "duo" is "bad" machine
with RTL card.

pavel@amd:~/misc/hw/duo$ scp /tmp/delme pavel@duo:/tmp
pavel@...'s password: 
delme 17%   35MB 759.1KB/s   03:39 ETA
(I aborted the copy).
pavel@amd:~/misc/hw/duo$ scp pavel@duo:/tmp/delme /tmp
pavel@...'s password: 
delme 100%   34MB  11.3MB/s   00:03    
pavel@amd:~/misc/hw/duo$ ping duo
PING duo (10.0.0.9) 56(84) bytes of data.
64 bytes from duo (10.0.0.9): icmp_req=1 ttl=64 time=1.17 ms
64 bytes from duo (10.0.0.9): icmp_req=2 ttl=64 time=0.737 ms
64 bytes from duo (10.0.0.9): icmp_req=3 ttl=64 time=1.17 ms
64 bytes from duo (10.0.0.9): icmp_req=4 ttl=64 time=0.608 ms

(I even out-of-tree driver for 2.6.32, and it seemed to have similar
problems.)


> It looks like TSO packets are not transmitted, so TCP only 'works'
> because retransmits use non TSO packets.
> 
> Could you report "ethtool -k eth0" ?

Yes:

root@duo:~# ethtool -k eth0
Offload parameters for eth0:
rx-checksumming: on
tx-checksumming: off
scatter-gather: off
tcp-segmentation-offload: off
udp-fragmentation-offload: off
generic-segmentation-offload: off
generic-receive-offload: on
large-receive-offload: off
ntuple-filters: off
receive-hashing: off

> try : ethtool -K eth0 tso off

No, that does not help:

pavel@amd:~$ scp /tmp/delme pavel@duo:/tmp
pavel@...'s password: 
delme 100%   34MB 706.9KB/s 00:49    

[Now... I plugged old J2585B 10/100VG PCI card into the duo...
full-height card into half-height slot, oops... only to discover that
it can't do 100mbit ethernet. I guess "100VG" means "not 100 mbit" :-(.]

Any other ideas? :-),

									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ