[SQU] squid tuning... again...

From: Wisnu Wijayanta <wisnu@dont-contact.us>
Date: Tue, 15 Aug 2000 18:24:23 +0700

Fellow squids,

I've installed Squid-2.3S4 from the everynight autogenerated tarball, on a P
III/866 Mhz, 896 MB, and 4*18 GB SCSI-3 disks. Base platform is Linux
2.2.14, gcc 2.91.66, glibc 2.1.3, and I have tuned the TCP/IP parameter
(tcp_fin_timeout, ip_local_port_range, tcp_max_syn_backlog,
tcp_window_scaling, tcp_timestamps, tcp_sack). Squid configured with
dlmalloc, gnuregex, underscores, and heap-replacement (LFUDA). Our main
internet link is 2048 kpbs, and supporting for over than 1000 users.

But, I've noticed that CPU usage is considerably... if not to say very-very
high (80-90 percent), so what's wrong? I tried to patch the source code, and
it says reversed patch applied or something. Below, I have inserted the
general output from the cachemgr. This sever is new, so the statistics still
changed rapidly. Any help appreciated.

Thanks in advance,

=============================
Wisnu Wijayanta
-----------------------------
Internet Systems Analyst,
PT. Astra Graphia Tbk.
Phone: +6221-6522555 ext. 723
Fax : +6221-6520057
INDONESIA
=============================

General Runtime Information:

Cache Manager menu

----------------------------------------------------------------------------

----
Squid Object Cache: Version 2.3.STABLE4
Start Time: Tue, 15 Aug 2000 02:49:22 GMT
Current Time: Tue, 15 Aug 2000 10:22:56 GMT
Connection information for squid:
	Number of clients accessing cache:	1085
	Number of HTTP requests received:	1258646
	Number of ICP messages received:	31780
	Number of ICP messages sent:	31780
	Number of queued ICP replies:	0
	Request failure ratio:	 0.00%
	HTTP requests per minute:	2775.0
	ICP messages per minute:	140.1
	Select loop called: 9926284 times, 2.742 ms avg
Cache information for squid:
	Request Hit Ratios:	5min: 6.3%, 60min: 7.1%
	Byte Hit Ratios:	5min: 58.8%, 60min: 58.0%
	Storage Swap size:	759446 KB
	Storage Mem size:	131064 KB
	Storage Replacement Threshold:	0.000000
	Mean Object Size:	8.52 KB
	Requests given to unlinkd:	19212
Median Service Times (seconds)  5 min    60 min:
	HTTP Requests (All):   0.08265  0.13498
	Cache Misses:          0.08729  0.14252
	Cache Hits:            0.00919  0.00919
	Near Hits:             2.13280  2.37608
	Not-Modified Replies:  0.00767  0.00865
	DNS Lookups:           0.00190  0.00190
	ICP Queries:           0.00000  0.00000
Resource usage for squid:
	UP Time:	27213.589 seconds
	CPU Time:	17905.690 seconds
	CPU Usage:	65.80%
	CPU Usage, 5 minute avg:	91.93%
	CPU Usage, 60 minute avg:	93.74%
	Maximum Resident Size: 0 KB
	Page faults with physical i/o: 36956
Memory usage for squid via mallinfo():
	Total space in arena:  229121 KB
	Ordinary blocks:       179551 KB  23797 blks
	Small blocks:               0 KB      0 blks
	Holding blocks:          1232 KB      4 blks
	Free Small blocks:          0 KB
	Free Ordinary blocks:   49569 KB
	Total in use:          180783 KB 79%
	Total free:             49569 KB 22%
Memory accounted for:
	Total accounted:       160087 KB
File descriptor usage for squid:
	Maximum number of file descriptors:   1024
	Largest file desc currently in use:    662
	Number of file desc currently in use:  425
	Files queued for open:                   0
	Available number of file descriptors:  599
	Reserved number of file descriptors:   100
	Store Disk files open:                  16
Internal Data Structures:
	 90834 StoreEntries
	 31022 StoreEntries with MemObjects
	 30911 Hot Object Cache Items
	 89120 Filemap bits set
	 89105 on-disk objects
----------------------------------------------------------------------------
----
Generated Tue, 15 Aug 2000 10:22:56 GMT, by
cachemgr.cgi/2.3.STABLE4@kilimanjaro.ai.astra.co.id
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Aug 15 2000 - 05:27:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:52 MST