[squid-users] High CPU

From: Scott Phalen <scott@dont-contact.us>
Date: Thu, 22 Jul 2004 07:57:01 -0500

I have searched the archives and can't seem to find a solution to my issue.
My server sits at 92% or higher for CPU utilization 24 hours a day. During
my peek hours it is at 99% with a load of about 35 requests per second. My
plan is to convert this to reiserfs in the next month and spread the cache
over both disks instead of using RAID0.

I am using a Dell PowerEdge 650 P4 3.0Ghz processor
2 - 145Gig 15K RPM hard disks - striped
2 Gig RAM
Linux 2.1AS
Squid-2.5STABLE6

In my squid.conf I have only 4 "regex" statements (seen in archives that 20+
can cause issues). Many thanks to anyone who can look at this and possibly
solve my issue!

Below is my squid.conf minus the ACLs and cachemgr info:

cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 128 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 0
ipcache_low 90
ipcache_high 95
fqdncache_size 0
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir diskd /big/squid/var/cache 13000 16 256
cache_access_log /big/squid/var/logs/access.log
cache_store_log none
log_ip_on_direct on
mime_table /big/squid/etc/mime.conf
log_fqdn off
client_netmask 255.255.255.255
diskd_program /big/squid/libexec/diskd
unlinkd_program /big/squid/libexec/unlinkd
request_header_max_size 10 KB
request_body_max_size 0 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 0 KB
quick_abort_max 0 KB
range_offset_limit 0 KB
negative_ttl 30 seconds
connect_timeout 2 minutes
peer_connect_timeout 30 seconds
half_closed_clients off
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
logfile_rotate 5
memory_pools on
memory_pools_limit 100 MB
forwarded_for off
store_avg_object_size 13 KB
store_objects_per_bucket 20
client_db on
wccp_router 172.17.1.1
wccp_version 4
coredump_dir /big/squid/var/cache

Squid Object Cache: Version 2.5.STABLE6
Start Time: Thu, 22 Jul 2004 11:34:38 GMT
Current Time: Thu, 22 Jul 2004 12:50:53 GMT
Connection information for squid:
        Number of clients accessing cache: 284
        Number of HTTP requests received: 58354
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Request failure ratio: 0.00
        Average HTTP requests per minute since start: 765.4
        Average ICP messages per minute since start: 0.0
        Select loop called: 188047689 times, 0.024 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 53.1%, 60min: 59.1%
        Byte Hit Ratios: 5min: 47.9%, 60min: 26.5%
        Request Memory Hit Ratios: 5min: 3.9%, 60min: 1.8%
        Request Disk Hit Ratios: 5min: 35.7%, 60min: 22.6%
        Storage Swap size: 11980796 KB
        Storage Mem size: 18396 KB
        Mean Object Size: 12.75 KB
        Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.01745 0.00091
        Cache Misses: 0.15048 0.14252
        Cache Hits: 0.00091 0.00091
        Near Hits: 0.10281 0.10281
        Not-Modified Replies: 0.00000 0.00000
        DNS Lookups: 0.00091 0.00091
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 4574.613 seconds
        CPU Time: 4456.430 seconds
        CPU Usage: 97.42%
        CPU Usage, 5 minute avg: 99.82%
        CPU Usage, 60 minute avg: 99.65%
        Process Data Segment Size via sbrk(): 114795 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 474
Memory usage for squid via mallinfo():
        Total space in arena: 114795 KB
        Ordinary blocks: 114774 KB 59 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 2108 KB 6 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 21 KB
        Total in use: 116882 KB 100%
        Total free: 21 KB 0%
        Total size: 116903 KB
Memory accounted for:
        Total accounted: 93135 KB
        memPoolAlloc calls: 200223317
        memPoolFree calls: 197304376
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 154
        Number of file desc currently in use: 132
        Files queued for open: 0
        Available number of file descriptors: 892
        Reserved number of file descriptors: 100
        Store Disk files open: 0
Internal Data Structures:
        940096 StoreEntries
          4179 StoreEntries with MemObjects
          4171 Hot Object Cache Items
        939946 on-disk objects

Regards,
Scott
Received on Thu Jul 22 2004 - 06:57:02 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:02 MDT