Dear all,
My squid server :
Intel P3 1G, SDRAM 1G, SCSI HD 36G*2, Intel 100M NIC *2
Debian 3.0 , Linux Kernel 2.4.18
I already modify kernel and sysctl to improve system.
increase filedescriptor to 8192
Also edit sysctl.conf to tune up network
net.core.rmem_max=655350
net.core.wmem_max=655350
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_rmem = 4096 87380 174760
net.ipv4.tcp_wmem = 4096 87380 174760
build squid in optimization
env CFLAGS="-O9 -funroll-loops -ffast-math -march=i686 \
-fomit-frame-pointer \
-finline-functions -fno-exceptions" \
./configure \
--prefix=/squid --enable-cachemgr-hostname --enable-useragent-log \
--enable-dlmalloc --enable-gnuregex --enable-cache-digests \
--enable-err-language=Traditional_Chinese --enable-poll \
--disable-ident-lookups --enable-snmp --enable-kill-parent-hack \
--enable-storeio=diskd,ufs --enable-async-io=40
however, it looks like not has good performance. User also complain that
proxy is slow.
Does any advice ?
Connection information for squid:
Number of clients accessing cache: 62
Number of HTTP requests received: 1321
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: 269.1
ICP messages per minute: 0.0
Select loop called: 64185 times, 4.589 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 36.4%, 60min: 36.4%
Byte Hit Ratios: 5min: 34.7%, 60min: 34.7%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
Request Disk Hit Ratios: 5min: 29.6%, 60min: 29.6%
Storage Swap size: 37629516 KB
Storage Mem size: 832 KB
Mean Object Size: 24.42 KB
Requests given to unlinkd: 472
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.27332 0.27332
Cache Misses: 0.49576 0.49576
Cache Hits: 0.02899 0.02899
Near Hits: 0.46965 0.46965
Not-Modified Replies: 0.02451 0.02451
DNS Lookups: 0.70785 0.70785
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 294.560 seconds
CPU Time: 28.200 seconds
CPU Usage: 9.57%
CPU Usage, 5 minute avg: 11.29%
CPU Usage, 60 minute avg: 11.29%
Maximum Resident Size: 0 KB
Page faults with physical i/o: 347
Memory usage for squid via mallinfo():
Total space in arena: 148485 KB
Ordinary blocks: 148473 KB 25 blks
Small blocks: 0 KB 0 blks
Holding blocks: 3392 KB 5 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 11 KB
Total in use: 151865 KB 102%
Total free: 11 KB 0%
Memory accounted for:
Total accounted: 115859 KB
memPoolAlloc calls: 8172087
memPoolFree calls: 3543962
ps1:
I have almost 200 acl for deny sex webstie.
acl deny_sex dstdom_regex foo.com
Received on Sat Apr 26 2003 - 09:37:09 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:31 MST