View previous topic :: View next topic |
Author |
Message |
will_k n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/135812775740cab1cd27f8a.jpg)
Joined: 08 Jan 2004 Posts: 13
|
Posted: Thu Jan 08, 2004 11:32 am Post subject: Gentoo is slower than XP with same gigabit network card. |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Redeeman l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/117688223440573d81a4402.jpg)
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Thu Jan 08, 2004 3:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Janne Pikkarainen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10433783463f526aba4144d.jpg)
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Thu Jan 08, 2004 4:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Thu Jan 08, 2004 4:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Thu Jan 08, 2004 4:33 pm Post subject: Re: Gentoo is slower than XP with same gigabit network card. |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Thu Jan 08, 2004 4:34 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
will_k n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/135812775740cab1cd27f8a.jpg)
Joined: 08 Jan 2004 Posts: 13
|
Posted: Thu Jan 08, 2004 6:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Thu Jan 08, 2004 7:23 pm Post subject: |
|
|
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 show any errors?
Also does show errors happened? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
7dave7 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Sep 2003 Posts: 12
|
Posted: Thu Jan 08, 2004 11:42 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Jan 09, 2004 10:49 am Post subject: |
|
|
Also, what does mii-diag give you? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Jan 09, 2004 11:44 am Post subject: |
|
|
Have a look at this post. Maybe try a different kernel? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|