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 09-20-2004, 09:55 AM   #1
Roach
Member
 
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37

Rep: Reputation: 15
Slow Squid or ISP?


Hi All

I've recently installed a 128K fibre-link to my ISP. In Zimbabwe, we are limited to 64K outgoing requests - set by the government, can't help that, but our incoming requests are unlimited.

I've just set up my Squid as per recommendations from other threads, but my Internet is still like syrup.

Here's my Squid.conf

Code:
http_port 8080
cache_effective_user squid
cache_effective_group squid
icp_port 0
log_icp_queries off
cache_access_log /var/log/squid/access
cache_log /var/log/squid/log
cache_store_log none
debug_options ALL,1
buffered_logs on
emulate_httpd_log on
maximum_object_size 4096 KB
cache_mem 16 MB
cache_dir ufs /usr/local/squid/cache 200 16 256
ftp_user ftp@
forwarded_for off
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
acl QUERY urlpath_regex cgi-bin \?
acl website dst 192.168.1.5/32
acl PHP url_regex .php?
no_cache deny website
no_cache deny QUERY
no_cache deny PHP
acl Safe_ports port 80 21 443 563 591 70 210 1025-65535
acl manager proto cache_object
acl all src 0.0.0.0/0.0.0.0
acl allowed_hosts src 192.168.2.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow allowed_hosts
http_access deny all
cache_mgr roach@nerdshack.com
append_domain .uoregon.edu
Anyone got any ideas on how I can speed up my browsing, mail etc....

Thanks in Advance

R :-)

the manual!!
 
Old 09-20-2004, 01:45 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
First, how is the speed when surfing from the squid machine (not going through the proxy)? Second, to really see the speed increases due to Squid, it will take some time (depending on # of users and how much surfing takes place) for the cache to build up. How many users are you setting this up for? It makes a big difference on how you set up the cache.
 
Old 09-21-2004, 02:00 AM   #3
Roach
Member
 
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37

Original Poster
Rep: Reputation: 15
Pcghost

Was half hoping you'd reply - most of my networking issues are solved by you!! (no favouritism intended!!!!)

If I surf from my router, without the squid, the speed is quite good. I agree about the more the cache builds up, and my speeds are fair/good from my router direct. How does my .conf file look? Any suggestions?

I have 12 users.

Thanks for your reply.

R
 
Old 09-21-2004, 04:31 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
It looks good from my end. Why use http-style log files? I like to keep them in the default Squid format so Sarg and Squint can process them.

When you say you are limited to 64K outbound, you mean upstream right? Meaning if you upload files somewhere on the web, that is your max bandwidth? That still should not be a problem with only 12 users, provided no one is abusing your connection (ie Peer-to-Peer). Normal web page requests are very small.

What are the specs of the Squid machine (Processor, Memory, etc)? When the system is under a normal load, what does 'top' tell you about processor and memory usage?

Edit: And thanks for the vote of confidence. :-)

Last edited by Pcghost; 09-21-2004 at 04:51 PM.
 
Old 09-22-2004, 07:03 AM   #5
Roach
Member
 
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37

Original Poster
Rep: Reputation: 15
Yup, I mean't upstream.

Looking at my 'top' I could use a little bit more memory. (Only using 128Mb in my Squid Machine)

My ISP phoned today, to apologise for their slow speeds, and say they're upgrading their Satellite link.

Will see if things improve from there.

Anytime on the vote of confidence!!

R :-)
 
Old 09-22-2004, 01:28 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
128MB is a bit low for a Squid server. I would stick another 128 or better in it if you can. I run ours with 512MB, but then again it supports 147 people. Hard drive speed can also effect Squid performance, but not as much as low memory in my opinion. I would let the ISP work out their difficulties before putting to much effort into tuning Squid. That way you are sure you have a decent connection as a baseline.
 
Old 09-22-2004, 03:11 PM   #7
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
With your current cache_dir and cache_mem settings, you'll need approximately 38MB of DEDICATED RAM for squid to work efficiently. Now factor in the amount of RAM the OS actually consumes (you're not running X11 on this box, are you?), plus the other services on the box, and see if you've gone over your system's total physical RAM. If the squid box starts to swap-out, then squid will grind to a crawl.
 
  


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
squid slow response ilnli Linux - Software 10 10-17-2006 12:56 AM
Squid and 3 isp :) xrtc Linux - Networking 0 11-20-2005 08:12 AM
Squid setup for ISP how-to? crocks21 Linux - Networking 1 05-25-2005 12:19 AM
intel 536EP random connection speed to ISP (<10% 45333 bps, mostly often slow 33000) Emmanuel_uk Linux - Newbie 10 05-16-2005 02:14 AM
Slow Squid after upgrade TechnoBod Linux - Networking 0 02-09-2004 05:29 PM

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

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