LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   squid is very slow (https://www.linuxquestions.org/questions/linux-server-73/squid-is-very-slow-677288/)

finsh 10-18-2008 06:24 AM

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

duryodhan 10-18-2008 08:53 AM

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.

custangro 10-18-2008 11:02 AM

Quote:

Originally Posted by finsh (Post 3314375)
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

salasi 10-18-2008 02:18 PM

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?

reddazz 10-18-2008 07:15 PM

I've merged two similar threads.

finsh 10-19-2008 03:50 AM

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


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