LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-09-2006, 03:32 PM   #1
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
Network speed changes dramatically when using 2.6.18.1/2


Hi,

I have been using slackware as my proxy/router/mailserver for years and it always worked fine.
So after some complains about ftp not working in all occasions I decided to upgrade Squid (the proxy part). And of course while I was at it, a new kernel. I originally used 2.6.12_rc3, I tested (some time back) 2.6.15.6, but last week I went to 2.6.18.1. And to make it complete I included gcc 4.1.1.

Compiled the kernel. Compiled gcc, cp the includes to /usr/include, recompiled everything, Compiled squid, compiled the vmxnet driver module (Yes it's vmware).
It went great!

but. :-(.....

While web complete pages came in like sunshine on a summers day, large picture went really slow.

So I checked using a direct download:
wget from speedtest.bbned.nl/download/file32mb.bin
Result: Speed: 10K/s. (Over a 12mb adsl line!)

Changed back to the netwerk driver that is included in the kernel: AMD pcnet32.ko.
Same result.

I placed the file on a http server in the lan.
Result: 10.2mBps (full 100mb speed).

But when opening a page like video.google.com
Result: < 1sec for the whole page.

Check with ethereal. I just go's slow. No trouble or something, just. Slow.

So after TWO very irritated day's I booted from 2.6.15.6
It when like sunshine.
Wget gave me 700K/s. (to slow for a 12mb adsl, but the cisco needs an upgrade)

It is just the change in the kernel. What did I miss?

Does anybody have any idea? I have managed for year just answering question on boards like this, but now I am really really stuck.
 
Old 11-09-2006, 09:45 PM   #2
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
Are you using the same kernel .config in 2.6.15 and 2.6.18?

Do you have a gateway device or firewall?
 
Old 11-10-2006, 04:30 AM   #3
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I had to run oldconfig but used all the defaults. To sure that it did not interfere I also had a try with the complete forwarding disabled. Did not chagen a bit.

The cisco that is connected to the ADSL line has a simple firewall, but both times but I had both systems even use the same IP address and the WAN speed changed.
 
Old 11-10-2006, 07:04 AM   #4
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
This is a virtual server running vmware? What version?
 
Old 11-10-2006, 08:11 AM   #5
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
VMWare workstation version: 5.5.2 Build 29772
 
Old 11-10-2006, 02:02 PM   #6
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
1. Is the ethernet adapter being shared between multiple OS's.

2. Can you test it using a different network card?
 
Old 11-10-2006, 03:57 PM   #7
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
The host system uses this card. I have only one card in this system.
I have tried this vm in twee machines (host win xp en Win 2003) and in both cases it gave the same result.

The strange part is that when I download the exact same file from a local http server I get 10MB.
When I download it thrue the proxy I get te max speed.
When I download it using the old kernel, I get the max speed.
FTP or anything else within the local network.. Wire speed.
Only when from the WAN(Internet) whamm down to 10kbps

I is like there is a setting that tell when going over a router or some like that, the system has to ruduce speed. I think that it would even be a setting that makes sense:!
if file > 50KB max speed = xxx.
It would keep your network in a better performance.

But what is the setting, and is there one!!??

Thanks in advance,
This is f..k..g frustrating.

Last edited by kikkervis; 11-10-2006 at 03:58 PM.
 
Old 11-13-2006, 11:15 AM   #8
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
Can you test a different NIC to eliminate the possibility of the kernel driver being the problem?

I'm confused about your statement, "When I download it thrue the proxy I get te max speed."

Would you explain your LAN layout and how this "proxy" is being implemented with only 1 NIC?
What is being passed through squid?

Have you checked your DNS and firewall settings?




I don't think our problems are related.
Strange Ethernet issues connecting to a specific IP

Last edited by granth; 11-13-2006 at 07:15 PM.
 
Old 11-14-2006, 03:11 PM   #9
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
1) Test whith two different nics.
I have tested with two different nic's. The default vmware AMD PCNET, and the VMXNET.
If have run the VM on two different servers. One using a onboard Marvell Yukon 88e8053 gigabit. One using a Intel PRO/1000 GT NIC.

2) Download thrue proxy.
This gives max adsl speed with the 2.6.18.1
Internet <-> Cisco 836 <-> Linux 2.6.13.r5 proxy <-> Linux machine wiht 2.6.18.1

This give only 10K/s with the 2.6.18.1
Internet <-> Cisco 836 <-> Linux 2.6.13.r5 ROUTER <-> Linux machine with 2.6.18.1 kernel

The router/proxy(squid) machine is one but I normaly use the proxy but I can open a port thrue the NAT router that runs on the same machine.

3) Firewall/DNS.
When I boot the 2.6.18.1 machine from a older kernel (2.6.15.6) I get full speed of the adsl line.
DNS. I also get the problem when using a IP address.
Firewall. There is some firewall functionality on the cisco, but not much, and with 2.6.15.6 it works fine.
 
Old 11-16-2006, 11:01 PM   #10
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
Are you using dnsmasq?
 
Old 11-17-2006, 02:14 PM   #11
kikkervis
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Found it!!!

It is the windows scaling.
My cisco or, something else on the Internet does not understand didly of the windows scaling.
The command:
echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
Made an instant end to all missary.

Something for the rc.inet1!


The only other thing to achieve is world peace and all is well


Thanks for all the help!
 
  


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
free disk space decreases dramatically... A.Elkaysh Suse/Novell 2 04-11-2006 06:59 AM
samba slows down system dramatically johannlo Linux - Networking 1 07-08-2005 01:03 PM
Network speed problems on 15 user network to broadband wireless router AntWarrior Linux - Wireless Networking 2 12-02-2004 11:05 AM
System clock slows dramatically under heavy load lb2478 Linux - Hardware 1 05-18-2004 10:55 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration