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 |
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. |
Quote:
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 |
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?
|
I've merged two similar threads.
|
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. |