Re: [squid-users] Strange High CPU usage

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 18 Dec 2003 13:10:02 -0700 (MST)

> and actually configuration:
>
> cache_mem 64 MB
> cache_swap_low 85
> cache_swap_high 90
> maximum_object_size 65536 KB
> maximum_object_size_in_memory 24 KB
> cache_replacement_policy heap LFUDA
> memory_replacement_policy heap GDSF
> cache_dir diskd /var/cache/spool/0 28000 96 256 Q1=72 Q2=64
> cache_dir diskd /var/cache/spool/1 28000 96 256 Q1=72 Q2=64
> cache_dir diskd /var/cache/spool/2 28000 96 256 Q1=72 Q2=64
> memory_pools_limit 50 MB
> cache_access_log /var/cache/log/access.log
> cache_log /var/cache/log/cache.log
> buffered_logs on
>
> Squid sames to work fine, but cpu usage after ~60Req/Sec on each server
> is always 100%
> I have tried many changes to squid.conf with no results.

Probably the first thing to look at is whether or not the high CPU
problem comes from select/poll looping very quickly. For example:

        % squidclient mgr:5min | grep -i select
        select_loops = 72.180305/sec
        select_fds = 19.528906/sec
        average_select_fd_period = 0.007477/fd
        median_select_fds = 0.000000

I think "median_select_fds" is essentially broken and always returns 0.

I plot the values for my caches, which you can see here:
http://www.ircache.net/Statistics/Vitals/rrd/cgi/select.day.cgi

You might want to add 'half_closed_clients off' to your config file
and see if that helps.

Duane W.
Received on Thu Dec 18 2003 - 13:10:02 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:17 MST