Re: [squid-users] Strange High CPU usage

This is a discussion on Re: [squid-users] Strange High CPU usage within the Squid Users forums, part of the Web Server and Related Forums category; > and actually configuration: > > cache_mem 64 MB > cache_swap_low 85 > cache_swap_high 90 > maximum_object_size 65536 KB > ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2003
Duane Wessels
 
Posts: n/a
Default Re: [squid-users] Strange High CPU usage

> 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/Vi...select.day.cgi

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

Duane W.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0