Re: Re: [squid-users] Strange High CPU usage

From: Giulio Cervera <giulio.cervera@dont-contact.us>
Date: Fri, 19 Dec 2003 11:05:52 +0100

Duane Wessels ha scritto:

>>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.
>
>
median_select_fds = 3.984375

>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.
>
>
>

half_closed_clients is already off

this is the actually 5min stat :

sample_start_time = 1071827437.3708 (Fri, 19 Dec 2003 09:50:37 GMT)
sample_end_time = 1071827737.11348 (Fri, 19 Dec 2003 09:55:37 GMT)
client_http.requests = 146.539601/sec
client_http.hits = 43.662221/sec
client_http.errors = 0.006666/sec
client_http.kbytes_in = 90.097706/sec
client_http.kbytes_out = 1206.619271/sec
client_http.all_median_svc_time = 0.092188 seconds
client_http.miss_median_svc_time = 0.127833 seconds
client_http.nm_median_svc_time = 0.011645 seconds
client_http.nh_median_svc_time = 0.167753 seconds
client_http.hit_median_svc_time = 0.023168 seconds
server.all.requests = 107.887252/sec
server.all.errors = 0.000000/sec
server.all.kbytes_in = 1004.031097/sec
server.all.kbytes_out = 78.504667/sec
server.http.requests = 104.694000/sec
server.http.errors = 0.000000/sec
server.http.kbytes_in = 931.439613/sec
server.http.kbytes_out = 67.644944/sec
server.ftp.requests = 0.000000/sec
server.ftp.errors = 0.000000/sec
server.ftp.kbytes_in = 0.000000/sec
server.ftp.kbytes_out = 0.000000/sec
server.other.requests = 3.193252/sec
server.other.errors = 0.000000/sec
server.other.kbytes_in = 72.594818/sec
server.other.kbytes_out = 10.859723/sec
icp.pkts_sent = 153.342762/sec
icp.pkts_recv = 152.362786/sec
icp.queries_sent = 75.238084/sec
icp.replies_sent = 78.104678/sec
icp.queries_recv = 78.104678/sec
icp.replies_recv = 74.258109/sec
icp.replies_queued = 0.000000/sec
icp.query_timeouts = 0.543319/sec
icp.kbytes_sent = 13.262996/sec
icp.kbytes_recv = 13.189664/sec
icp.q_kbytes_sent = 6.676497/sec
icp.r_kbytes_sent = 6.586499/sec
icp.q_kbytes_recv = 6.893158/sec
icp.r_kbytes_recv = 6.296506/sec
icp.query_median_svc_time = 0.007296 seconds
icp.reply_median_svc_time = 0.000000 seconds
dns.median_svc_time = 0.005733 seconds
unlink.requests = 0.000000/sec
page_faults = 0.000000/sec
select_loops = 280.262863/sec
select_fds = 1502.051748/sec
average_select_fd_period = 0.000660/fd
median_select_fds = 3.984375
swap.outs = 15.922928/sec
swap.ins = 38.489020/sec
swap.files_cleaned = 0.006666/sec
aborted_requests = 13.556321/sec
syscalls.polls = 419.062661/sec
syscalls.disk.opens = 54.431947/sec
syscalls.disk.closes = 54.411948/sec
syscalls.disk.reads = 77.951348/sec
syscalls.disk.writes = 153.126100/sec
syscalls.disk.seeks = 0.000000/sec
syscalls.disk.unlinks = 16.652909/sec
syscalls.sock.accepts = 62.735069/sec
syscalls.sock.sockets = 66.334977/sec
syscalls.sock.connects = 65.908322/sec
syscalls.sock.binds = 66.134982/sec
syscalls.sock.closes = 100.097451/sec
syscalls.sock.reads = 777.553532/sec
syscalls.sock.writes = 767.850445/sec
syscalls.sock.recvfroms = 353.044342/sec
syscalls.sock.sendtos = 244.583771/sec
cpu_time = 297.944000 seconds
wall_time = 300.007640 seconds
cpu_usage = 99.312138%

-- 
*Giulio Cervera*
EDS PA SpA
Via Atanasio Soldati 80
00155 Roma (Italy)
tel: +39 06 22739 270
fax: +39 06 22739 233
e-mail: giulio.cervera@edspa.it <mailto:giulio.cervera@edspa.it>
Received on Fri Dec 19 2003 - 03:05:42 MST

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