Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-20-2004, 09:55 AM
|
#1
|
Member
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37
Rep:
|
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!!
|
|
|
09-20-2004, 01:45 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
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.
|
|
|
09-21-2004, 02:00 AM
|
#3
|
Member
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37
Original Poster
Rep:
|
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
|
|
|
09-21-2004, 04:31 PM
|
#4
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
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.
|
|
|
09-22-2004, 07:03 AM
|
#5
|
Member
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37
Original Poster
Rep:
|
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 :-)
|
|
|
09-22-2004, 01:28 PM
|
#6
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
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.
|
|
|
09-22-2004, 03:11 PM
|
#7
|
Member
Registered: Jan 2003
Posts: 217
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|