LinuxQuestions.org
Help answer threads with 0 replies.
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 06-16-2008, 07:46 PM   #1
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Thumbs down Internet speed less than half in linux compared to windoz ??!!!


I'm facing this rather frustrating problem !

The internet connection I've subscribed for is a 10Mbps connection. Testing it with speedtest.net in windoz gives me a download speed of over 7300 kbps while it is less than 3500 kbps !! Same goes for upload speed !

I've tried to look into 'ps' and 'netstat' outputs and haven't been able to pin point the cause for this annoying show stopper.

Here's ps output for those who're interested :
Quote:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 1760 576 ? Ss 18:33 0:00 init [5]
root 2 0.0 0.0 0 0 ? S< 18:33 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 18:33 0:00 [posix_cpu_timer]
root 4 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-high/0]
root 5 0.4 0.0 0 0 ? S< 18:33 0:03 [softirq-timer/0]
root 6 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-net-tx/]
root 7 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-net-rx/]
root 8 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-block/0]
root 9 0.3 0.0 0 0 ? S< 18:33 0:02 [softirq-tasklet]
root 10 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-sched/0]
root 11 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-hrtimer]
root 12 0.0 0.0 0 0 ? S< 18:33 0:00 [softirq-rcu/0]
root 13 0.0 0.0 0 0 ? S< 18:33 0:00 [desched/0]
root 14 0.0 0.0 0 0 ? S< 18:33 0:00 [events/0]
root 15 0.0 0.0 0 0 ? S< 18:33 0:00 [khelper]
root 59 0.0 0.0 0 0 ? S< 18:33 0:00 [kblockd/0]
root 62 0.0 0.0 0 0 ? S< 18:33 0:00 [kacpid]
root 63 0.0 0.0 0 0 ? S< 18:33 0:00 [kacpi_notify]
root 64 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-9]
root 140 0.0 0.0 0 0 ? S< 18:33 0:00 [cqueue/0]
root 145 0.0 0.0 0 0 ? S< 18:33 0:00 [kseriod]
root 178 0.0 0.0 0 0 ? S< 18:33 0:00 [krcupreemptd]
root 179 0.0 0.0 0 0 ? S 18:33 0:00 [pdflush]
root 180 0.0 0.0 0 0 ? S 18:33 0:00 [pdflush]
root 181 0.0 0.0 0 0 ? S< 18:33 0:00 [kswapd0]
root 182 0.0 0.0 0 0 ? S< 18:33 0:00 [aio/0]
root 183 0.0 0.0 0 0 ? S< 18:33 0:00 [xfslogd/0]
root 184 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsdatad/0]
root 185 0.0 0.0 0 0 ? S< 18:33 0:00 [xfs_mru_cache]
root 787 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-8]
root 821 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-12]
root 822 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-1]
root 828 0.0 0.0 0 0 ? S< 18:33 0:00 [kpsmoused]
root 834 0.0 0.0 0 0 ? S< 18:33 0:00 [kondemand/0]
root 1655 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-14]
root 1693 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-15]
root 1708 0.0 0.0 0 0 ? S< 18:33 0:00 [khpsbpkt]
root 1716 0.0 0.0 0 0 ? S< 18:33 0:00 [ata/0]
root 1718 0.0 0.0 0 0 ? S< 18:33 0:00 [ata_aux]
root 1742 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsbufd]
root 1744 0.0 0.0 0 0 ? S< 18:33 0:00 [xfssyncd]
root 1786 0.4 0.0 0 0 ? S< 18:33 0:02 [IRQ-11]
root 1795 0.0 0.0 1972 616 ? S<s 18:33 0:00 /sbin/udevd --daemon
root 2106 0.0 0.0 0 0 ? S< 18:33 0:00 [ksuspend_usbd]
root 2107 0.0 0.0 0 0 ? S< 18:33 0:00 [khubd]
root 2113 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-10]
root 2826 0.0 0.0 0 0 ? S< 18:33 0:00 [scsi_eh_0]
root 2828 0.0 0.0 0 0 ? S< 18:33 0:00 [usb-storage]
root 2866 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsbufd]
root 2867 0.0 0.0 0 0 ? S< 18:33 0:00 [xfssyncd]
root 2868 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsbufd]
root 2869 0.0 0.0 0 0 ? S< 18:33 0:00 [xfssyncd]
root 2870 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsbufd]
root 2871 0.0 0.0 0 0 ? S< 18:33 0:00 [xfssyncd]
root 2872 0.0 0.0 0 0 ? S< 18:33 0:00 [xfsbufd]
root 2878 0.0 0.0 0 0 ? S< 18:33 0:00 [xfssyncd]
root 2890 0.0 0.0 0 0 ? S< 18:33 0:00 [reiserfs/0]
root 3077 0.0 0.0 1804 596 ? SNs 18:33 0:00 syslogd -m 0
root 3080 0.0 0.2 3300 2132 ? SNs 18:33 0:00 klogd
root 3087 0.0 0.0 3160 652 ? SN 18:33 0:00 /sbin/smartd -l local3
18 3098 0.0 0.0 2232 752 ? SNs 18:33 0:00 /usr/bin/dbus-daemon --system
root 3198 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-6]
root 3207 0.0 0.0 1924 260 ? Ss 18:33 0:00 /sbin/dhcpcd eth0
19 3225 0.0 0.4 5204 3176 ? SNs 18:33 0:00 /usr/sbin/hald --use-syslog
root 3226 0.0 0.1 3268 1036 ? SN 18:33 0:00 hald-runner
19 3240 0.0 0.1 2036 820 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event6
19 3241 0.0 0.1 2036 824 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event4
root 3244 0.0 0.0 0 0 ? S< 18:33 0:00 [IRQ-3]
19 3247 0.0 0.1 2036 824 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event0
19 3248 0.0 0.1 2036 820 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event1
19 3251 0.0 0.1 2036 820 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event2
19 3252 0.0 0.1 2036 820 ? SN 18:33 0:00 hald-addon-keyboard: listening on /dev/input/event3
root 3254 0.0 0.1 3328 1108 ? SN 18:33 0:00 /usr/lib/hal/hald-addon-cpufreq
19 3255 0.0 0.1 2032 832 ? SN 18:33 0:00 /usr/lib/hal/hald-addon-acpi
root 3271 0.0 0.1 3316 996 ? SN 18:33 0:00 hald-addon-storage: polling /dev/hdc (every 2 sec)
root 3295 0.0 0.0 1776 300 ? SNs 18:33 0:00 /sbin/resmgrd
root 3329 0.0 0.0 3436 740 ? SNs 18:33 0:00 kdm
root 3337 5.5 3.0 27932 23332 tty7 DNLs+ 18:33 0:36 /usr/X11/bin/X :0 vt7 -auth /var/run/xauth/A:0-UOlIaT
root 3338 0.0 0.0 2092 580 ? SNs 18:33 0:00 /usr/sbin/fcron
root 3362 0.0 0.0 1908 744 ? Ss 18:33 0:00 /sbin/automount -p /var/run/autofs.media.pid --timeout 600 -g
root 3374 0.0 0.1 3832 1396 ? SN 18:33 0:00 -:0
root 3426 0.0 0.2 7532 1876 ? SNs 18:33 0:00 /usr/lib/postfix/master
root 3428 0.0 0.1 2504 1112 tty1 Ss 18:33 0:00 login -f
root 3430 0.0 0.0 1756 556 tty2 Ss+ 18:33 0:00 /sbin/agetty tty2 9600
root 3431 0.0 0.0 1756 556 tty3 Ss+ 18:33 0:00 /sbin/agetty tty3 9600
root 3432 0.0 0.0 1756 556 tty4 Ss+ 18:33 0:00 /sbin/agetty tty4 9600
root 3433 0.0 0.0 1756 556 tty5 Ss+ 18:33 0:00 /sbin/agetty tty5 9600
root 3434 0.0 0.0 1756 556 tty6 Ss+ 18:33 0:00 /sbin/agetty tty6 9600
postfix 3448 0.0 0.2 7660 1928 ? SN 18:33 0:00 qmgr -l -t fifo -u
root 3449 0.0 0.2 5140 1912 tty1 S+ 18:33 0:00 -bash
kevin 3475 0.0 0.2 5372 1556 ? SNs 18:33 0:00 /bin/sh /usr/bin/startkde
kevin 3540 0.0 0.0 2240 428 ? SNs 18:33 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --
root 3645 0.0 0.0 1620 180 ? SN 18:34 0:00 start_kdeinit --new-startup +kcminit_startup
kevin 3646 0.0 1.9 36416 14912 ? SNs 18:34 0:00 kdeinit Running...
kevin 3649 0.0 1.3 35760 10212 ? SN 18:34 0:00 dcopserver [kdeinit] --nosid
kevin 3653 0.0 2.0 38084 15772 ? SN 18:34 0:00 klauncher [kdeinit] --new-startup
kevin 3655 0.1 2.7 44164 21636 ? SN 18:34 0:00 kded [kdeinit] --new-startup
kevin 3664 0.0 0.0 1756 404 ? SN 18:34 0:00 kwrapper ksmserver
kevin 3666 0.0 2.2 37396 17312 ? SN 18:34 0:00 ksmserver [kdeinit]
kevin 3668 0.1 2.5 40520 20132 ? SN 18:34 0:00 kwin [kdeinit] -session 10d4d2766b000120631155500000045290
kevin 3670 0.0 2.2 37444 17216 ? SN 18:34 0:00 knotify [kdeinit]
kevin 3671 0.2 0.1 3252 1244 ? SNs 18:34 0:01 kompmgr
kevin 3674 0.2 3.1 43364 24180 ? SN 18:34 0:01 kdesktop [kdeinit]
kevin 3677 0.1 2.9 44456 23152 ? SN 18:34 0:01 kicker [kdeinit]
kevin 3679 0.0 1.8 36532 14656 ? SN 18:34 0:00 kio_file [kdeinit] file /var/tmp/ksocket-kevin/klauncherhX
kevin 3712 0.0 2.2 37456 17184 ? SN 18:34 0:00 kaccess [kdeinit]
kevin 3717 0.0 2.7 41516 21664 ? SN 18:34 0:00 kmix [kdeinit] -session 10d4d2766b000120632851800000045290
kevin 3718 0.0 3.4 50248 26536 ? SN 18:34 0:00 konqueror [kdeinit] --preload
kevin 3721 0.0 2.5 40808 19924 ? SN 18:34 0:00 kpowersave [kdeinit]
kevin 3723 0.0 2.4 41020 19124 ? SN 18:34 0:00 klipper [kdeinit]
kevin 3753 0.0 0.2 5108 1564 ? SN 18:34 0:00 /bin/sh /usr/bin/firefox
kevin 3757 0.0 0.2 5108 1576 ? SN 18:34 0:00 /bin/sh /usr/lib/firefox-2.0.0.9/run-mozilla.sh /usr/lib/firef
kevin 3762 43.6 11.5 208272 89108 ? RNl 18:34 4:19 /usr/lib/firefox-2.0.0.9/firefox-bin
postfix 3818 0.0 0.2 7608 1888 ? SN 18:38 0:00 pickup -l -t fifo -u
kevin 3834 10.2 2.7 43404 21644 ? RN 18:44 0:00 konsole [kdeinit] --real-transparency
kevin 3835 5.5 0.2 5536 2016 pts/0 SNs 18:44 0:00 /bin/bash
kevin 3860 0.0 0.1 4300 920 pts/0 RN+ 18:44 0:00 ps aux
Here's the output of 'netsta -ta' :

Quote:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN

I can't think of anything else or where to look !

Any help ?
 
Old 06-16-2008, 08:05 PM   #2
freeman_4520032
LQ Newbie
 
Registered: May 2008
Posts: 19

Rep: Reputation: 0
Hmmm...

I've heard that Vista uses a new TCP/IP stack that works well if your running Vista, XP SP3 or Server 2008 but, not well if your running XP SP2, Apple, or Linux. Does your windows computer use one of the first operating systems. If so maybe your router has switched to this new TCP/IP stack... Also it could be the driver for your card isn't as efficient as it is in windows. I'll look around and see if I can find any fixes for this problem but, give me the info on your windows system pls.

Chris H.
 
Old 06-16-2008, 09:22 PM   #3
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Original Poster
Rep: Reputation: 32
Thanks very much for the reply, Chris.

I'm running Win XP SP2.

I do not have a router installed. My laptop is directly connected to a DSL Modem.

I've always suspected the IRQ sharing to be the problem. I've had problems with other devices like audio/video chips which perform really well under windoz but not in linux. I've always thought that there's a short coming in the way linux handles the interrupts.

Attepmting to trouble shoot the above mentioned problem (audio/video), I patched the kernel with real time code and voila ! The problem just vanished. Now, the audio chip perform a lot better than in windoz with virtually no hick ups !! The video chip performance is very close to that of windoz but, windoz kinda beats linux when it comes to that.

The problem with internet speed is really annoying as there was a time, probably about a year back, when the network speed was lot better in linux compared to windoz, yet the difference wasn't so significant as it is now !! Probably, a kernel upgrade changed IRQ handling in some way that is affecting my network speed. I've been facing this and other (trivial) problems since 2.6.23.*. Currently I'm on 2.6.24.3.

The onboard ethernet chip is ULi M5261 which uses uli526x kernel module. As it is apparent from the kernel log, it is configured as 100Mbps full duplex interface. I've checked the IRQ, Mem range, I/O range and found them to be the same as under windoz. So, I've hit a dead end.

Any ideas ?

Thanks again.
 
Old 06-17-2008, 01:20 PM   #4
coontie
Member
 
Registered: Jun 2003
Distribution: Fedora Core 5
Posts: 100

Rep: Reputation: 15
could also be ipv6. Turn that off and try again, I had that problem in one of the older Fedoras.
 
Old 06-18-2008, 09:41 PM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Original Poster
Rep: Reputation: 32
I don't use ipv6. I have double checked just to make sure that I don't !

Any ideas ?
 
Old 06-21-2008, 01:53 PM   #6
freeman_4520032
LQ Newbie
 
Registered: May 2008
Posts: 19

Rep: Reputation: 0
ipv6

