Solved

Gigabit ethernet slow performance

Posted on 2008-09-29
22
1,225 Views
Last Modified: 2013-11-15
Hello,

I'm trying to setup a NAS box and i'm experiecing slow performance. Here is my setup

Dell 2950 running debian etch attached to a 24port Gigabit HP Procurve Switch
PC Quad Core phenom with Ubuntu 8.04 attach to the same switch with on board pcie lan adapter (Realtek 8111/8168B)
I was using cat5e patch cords but change them to cat6 just in case.

Using iperf i get a throughput of 936-940Mbits/sec. This being very close or confirming the theoretical 1000Mbits/sec.

I've also tried Ixia testesting software giving me simular results.

When i do a file transfer, 700MB iso file, i get about 28-30 MB/sec. I say that this is a least half of what i was expecting. What is max MB/sec that someone could get? What should i check or change so i can have decent file transfers.

I measured the file transfer using ftp (2 programs) and rcp.

Thank you
Teo



0
Comment
Question by:temmelv
22 Comments
 

Author Comment

by:temmelv
Comment Utility
Also i forgot to mention the hard disk performance.

hdparam -Tt shows
Timing buffered disk reads
88MB/sec on the Dell and
70MB/sec on the pc


Thank you.
Teo
0
 
LVL 27

Accepted Solution

by:
pseudocyber earned 250 total points
Comment Utility
Take a look at your HP switch ports - any errors?  If so, check duplex.
0
 

Author Comment

by:temmelv
Comment Utility
I will, but if i had errors would i be getting 940Mbtis/sec throughput?

0
 
LVL 27

Assisted Solution

by:pseudocyber
pseudocyber earned 250 total points
Comment Utility
Possibly.  Duplex mismatch REALLY shows up when doing large file transfers.  Much less when doing "small" testing - such as ping, etc.  As Windows sizes increase there's a much greater impact with frame corruption and TCP retransmission.
0
 

Author Comment

by:temmelv
Comment Utility
Both ports are defined 1000FDx

I ran the test a couple of times. No errors.

I got 29MB/sec the first time and 43MB/sec the second time. I guess it is cached.

I did a copy then on new file (400mb rar file) and it gave me 32MB/sec. No errors.

0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
Hmm. the no errors means you don't have an ethernet problem.  For the heck of it, try setting both the NIC, Switch, and NAS to Autonegotiate.
0
 

Author Comment

by:temmelv
Comment Utility
How do i set Autonegotiate. The switch port configuration options are 2

1. Mode (10, 100FDx, Auto, Auto-10,Auto-100,Auto-1000)  and
2. flow control (Disable, Enable). Disable is set.



0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
Auto-1000
0
 

Author Comment

by:temmelv
Comment Utility
Can you tell me what transfer rates are you experiencing or what a very good transfer rate is?

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
No not really.  I'm a network guy, not a storage (NAS) guy.  However, if you get 80% of the maximum theoretical throughput with Ethernet, you're doing pretty well.  But it depends on a lot of factors - the interfaces, the cabling, environmental, machine - cpu, memory, disk I/O, etc.

Also different protocols will give you different throuput - because the protocol itself occupies a portion of your throughput.

However, I calculated yours out, based on your numbers, and you're getting around 250Mbps.  I would expect higher.
0
 

Author Comment

by:temmelv
Comment Utility
Well i tried Auto-1000. Rebooted both machines.

I got 27,9MB/sec. I then set Auto to both ports rebooted. I got 26,8MB/sec. This is a small difference, i consider this the same.

If i execute again the copy in both situations i get 49,8/sec.
0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
Yeah, I agree.  However, it helps you in that it sort of "clears" the network - so now you can pursue other avenues. :)
0
 

Author Comment

by:temmelv
Comment Utility
It seems it's not the network.

I rebooted both machines i did the copy the opposite way. From the Dell 2950 to the pc with a single SATA II driver.

I got 46,5MB/sec. I did this test twice rebooting both machines.

So it has to do with the write performance of the drives. Even though 46,5MB/sec is really crappy performance for a SATA II drive.

I also executed again the copy command giving me the exact same rate as i had in the first place with the pc copying to the dell, that is 49,8MB/sec. So this is cached, but why is it limiting to 49,8MB/sec?
0
 
LVL 19

Expert Comment

by:jools
Comment Utility
You may need to check what network modules are being used, sometimes linux *may* pick the wrong one. There may also be some configurable options for them as well. Use modinfo to help here.

Also, mii-tool or ethtool will let you know speed/duplex settings and allow you to change them on the host
0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
I think points should be split - but I don't understand you're giving points to the author?

I did a fair amount of troubleshooting showing that it's NOT "gigabit ethernet slow performance".  I think it should count for something.

Thanks,

PC
0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
Edit - points to the questioner.
0
 

Author Comment

by:temmelv
Comment Utility
Post ID's
22594999
22595016

Author:pseudocyber

Thank you
0
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
Thanks.
0
 
LVL 44

Expert Comment

by:Darr247
Comment Utility
Have you tried disabling flow control on either end?
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now