LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2008, 10:51 AM   #1
dejan.b
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Very Slow Network Transfer


Hi,

I recently installed Ubuntu Server 8.04 on DELL PowerEdge Server. It works fine, except that the transfer rate is around 2,000 kbytes/s and then sometime it drops to a crawl: 250kbytes/s. So, I tried various things and in the end I changed the network card. The first few seconds was great, more than 9000kbytes/s but then the transfer dropped to around 2500kbytes/s. All the tests were done with only my PC connected to that server. The transfer starts OK with > 9500 but then I can see it kind of "chokes" and it drops down.

I thought that the transfer speed has something to do with UDMA.

hdparm shows:

Code:
# hdparm /dev/sda

/dev/sda:
 IO_support    =  0 (default) 
16-bit)
 HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
 HDIO_GET_DMA failed: Inappropriate ioctl for device
 HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
 readonly      =  0 (off)
 readahead     = 256 (on)
 geometry      = 60801/255/63, sectors = 976773168, start = 0
So, I can't set DMA mode, I browsed the internet on this "Inappropriate ioctl for device" and I haven't found a solution

If that's the problem then the speed of my drive is very low. The speed test shows:

Code:
# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   786 MB in  2.00 seconds = 392.32 MB/sec
 Timing buffered disk reads:  150 MB in  3.01 seconds =  49.85 MB/sec
That seems OK since the newer server is about %20 faster.

Now, I'm not sure how to handle this. What is causing the packets to be dropped? How can I see what is going on here? mii-diag says everything is fine. Here is the output of lshw -C network:

Code:
# lshw -C network
  *-network               
       description: Ethernet interface
       product: 82541PI Gigabit Ethernet Controller
       vendor: Intel Corporation
       physical id: 4
       bus info: pci@0000:00:04.0
       logical name: eth0
       version: 05
       serial: 00:1b:21:24:e8:35
       size: 1GB/s
       capacity: 1GB/s
       width: 32 bits
       clock: 66MHz
       capabilities: pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.20-k2-NAPI duplex=full firmware=N/A ip=10.0.1.233 latency=32 link=yes mingnt=255 module=e1000 multicast=yes port=twisted pair speed=1GB/s

I thing I have a network problem not DMA problem but what to do?

Thanks,

Dejan
 
Old 10-15-2008, 07:34 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
These symptoms are typical of duplex mismatch. Its worth checking that both interfaces are coming up as Full Duplex
 
Old 10-15-2008, 08:04 AM   #3
dejan.b
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your answer.

I set the speed of CISCO switch to 100M, but the problem is still there.

mii-tool on the servers says:

eth0: negotiated 100baseTx-FD, link ok

Dejan
 
Old 10-17-2008, 05:01 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
You MUST have both ends of a 100BaseT segment set as auto, or all ports hard configured with matching duplex, otherwise you WILL get a duplex mismatch.

Based on IEEE 802.3u, it is not possible to manually configure one link partner for 100 Mbps, full-duplex and still autonegotiate to full-duplex with the other link partner. If you attempt to configure one link partner for 100 Mbps, full-duplex and the other link partner for autonegotiation, it results in a duplex mismatch. This is because one link partner autonegotiates and does not see any autonegotiation parameters from the other link partner and defaults to half-duplex.

Approximately half off the "network performance issues" that get escalated me are due to duplex-mismatch.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba: slow network transfer drkshadow Linux - Networking 3 09-12-2004 10:19 AM
Excessively slow network transfer speeds from XP to Linux… MooGLEX Linux - Networking 1 07-04-2004 01:13 AM
very-very slow transfer fineass Linux - Networking 5 05-10-2004 08:50 AM
VERY slow transfer rate.. dkc_ace *BSD 2 03-24-2004 09:11 PM
Transfer from XP to Linux slow Coolrunr Linux - Networking 3 08-30-2003 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration