Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo is slower than XP with same gigabit network card.
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
will_k
n00b
n00b


Joined: 08 Jan 2004
Posts: 13

PostPosted: Thu Jan 08, 2004 11:32 am    Post subject: Gentoo is slower than XP with same gigabit network card. Reply with quote

I'm hoping my title will rouse a few people who may be able to help.

I have 1 redhat 9, 1 Gentoo, and 2 WinXP boxes. All have intel 1000 mt pro network cards connected through a Trendnet gigabit switch. But I'm experienceing really slow speeds to and from the linux boxes not just with samba, but apache and ftp as well.

Test Results
***samba***
XP --to> and <from-- XP = 24mb/sec (700mb in 30sec)
XP --to> SAMBA = 5.8mb/sec (700mb in 120sec)
SAMBA --to> XP = 12.7mb/sec (700mb in 55sec)

results same with webclient off and qos off

***apache***

downloads at 13.5mb/sec

***vsftp***

13.7/mb/sec


Aren't these 100/baseT speeds?

e1000 is loaded as a module on both linux boxes

and ethtool produces this:

ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: d
Link detected: yes

Any expert suggestions?
Oh -- All cables are cat5
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Thu Jan 08, 2004 3:57 pm    Post subject: Reply with quote

tried from linux to linux? windows have some strange problems here, wont work proper together with my linux box's, and it IS definetly windows thats the blocker
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Thu Jan 08, 2004 4:14 pm    Post subject: Reply with quote

Maybe you should raise tcp read/write window sizes? The default values might be too small in gigabit networks.

The tunable values can be found from

Code:

/proc/sys/net/core/rmem_default
/proc/sys/net/core/rmem_max
/proc/sys/net/core/wmem_default
/proc/sys/net/core/wmem_max
/proc/sys/net/ipv4/tcp_rmem
/proc/sys/net/ipv4/tcp_wmem

_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Jan 08, 2004 4:30 pm    Post subject: Reply with quote

Another idea is to test using a network testing utility instead of smb/ftp. If you test using smb/ftp then you're also testing the filesystem performance.
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Thu Jan 08, 2004 4:33 pm    Post subject: Re: Gentoo is slower than XP with same gigabit network card. Reply with quote

Can you do a test using ttcp?
Just checked and it's in portage.

the windows one is here I think:
http://www.pcausa.com/Utilities/pcattcp.htm

From *nix to *nix you do:
on one do
Code:
ttcp -r -s


and then on the other
Code:
ttcp -t -s othermachinename


Will be similar windows -> windows, windows -> linux, etc.

Also:
Can you have a look at the MTU settings in the driver in windows and say what they are, and are you on a gigibit only network?
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Thu Jan 08, 2004 4:34 pm    Post subject: Reply with quote

Janne Pikkarainen wrote:

Maybe you should raise tcp read/write window sizes? The default values might be too small in gigabit networks.


They are supposed to be self tunable now. I think it was more of an issue in the 2.2 days.
Back to top
View user's profile Send private message
will_k
n00b
n00b


Joined: 08 Jan 2004
Posts: 13

PostPosted: Thu Jan 08, 2004 6:44 pm    Post subject: Reply with quote

Great, more tools to work with. ttcp pretty much reveals the same results as the ftp and http tests:

ttcp -t -s 192.168.1.2
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 192.168.1.2
ttcp-t: socket
ttcp-t: connect
ttcp-t: 16777216 bytes in 1.26 real seconds = 13021.26 KB/sec +++
ttcp-t: 2048 I/O calls, msec/call = 0.63, calls/sec = 1627.66
ttcp-t: 0.0user 0.8sys 0:01real 68% 0i+0d 0maxrss 1+2pf 0+0csw


Looks like about 13mb/sec as expected.

The files systems should be fine. All machines are pretty recent ranging from 1ghz to 2.6ghz processors...etc. Ultra dma HDs. Rehat with ext3, Gentoo with reiserfs. XP ntfs obviously...1 with stripe raid. No partition is fuller than 60%.

I don't know where my issue lies. Cabling? (they're cat5) nothing seems to be a suspicious culprit of the slow speeds. I acheive these speeds with my old 100mbit/sec cards.

Thanks for the good posts so far... informative.

Will
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Thu Jan 08, 2004 7:23 pm    Post subject: Reply with quote

will_k wrote:

Great, more tools to work with. ttcp pretty much reveals the same results as the ftp and http tests:


Rules out application problems.

will_k wrote:

The files systems should be fine.


They won't effect ttcp results.

will_k wrote:

Looks like about 13mb/sec as expected.


What's the network setup - ie crossover cable - hubs - switches?

Does
Code:
dmesg
show any errors?

Also does
Code:
ifconfig eth0
show errors happened?
Back to top
View user's profile Send private message
7dave7
n00b
n00b


Joined: 21 Sep 2003
Posts: 12

PostPosted: Thu Jan 08, 2004 11:42 pm    Post subject: Reply with quote

Do a "modinfo e1000", if e1000 is the correct name of the module, and see if there are any options that you could pass when insmod'ing e1000 to increase performance.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Jan 09, 2004 10:49 am    Post subject: Reply with quote

Also, what does mii-diag give you?
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Jan 09, 2004 11:44 am    Post subject: Reply with quote

Have a look at this post. Maybe try a different kernel?
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