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

From: Anthony Tonns <atonns_at_promotions.com>
Date: Mon, 16 Jun 2008 15:32:19 -0400

> Are you using lots of regular expression rules?
> Is this under Linux?
>
> The wikipedia guys had a big problem with gnumalloc + regex rules
causing
> Squid to degrade much like how you've said.
>
> You should be able to install the oprofile profiling suite in
Centos/RHEL;
> I suggest doing that (and installing the debugging version of the libc
> package) and then getting some CPU time profiles out when Squid is
running
> normally versus running abnormally. Lodge all of that via bugzilla.
>
> (oprofile (Linux) and hwpmc (FreeBSD) rock.)

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

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.

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?

Thanks,
Tony
Received on Mon Jun 16 2008 - 19:32:18 MDT

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