Does your modem use ipv6? Maybe you need ipv6. Give me some time to search for other possible solutions but, take a look and see if that will work.

Chris H.

-----
p.s. what's your mobo manufacturer and model #?

Last edited by freeman_4520032; 06-21-2008 at 02:17 PM. Reason: more info
 
Old 06-23-2008, 06:29 AM   #7
TaigaIV
LQ Newbie
 
Registered: Jun 2008
Distribution: debian gentoo
Posts: 9

Rep: Reputation: 0
Can you test without flash, maybe problem is here. For example try a download with wget.


m.e.
 
Old 06-23-2008, 09:35 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
if you view the output of ifconfig do you see any errors listed in the network interface stats ?

I have a couple AMD64 machines and both were giving me issues with the network connection, tons of errors causing retransmissions etc.. I threw intel NICs into both boxes and they work perfectly now, no errors, no Internet slow downs. Maybe when I feel motivated I'll go back and look at the integrated NIC to see why they are so screwy.

The interface stats is the first thing I would suggest look at.
 
Old 07-20-2008, 07:53 PM   #9
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Original Poster
Rep: Reputation: 32
Sorry for the late reply, guys ! I was on vacation and nearly forgot linuxquestions.org !!

Thanks for the responses.

Here's the output of ifconfig
Quote:
eth0 Link encap:Ethernet HWaddr 00:03:9D:71:24:86
inet addr:96.52.47.151 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:3662314 errors:0 dropped:0 overruns:0 frame:0
TX packets:2881444 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1584439319 (1511.0 Mb) TX bytes:445925361 (425.2 Mb)
Interrupt:6 Base address:0x9c00
I've tried downloading linux kernel from kernel.org with wget and found the download speed to be 531K/s.

How do I know if my cable modem is using ipv6 or ipv4 ??

-Kevin
 
Old 07-20-2008, 08:53 PM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
This is not an IPv6 issue. The symptoms of IPv6-related problems are typically slow web browsing due to waiting for IPv6 time-outs when an IPv6 address is found for a particular site, or unpredictable responses to DNS queries for IPv6 addresses. Once a connection is established (like a speed test), you wouldn't have those problems.

Throughput issues are most likely related to a badly-written driver.

It looks like a couple years ago the uli526x was split out from the generic Tulip-clone driver and ownership of that new driver was taken by the company itself. Perhaps their engineers have not been diligent in keeping their driver in sync with kernel changes?

Any way, the most practical suggestion is probably to try a stand-alone PCI(-e/-x) card rather than the built-in. Intel cards typically perform very well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SATA running at half-speed starmonche Linux - Hardware 5 03-24-2008 08:55 AM
Why does Linux half my internet speed? Jongi Linux - Networking 4 08-09-2007 09:00 AM
Proc runs at half speed HeLLWiZerD Ubuntu 4 12-20-2006 11:27 PM
LG dvd-/+rw only burn's at half speed tomj88 Linux - Hardware 7 09-13-2005 12:20 AM
Half Speed ? How do i fix this ? Reefcrazed Linux - Laptop and Netbook 10 07-26-2004 03:27 PM

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

All times are GMT -5. The time now is 03:07 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