[squid-users] high cpu usage

From: Pat Lendon <plendon@dont-contact.us>
Date: Mon, 18 Mar 2002 17:05:49 +0000

Hello All,

Randomly, the cpu usage on system shows squid at 99%. The cache log does not
contain any information at the time cpu was pegged. I copied the cache manager log.
We are running Squid 2.4.STABLE4 on RedHat Linux. This is a brand new system with two
AMD Athlon(tm)MP 1800+ processors and 1gig memory. Any ideas on cause of cpu at 99%?
Is the cache causing high cpu usage. I noticed the page faults with physical i/o
at 402. Is this a concern?

Thank you in advance.

Connection information for squid:

Number of clients accessing cache: 238

Number of HTTP requests received: 3063389

Number of ICP messages received: 0

Number of ICP messages sent: 0

Number of queued ICP replies: 0

Request failure ratio: 0.00%

HTTP requests per minute: 275.0

ICP messages per minute: 0.0

Select loop called: 546252462 times, 1.223 ms avg

Cache information for squid:

Request Hit Ratios: 5min: 55.9%, 60min: 39.1%

Byte Hit Ratios: 5min: 10.3%, 60min: 13.7%

Request Memory Hit Ratios: 5min: 0.2%, 60min: 0.8%

Request Disk Hit Ratios: 5min: 19.2%, 60min: 29.7%

Storage Swap size: 1887432 KB

Storage Mem size: 8124 KB

Mean Object Size: 10.75 KB

Requests given to unlinkd: 672128

Median Service Times (seconds) 5 min 60 min:

HTTP Requests (All): 0.03622 0.22004

Cache Misses: 0.37825 0.37825

Cache Hits: 0.00091 0.00678

Near Hits: 0.23230 0.24524

Not-Modified Replies: 0.00000 0.00179

DNS Lookups: 0.02231 0.01609

ICP Queries: 0.00000 0.00000

Resource usage for squid:

UP Time: 668338.918 seconds

CPU Time: 34809.600 seconds

CPU Usage: 5.21%

CPU Usage, 5 minute avg: 62.27%

CPU Usage, 60 minute avg: 30.79%

Maximum Resident Size: 0 KB

Page faults with physical i/o: 402

Memory usage for squid via mallinfo():

Total space in arena: 46330 KB

Ordinary blocks: 33129 KB 2137 blks

Small blocks: 0 KB 0 blks

Holding blocks: 176 KB 1 blks

Free Small blocks: 0 KB

Free Ordinary blocks: 13201 KB

Total in use: 33305 KB 72%

Total free: 13201 KB 28%

Memory accounted for:

Total accounted: 25934 KB

memPoolAlloc calls: 407299936

memPoolFree calls: 406731557

File descriptor usage for squid:

Maximum number of file descriptors: 1024

Largest file desc currently in use: 163

Number of file desc currently in use: 93

Files queued for open: 0

Available number of file descriptors: 931

Reserved number of file descriptors: 100

Store Disk files open: 5

Internal Data Structures:

        175631 StoreEntries
          1716 StoreEntries with MemObjects
          1704 Hot Object Cache Items
        175549 on-disk objects

------------------------------------------------------------------------
Generated Mon, 18 Mar 2002 21:53:18 GMT, by
cachemgr.cgi/2.4.STABLE2@sysadm.microcenter.com
Received on Mon Mar 18 2002 - 15:06:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:58 MST