PDA

View Full Version : Nic Gigabit RTL8111/8168B lento in upload


eaman
12-01-2012, 10:24
Salve gente, confidavo in una scheda di rete
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)

montata on board sulla scheda madre del mio sistema, che usa linux con un kernel 3.1.0-1-amd64 (debian) come moduli mi sembra:
r8169 42391 0
mii 12675 1 r8169
e mi sembra che vada lenta in upload sulla mia rete gigabit.
iperf -c chrome -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to chrome, TCP port 5001
TCP window size: 22.0 KByte (default)
------------------------------------------------------------
[ 5] local 192.168.0.1 port 59007 connected with 192.168.0.254 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.0 sec 292 MBytes 245 Mbits/sec
[ 4] local 192.168.0.1 port 5001 connected with 192.168.0.254 port 55926
[ 4] 0.0-10.0 sec 836 MBytes 699 Mbits/sec
Switch gigabit, cavi cat 7 comprati, le altre macchine vanno "normalmente", o per lo meno piu' veloci nel bidirezionale, e l'host in questione e' lento anche quando tenta di connettersi ad altri host. Questo anche se bypasso lo switch e connetto direttamente coi cavi.

Apparentemente non ho errori con la rete:
eth0 Link encap:Ethernet HWaddr 00:13:8f:d1:57:4f
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:8fff:fed1:574f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:7000 Metric:1
RX packets:964306 errors:0 dropped:0 overruns:0 frame:0
TX packets:496087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5318017572 (4.9 GiB) TX bytes:1572257983 (1.4 GiB)
Interrupt:40 Base address:0xc000
Di robe esotiche ho direi solo la MTU a 7000 (cosi' va la rete) : non regge i 9000.
Se metto la MTU a 1500 migliora un po' l'upload, ma poi diminuisce il download: iperf -c chrome -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to chrome, TCP port 5001
TCP window size: 22.0 KByte (default)
------------------------------------------------------------
[ 5] local 192.168.0.1 port 59253 connected with 192.168.0.254 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.0 sec 734 MBytes 615 Mbits/sec
[ 4] local 192.168.0.1 port 5001 connected with 192.168.0.254 port 56116
[ 4] 0.0-10.0 sec 503 MBytes 422 Mbits/sec


Che faccio con l'MTU e in generale?
E' la scheda che e' un po' cessa? Se la sostituisco con una Lan PCI TP-LINK TG-3269 (gigabit che pero' e' su PCI, canale che non impegno direttamente con altro) c'e' caso che risolva?

eaman
12-01-2012, 10:47
Mi correggo, sembra che il problema sia il server che e' un atom con scheda madre d945gclf con una scheda di rete

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) (una TP-link montata su PCI, quella on board fa altro).

Con la MTU a 1500 du host della rete vanno decentemente:
iperf -c time2 -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to time2, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 5] local 192.168.0.1 port 38624 connected with 192.168.0.3 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.0 sec 1.10 GBytes 941 Mbits/sec
[ 4] local 192.168.0.1 port 5001 connected with 192.168.0.3 port 42000
[ 4] 0.0-10.0 sec 789 MBytes 661 Mbits/sec

Suppongo che l'unica sia cambiare la scheda madre del server e prendere qualcosa con gigabit on board su PCI Express o altra scheda su PCI express,
oppure e' la scheda TP-link TG-3269 che non fa' piu di tanto (costa 7 euri...) e' un'altra scheda PCI potrebbe andare meglio?

Mi fa strano che con la MTU a 7000 spinge fuori a 75MBytes al secondo, ma poi e' lenta come la quaresima a ricevere. Con la MTU a 1500 dal server scarico a:
wget chrome/short
--2012-01-12 11:50:31-- http://chrome/short
Length: 174317568 (166M) [application/octet-stream]
Saving to: `short'

100%[=====================================>] 174,317,568 47.3M/s in 3.5s

2012-01-12 11:50:34 (47.3 MB/s) - `short' saved [174317568/174317568]
Mentre se rimetto le jumbo a 7000:
wget chrome/short
Length: 174317568 (166M) [application/octet-stream]
Saving to: `short'

100%[=====================================>] 174,317,568 82.7M/s in 2.0s

2012-01-12 11:52:36 (82.7 MB/s) - `short' saved [174317568/174317568]

Insomma e' una discreta palla, non e' che posso cambiare la MTU a seconda che leggo o scrivo sul file-server: consigli?