LinuxQuestions.org
Visit Jeremy's Blog.
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 11-10-2005, 01:01 PM   #1
Vinter
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Rep: Reputation: 19
Linux Debian Router and Server very slow


Hello folks,

currently, I am having a little problem with my local net here.
In short, there is a Debian Stable (Pentium III 1GHz, 256mb RAM) server providing FTP, SSH, AUTH, POP3 and SMTP over Spamassassin to both the local net and the outside world, and DHCP, DNS and time to the local net. Also, he updates two dynamic hostnames every few minutes if necessary. He is connected to the net over a Debian Stable router (Pentium II 233mhz, 64mb RAM) running an iptables firewall and NAT / port forwards through the same.
The connection is Telekom DSL2000, a German ADSL line providing 2048kbit downstream and 128kbit upstream. There are no constant speed breakers such as eMule or similiar running.
They both are serving a net of 4 clients. Not necessary to put up such a system for that, I know, but I will soon begin my university IT studies and, although my direction is different, I want to learn the basics about networking while I am still at home.

Well, having said that, as far as the system itself is concerned in a technical way, everything runs fine. Everything is updated constantly and so far I have not run into problems. But there comes the user, which is me among others, and complains about the speed.

At some times, an address would take up to 10 seconds to resolve, and common webpages (Sourceforge or even Google, for instance) take up to 20 seconds to load. Even text mail takes 30 seconds to send, as every command the server sends to the smarthost takes some 5 seconds to be acked. This is becoming worse and worse since I set up the system, which was in the beginning of August, and starts to suck.

This is quite strange, as both the servar and the router are around 2% constant CPU usage and don't do any swapping. IOW, they don't have much to do. The only exception is a mail arriving, Spamassassin takes heaps of memory on the server.
From what I see, downloading lots of small files (like images) and sending lots of requests to servers is what makes the speed worst; I can get 256kbps downloads without a problem on a fast FTP server, but looking at the networking chart of my gkrellm, when HTTP or similiar low-data protocols are concerned, the speed goes up to maybe 100kbps for thenths of seconds, and goes back to zero for maybe half a second or one. Of course, performance sucks this way, especially if researching for school, I am very slow and frustrated quickly.

Unfortunatley, there are barely any error messages in my logs, which means I cannot do any adequate googleing. Tried some, but the results are so varied that I can't use any of them.
Hope the gurus here can maybe help me, as far as this is possible from such a short description. Maybe, a kind of benchmark would help, or even a "tuning guide" for a local net

Thanks in advance,
David
 
Old 11-11-2005, 02:42 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
What network cards + drivers are in use, and what firewall rules do you have in place? What nameservers are in use and what kind of response times are you getting from pinging them, or resolving domain names from the command line? Are they resolving (simply using nslookup) as slowly as from a browser or e-mail client?
 
Old 11-17-2005, 04:35 AM   #3
Vinter
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Original Poster
Rep: Reputation: 19
Mea Culpa, sorry for comsuming your time, but thank you very much for answering, fouldsy!
It was the point that I should have checked first after noticing that the speed was perfect from the server and getting worse from the clients - one of the switches' uplink seems to be broken... Router and server use one, and the clients do the same, thus the bad performance, leaving me at 80 kbps of 2048 available at last. Just switchung Uplink -> 1 and 1 -> Uplink connection solved it.

ZOOM! Everything's so fast now

Thanks a lot,
David
 
  


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
linux slow behind linksys router pfunk Linux - Networking 8 02-28-2005 06:43 PM
Slow Linux router problem e88z4 Linux - Networking 3 01-03-2005 03:14 PM
Simple Debian Router including a DHCP Server stormblast Debian 20 09-22-2004 05:11 AM
slow Gigafast EE400-R router in linux Ringfinger Linux - Networking 2 05-12-2004 08:38 AM
dl speeds slow behind linux router guggenheim Linux - Networking 3 03-25-2004 02:52 PM

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

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