Re: [squid-users] High CPU usage and degraded service time after 2 weeks of activity

From: Adrian Chadd <adrian_at_creative.net.au>
Date: Tue, 17 Jun 2008 08:51:54 +0800

On Mon, Jun 16, 2008, Anthony Tonns wrote:

> CentOS is Linux ;-) so I will look into getting oprofile setup in our
> sandbox environment and hammering away as a first step.

Ok.

> Also, what do you consider "lots" of regex rules? I have about 20 or so
> rules that match on req_header with a regex of .* (i.e. does this header
> exist) and then around 150 lines in some files that match Via and
> User-Agent headers.

That might qualify as a lot.

> A quick search for "squid gnumalloc regex", etc. etc. didn't yield too
> many useful results. Can you clue me into the problems (and solutions!)
> you're referring to? Is it gnumalloc or the regex that is the problem?
> Is dlmalloc the solution?

The problem was gnumalloc + gnuregex + time == fail.

The solution was Google malloc; but I'd really suggest you hook up oprofile
first to see where the CPU is going before you try another malloc.
No, dlmalloc isn't the solution. :)

Adrian

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Tue Jun 17 2008 - 00:48:37 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 17 2008 - 12:00:03 MDT