RE: [squid-users] Sporadic high CPU usage, no traffic

From: Chris Robertson <crobertson@dont-contact.us>
Date: Tue, 2 Nov 2004 10:56:28 -0900

> On Mon, 1 Nov 2004, Chris Robertson wrote:
>
>> 2004/11/01 11:32:55| cbdataUnlock: Freeing 0x83ef270
>> 2004/11/01 11:33:08| eventRun: RUN ID 1342
>>
>> This is really killing me. Is it the eventRun that is causing the stall,
is
>> it breaking the stall, or is it completely unrelated?
>
> Probably unrelated.
>
> Does strace reveal any activity during the strange hickups?
>
> You can also try running Squid under the control of a debugger (i.e. gdb)
> and break it while it is stuck (Control-C). This should show you
> where/what it is doing at the time.
>
> Regards
> Henrik

Thanks for the tip. Using gdb was exactly what I needed (I've never used it
before, neat). I was using two url_regex acls, and the regular expressions
I was using seem to be the problem. Removing those two lines dropped CPU
usage from a low of %50 to a HIGH of 10%. Yikes. Off to optimize them.

Once again Henrik, you are a savior.

Chris
Received on Tue Nov 02 2004 - 22:45:59 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST