Dear All,

Kindly help me out in determining why our squid server is very slow. It is running on RHEL AS 4

here is cache manager info


HTTP/1.0 200 OK
Server: squid/2.6.STABLE12
Date: Thu, 18 Oct 2007 11:24:27 GMT
Content-Type: text/plain
Expires: Thu, 18 Oct 2007 11:24:27 GMT
Last-Modified: Thu, 18 Oct 2007 11:24:27 GMT
X-Cache: MISS from dakcproxy02
X-Cache-Lookup: MISS from dakcproxy02:8080
Via: 1.0 dakcproxy02:8080 (squid/2.6.STABLE12)
Proxy-Connection: close

Squid Object Cache: Version 2.6.STABLE12
Start Time: Thu, 11 Oct 2007 06:40:09 GMT
Current Time: Thu, 18 Oct 2007 11:24:27 GMT
Connection information for squid:
Number of clients accessing cache: 1570
Number of HTTP requests received: 13215185
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: 1275.1
Average ICP messages per minute since start: 0.0
Select loop called: 126169010 times, 4.929 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 26.4%, 60min: 27.0%
Byte Hit Ratios: 5min: 9.2%, 60min: 12.4%
Request Memory Hit Ratios: 5min: 28.8%, 60min: 31.4%
Request Disk Hit Ratios: 5min: 10.7%, 60min: 8.3%
Storage Swap size: 7372840 KB
Storage Mem size: 2048160 KB
Mean Object Size: 6.38 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 5.06039 4.79440
Cache Misses: 7.38455 8.68295
Cache Hits: 1.11539 1.71839
Near Hits: 7.38455 10.20961
Not-Modified Replies: 1.00114 1.31166
DNS Lookups: 1.96483 2.34641
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 621858.161 seconds
CPU Time: 378515.631 seconds
CPU Usage: 60.87%
CPU Usage, 5 minute avg: 99.36%
CPU Usage, 60 minute avg: 99.30%
Process Data Segment Size via sbrk(): -1481864 KB
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
Total space in arena: -1481864 KB
Ordinary blocks: -1501241 KB 80255 blks
Small blocks: 0 KB 0 blks
Holding blocks: 17068 KB 11 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 19377 KB
Total in use: -1484173 KB 101%
Total free: 19377 KB 0%
Total size: -1464796 KB
Memory accounted for:
Total accounted: 2440064 KB
memPoolAlloc calls: 1613649791
memPoolFree calls: 1603519499
File descriptor usage for squid:
Maximum number of file descriptors: 32768
Largest file desc currently in use: 1233
Number of file desc currently in use: 913
Files queued for open: 0
Available number of file descriptors: 31855
Reserved number of file descriptors: 100
Store Disk files open: 29
IO loop method: epoll
Internal Data Structures:
1172095 StoreEntries
342307 StoreEntries with MemObjects
342115 Hot Object Cache Items
1156253 on-disk objects


Cache log :


om/wrapper/aceUAC.js', 'accept-encoding="gzip,deflate"'/'gzip,deflate'
2007/10/18 17:00:33| storeLocateVary: Not our vary marker object, AFF8265A87C4425EB04308CF6328264C = 'http://uac.advertising.c
om/wrapper/aceUAC.js', 'accept-encoding="gzip,deflate"'/'gzip,deflate'
2007/10/18 17:00:49| storeLocateVary: Not our vary marker object, AFF8265A87C4425EB04308CF6328264C = 'http://uac.advertising.c
om/wrapper/aceUAC.js', 'accept-encoding="gzip,deflate"'/'gzip,deflate'
2007/10/18 17:01:43| storeLocateVary: Not our vary marker object, AFF8265A87C4425EB04308CF6328264C = 'http://uac.advertising.c
om/wrapper/aceUAC.js', 'accept-encoding="gzip,deflate"'/'gzip,deflate'
2007/10/18 17:02:03| storeLocateVary: Not our vary marker object, AFF8265A87C4425EB04308CF6328264C = 'http://uac.advertising.c
om/wrapper/aceUAC.js', 'accept-encoding="gzip,deflate"'/'gzip,deflate'
2007/10/18 17:02:42| httpReadReply: Excess data from "GET http://75.126.77.27/index.php?q=aHR0...RyYWRlLm1vbmV5
Y29udHJvbC5jb20vcGx1c19uZXcvY3NzL3N0eWxlLmNzcw%3D% 3D"
2007/10/18 17:02:59| httpReadReply: Excess data from "GET http://75.126.77.27/index.php?q=aHR0...RyYWRlLm1vbmV5
Y29udHJvbC5jb20vcGx1cy90cmFkZXIvaW5kZXgucGhw"
2007/10/18 17:03:51| urlParse: Illegal hostname '.update.toolbar.yahoo.com'
2007/10/18 17:03:56| parseHttpRequest: Unsupported method '^E^ACONNECT'
2007/10/18 17:03:56| clientReadRequest: FD 494 (10.8.162.65:3168) Invalid Request
2007/10/18 17:03:58| httpReadReply: Excess data from "GET http://75.126.77.27/index.php?q=aHR0...RyYWRlLm1vbmV5
Y29udHJvbC5jb20vcGx1cy9jc3Mvc3R5bGUuY3Nz"
2007/10/18 17:04:22| parseHttpRequest: Unsupported method '^E^ACONNECT'
2007/10/18 17:04:22| clientReadRequest: FD 455 (10.8.81.111:3743) Invalid Request
2007/10/18 17:06:01| CACHEMGR: <unknown>@10.8.53.59 requesting 'info'
2007/10/18 17:06:13| httpReadReply: Excess data from "GET http://img1.adjuggler.com/banners/ajtg.js"
2007/10/18 17:06:31| parseHttpRequest: Unsupported method '^E^ACONNECT'
2007/10/18 17:06:31| clientReadRequest: FD 580 (10.8.188.226:1724) Invalid Request
2007/10/18 17:07:48| storeLocateVary: Not our vary marker object, 13AC25A3CE5FB588B06BAFCDDE541279 = 'http://l.yimg.com/us.js.
yimg.com/lib/bc/bcr_2.0.4.js', 'accept-encoding'/'-'
2007/10/18 17:09:19| storeLocateVary: Not our vary marker object, 9D7DA92765C57DA6B183E255B5D90E17 = 'http://d2.zedo.com/jsc/d
2/fo.js', 'accept-encoding'/'-'
2007/10/18 17:10:11| urlParse: Illegal character in hostname 'www.http%3a'
2007/10/18 17:11:43| parseHttpRequest: Unsupported method '^E^ACONNECT'
2007/10/18 17:11:43| clientReadRequest: FD 566 (10.8.144.66:2076) Invalid Request
2007/10/18 17:12:01| CACHEMGR: <unknown>@10.8.53.59 requesting 'info'
2007/10/18 17:13:19| clientReadRequest: FD 137 (10.8.171.166:35260) Invalid Request
2007/10/18 17:13:35| clientReadRequest: FD 412 (10.8.171.166:35283) Invalid Request
2007/10/18 17:13:53| clientReadRequest: FD 559 (10.8.171.166:35313) Invalid Request
2007/10/18 17:15:09| parseHttpRequest: Unsupported method '^E^ACONNECT'
2007/10/18 17:15:09| clientReadRequest: FD 81 (10.8.180.51:2884) Invalid Request



Squid.conf

http_port server_ip:8080
cache_peer 127.0.0.1 parent 8081 3130 no-query connect-timeout=1000
# Trend Micro IWSS is running on 127.0.0.1:8081

no-digest
hierarchy_stoplist cgi-bin ?
cache deny QUERY
broken_vary_encoding allow apache
cache_mem 2000 MB
maximum_object_size 32768 KB
maximum_object_size_in_memory 512 KB
fqdncache_size 8192
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF
cache_dir aufs /cache01 8000 18 256
access_log /logs/squid/access.log
cache_log /logs/squid/cache.log
cache_store_log none
emulate_httpd_log on
pid_filename /usr/local/squid/var/logs/squid.pid
ftp_list_width 80
ftp_passive on
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
positive_dns_ttl 5 minutes
half_closed_clients off
http_reply_access allow all
icp_access allow all
cache_effective_user squid
visible_hostname proxy02
logfile_rotate 5

coredump_dir /usr/local/squid/var/cache



TOP output:


top - 17:24:59 up 114 days, 4:12, 2 users, load average: 2.03, 2.06, 2.23
Tasks: 169 total, 3 running, 166 sleeping, 0 stopped, 0 zombie
Cpu(s): 33.3% us, 18.5% sy, 0.0% ni, 45.5% id, 2.6% wa, 0.1% hi, 0.0% si
Mem: 16312708k total, 13572452k used, 2740256k free, 264996k buffers
Swap: 2096472k total, 136k used, 2096336k free, 8820444k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8687 squid 25 0 2677m 2.6g 1524 R 99.9 16.7 6338:28 squid
8690 squid 16 0 2912 264 212 S 0.0 0.0 0:00.00 unlinkd


Kindly suggest where can I improvise the server performance.