Re: [squid-users] Squid high CPU usage issue

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 23 Feb 2007 15:26:22 +0800

On Thu, Feb 22, 2007, Chris Rosset wrote:
> I am using squid-2.5.STABLE6 and running into a very high CPU usage
> problem
> "top" shows almost 100% usage well it's a dual cpu box but shows 48% so
> it's almost maxed on one cpu.
> I've read various threads on the mailing list but cant figure out what
> i should do in my case,
> multiple disks, use aufs instead of ufs ?

Hm, I'd suggest upgrading to Squid-2.6 but I don't think anyone's written a
Squid-2.6 Solaris /dev/poll or similar support.

That'll probably drop your CPU down quite a bit.

How many requests per second on average during the busy parts of the day?

> - using 2 mirrored disks and 1 cache dir.
> - I am using the default cache_dir value
> cache_dir ufs /var/data/squid/cache 100 16 256

I'd definitely suggest moving to AUFS.

> - I have about 2 or 3 ACL lists that are under 1k lines
> and one acl that has 8192 lines, mostly for denied sites.

Hm! That might also be increasing the load.

> I was about to install two instances of squid and run both with two
> different IP's the server is configured with
> and use http_port x.x.x.x:3128 for the first and http_port x.x.x.x:
> 3129 for the second squid to hopefully split the load between
> them, Please let me know if you have any other reccomendations to
> increase performance. Thanks!

That might also help in the interim. Squid isn't yet really built to take
advantage of multiple CPUs but this will change in time.

So, who wants to beat me to writing a Solaris devpoll/epoll implementation?
It shouldn't be hard, honest!

Would you be willing to trial something if I write a simple Solaris /dev/poll
against Squid-2.6?

Adrian
Received on Fri Feb 23 2007 - 00:18:40 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST