Slow gigabit network transfers on Ubuntu 12.10

Associate
Joined
28 Oct 2002
Posts
1,510
Hi
I just installed gigabit PCI network cards on a win7 PC and a Ubuntu 12.10 PC - the card worked out of the box for both (card was a TP-LINK TG3269).

I transferred some files from my main PC (win 7) to the new win 7 PC and was getting a transfer speed of about 85 - is this right for gigabit speeds?

I then transferred some files from my main win7 PC to the new Ubuntu 12.10 PC but the transfer speeds were only about 25.

Any reason why this may be?
Is it possible to get faster speeds into the Ubuntu PC and if so how?

Some more info provided below:

=============================================
eth2 Link encap:Ethernet HWaddr 64:70:02:10:3c:3e
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6670:2ff:fe10:3c3e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1959962 errors:0 dropped:0 overruns:0 frame:0
TX packets:916795 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2916026303 (2.9 GB) TX bytes:64205789 (64.2 MB)


Settings for eth2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes

=========================================

thanks

diss
 
How fast are the disks on the ubuntu box ?

hdparm -tT /dev/sd[a-f]

/dev/sda:
Timing cached reads: 18236 MB in 2.00 seconds = 9125.90 MB/sec
Timing buffered disk reads: 304 MB in 3.01 seconds = 101.14 MB/sec

/dev/sdb:
Timing cached reads: 18396 MB in 2.00 seconds = 9206.55 MB/sec
Timing buffered disk reads: 364 MB in 3.01 seconds = 121.12 MB/sec

/dev/sdc:
Timing cached reads: 17738 MB in 2.00 seconds = 8877.15 MB/sec
Timing buffered disk reads: 288 MB in 3.01 seconds = 95.79 MB/sec

/dev/sdd:
Timing cached reads: 14560 MB in 2.00 seconds = 7287.01 MB/sec
Timing buffered disk reads: 286 MB in 3.01 seconds = 95.15 MB/sec


I think its sdd i am transferring to (it was doing a transfer as i ran this)
 
Looks good.

Try running iperf on all the machines in question. Get the mtu the same on all machines say the default 1500, don't worry about jumbo frames at the moment

iperf -s (run iperf server on machine A)
iperf -c ipaddrofmachine A (run iperf on client)

Check the speed it's transferring at. You can run iperf on Windows too ;)

EDIT: BTW you're not running a raid device on the ubuntu box are you ? If so please check its speed
 
Last edited:
Not running RAID but the Ubuntu PC is a server box with NAS connection of the HDs to the mobo.

Just booted up both PCs and on the Ubuntu PC i ran iperf but not sure how its supposed to work - this is all i got
iperf -s

I did some more transfers from the Ubuntu PC and got only 2.0 mb/s copying a file FROM win7 but 38 mb/s copying TOO the win7 PC

just thought that maybe you meant for both commands to be running whilst doing the transfers, however when i ran iperf on win7(64bit) it wouldn't run and gave error "iperf not recognised as an internal or external command

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
 
*bump* Well I never..... Google brought me here !

@Diss did you ever resolve your problem ? I had auto-negotiation problems with my oboard nic so ended up disabling it and grabbing that new card off the shelf that was never used.

Turns out it's a TG3269 just like yours LOL Anyway threw it in and the default Ubuntu drivers again had auto-negotiation problems so I compiled and installed the Realtek one which gave me gigabit.

However iperf is reporting speeds of around 300mbps up 660mbps down , my previous speeds with the onboard were approaching 800mbs in both directions.

The only thing I can think of is that I'm running(stuck with) a PAE kernel and 6gig of RAM which may be the cause of the problem
 
Last edited:
sorry, never did sort it

Thanks for the update :D

Looks like the internet has given up on this so it's my problem now. I just remembered why on earth didn't I use the card from my old server which worked great under Linux but I think it was a Realtek too. :confused:

Strange.... I'll get to the bottom of this next week. Options include booting from 32/64bit live CDs / trying the old card / removing RAM / removing the overclock.

Cheers
 
Little bit of an update for you.

Booted from the live cd (60bit 12.04.03 LTS) and am getting ~700mbs up and down on the realtek card. Re-enabled the onboard lan and that is getting 940mbs down and 750 up

Same old drivers but the kernel is 3.8 as opposed to 3.2 previously. I may have also had some odd hacks within /etc so a fresh install is in order anyway

All the best
 
Back
Top Bottom