LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-18-2008, 07:24 AM   #1
finsh
Member
 
Registered: Jan 2006
Posts: 157

Rep: Reputation: 16
squid is very slow


Hi all

When i run the squid service is slow internet browser on network.


Is it because I have a large number of users.


Regards
 
Old 10-18-2008, 09:53 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
please don't make 2 threads


please give more info, check your cpu utilisation, the number of network requests that squid is processing per sec ( I don't know how to check, a google should help )

and finally there is only so much a given processor with a given speed can do .. you can optimise google for help on optimising squid and improving caching behaviour etc.
 
Old 10-18-2008, 12:02 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by finsh View Post
Hi all

When i run the squid service is slow internet browser on network.


Is it because I have a large number of users.
I have had similar problems...I have over 500 users and I got similar complaints...


The problem is that squid is single threaded...there is no support for multiprocessors; even if you have 8 CPUs squid will only utilize one, and as I read; the squid developers are in to rush to code that in...

The way that _I_ resolved it is that I took 4 physical machines and created a virtual machine (using xen) in each one of them (giving me 4 virutal machines).

I used rsync to keep the /etc/squid/squid.conf file the same; and then used round-robbin DNS to "load balance" them.

On the clients browser I connected them via the DNS name (FYI...you should NEVER use ip addresses...it will work...but it's a headache when you make any changes). This way; the load is being distributed among 4 virtual machines...and if you ever need more...just add one more virtual machine...add the IP in the DNS pool...and viola!

-C
 
Old 10-18-2008, 03:18 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,916

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
I think you'll have to provide some information: is squid using a lot of processor time? memory? Is it getting close to the memory limits you have established when configuring it? Is name resolution occuring quickly? how many users? How much network bandwidth are you paying for? Are you getting it?
 
Old 10-18-2008, 08:15 PM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I've merged two similar threads.
 
Old 10-19-2008, 04:50 AM   #6
finsh
Member
 
Registered: Jan 2006
Posts: 157

Original Poster
Rep: Reputation: 16
I have 100 users and cach mmory in squid.conf 64kb and disk 512mb

And this is my squid.conf

http://rapidshare.com/files/155429940/squid.conf.html
 
  


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 is very slow finsh Linux - Server 1 10-18-2008 08:15 PM
squid slow browsing Ammad Linux - Networking 2 10-23-2007 01:46 AM
squid slow response ilnli Linux - Software 10 10-17-2006 12:56 AM
Slow internet thru squid kayodea Linux - Networking 2 04-26-2006 05:56 AM
Slow Squid after upgrade TechnoBod Linux - Networking 0 02-09-2004 05:29 PM


All times are GMT -5. The time now is 03:36 PM.

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