Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
realtek 8169 on board, poor udp TX performance in Gb-mode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ervin.peters
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 110
Location: Apolda, Germany

PostPosted: Sat Jul 14, 2007 12:38 pm    Post subject: realtek 8169 on board, poor udp TX performance in Gb-mode Reply with quote

I was wondering why some backup-tasks to a windows server took forever. It was incredible slow. Then I remembered a tool called netio and downloaded / emerged it. The result:
Quote:

ghobi (Gentoo) running as Server:
----------------8<----------------

P:\netio126\bin>win32-i386.exe -a3 -t ghobi

NETIO - Network Throughput Benchmark, Version 1.26
(C) 1997-2005 Kai Uwe Rommel

TCP connection established.
Packet size 1k bytes: 11536 KByte/s Tx, 11534 KByte/s Rx.
Packet size 2k bytes: 11534 KByte/s Tx, 11526 KByte/s Rx.
Packet size 4k bytes: 11336 KByte/s Tx, 11556 KByte/s Rx.
Packet size 8k bytes: 11478 KByte/s Tx, 11526 KByte/s Rx.
Packet size 16k bytes: 11455 KByte/s Tx, 11559 KByte/s Rx.
Packet size 32k bytes: 11522 KByte/s Tx, 11520 KByte/s Rx.
Done.

P:\netio126\bin>win32-i386.exe -a3 -u ghobi

NETIO - Network Throughput Benchmark, Version 1.26
(C) 1997-2005 Kai Uwe Rommel

UDP connection established.
Packet size 1k bytes: 11362 KByte/s (0%) Tx, 10371 KByte/s (83%) Rx.
Packet size 2k bytes: 11205 KByte/s (0%) Tx, 33830 Byte/s (99%) Rx.
Packet size 4k bytes: 11329 KByte/s (0%) Tx, 12912 Byte/s (99%) Rx.
Packet size 8k bytes: 11535 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Packet size 16k bytes: 11184 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Packet size 32k bytes: 11559 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Done.

P:\netio126\bin>win32-i386.exe -a3 -u ghobi

NETIO - Network Throughput Benchmark, Version 1.26
(C) 1997-2005 Kai Uwe Rommel

UDP connection established.
Packet size 1k bytes: 11293 KByte/s (0%) Tx, 11468 KByte/s (83%) Rx.
Packet size 2k bytes: 11099 KByte/s (0%) Tx, 38130 Byte/s (99%) Rx.
Packet size 4k bytes: 11389 KByte/s (0%) Tx, 15363 Byte/s (99%) Rx.
Packet size 8k bytes: 11133 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Packet size 16k bytes: 11463 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Packet size 32k bytes: 11389 KByte/s (0%) Tx, 0 Byte/s (100%) Rx.
Done.
----------------8<----------------

Don't think about that ist is not Gb-Speed, the Windows Server runs on 100Mbps.

The other way around, the windows machine acts as netio server:
Quote:

----------------8<----------------
ghobi net-analyzer # netio -t balu

NETIO - Network Throughput Benchmark, Version 1.26
(C) 1997-2005 Kai Uwe Rommel

TCP connection established.
Packet size 1k bytes: 11509 KByte/s Tx, 11115 KByte/s Rx.
Packet size 2k bytes: 11509 KByte/s Tx, 11105 KByte/s Rx.
Packet size 4k bytes: 11509 KByte/s Tx, 11355 KByte/s Rx.
Packet size 8k bytes: 11507 KByte/s Tx, 11339 KByte/s Rx.
Packet size 16k bytes: 11515 KByte/s Tx, 11361 KByte/s Rx.
Packet size 32k bytes: 11486 KByte/s Tx, 11390 KByte/s Rx.
Done.

ghobi net-analyzer # netio -u balu

NETIO - Network Throughput Benchmark, Version 1.26
(C) 1997-2005 Kai Uwe Rommel

UDP connection established.
Packet size 1k bytes: 11475 KByte/s (83%) Tx, 11336 KByte/s (0%) Rx.
Packet size 2k bytes: 34122 Byte/s (99%) Tx, 11241 KByte/s (0%) Rx.
Packet size 4k bytes: 17047 Byte/s (99%) Tx, 11387 KByte/s (0%) Rx.
Packet size 8k bytes: 0 Byte/s (100%) Tx, 11408 KByte/s (0%) Rx.
Packet size 16k bytes: 0 Byte/s (100%) Tx, 11512 KByte/s (0%) Rx.
Packet size 32k bytes: 0 Byte/s (100%) Tx, 11463 KByte/s (0%) Rx.
Done.

----------------8<----------------

Same result by testing to another Gentoo Box with a 100Mbps NIC.

After unplugging and replugging the wire the netgear Gb-Switch detected only 100Mbit, and then the performance was fine.

I enabled the TX/RX Pool configuration setting for the rt8169 driver, no changes in behaviour.

It seems to be a Driver-Problem.

Does someone now the problem, the solution or maybe some workarounds?

ervin
Back to top
View user's profile Send private message
hornet5
n00b
n00b


Joined: 01 Oct 2007
Posts: 4
Location: Warsaw, Poland

PostPosted: Tue Oct 02, 2007 11:00 am    Post subject: Reply with quote

Try to switch to realtek native driver: http://www.realtek.com.tw/downloads
Don't forget to get rid of in-kernel module.
In my case (r8168) it solved poor udp TX performance.

Pawel
Back to top
View user's profile Send private message
MikeP
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 115
Location: Germany

PostPosted: Tue Dec 11, 2007 3:01 pm    Post subject: Reply with quote

This seems to be fixed now, i upgraded to Kernel 2.6.23.9 and both UDP and TCP RX/TX performance is fine with both NICs in GBit mode (although a segment in between is still only 100MBit/s, but that shouldn't matter i guess.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum