After using these settings, squid is faster than before, but stillslower than Apache. Apache only:---------------------------Document Path: /images20/header.jpgDocument Length: 32157 bytesConcurrency Level: 50Time taken for tests: 28.86365 secondsComplete requests: 100000Failed requests: 0Write errors: 0Total transferred: -1043138666 bytesHTML transferred: -1078947616 bytesRequests per second: 3560.45 [#/sec] (mean)Time per request: 14.043 [ms] (mean)Time per request: 0.281 [ms] (mean, across all concurrent requests)Transfer rate: -36269.91 [Kbytes/sec] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 0 2 42.4 2 3001Processing: 2 10 2.0 11 71Waiting: 0 2 1.0 2 65Total: 3 13 42.4 13 3013Percentage of the requests served within a certain time (ms) 50% 13 66% 14 75% 14 80% 14 90% 14 95% 14 98% 14 99% 15 100% 3013 (longest request) Squid with Apache:----------------------------------Document Path: /images20/header.jpgDocument Length: 32157 bytes Concurrency Level: 50Time taken for tests: 33.178911 secondsComplete requests: 100000Failed requests: 0Write errors: 0Total transferred: -1033332671 bytesHTML transferred: -1079149123 bytesRequests per second: 3013.96 [#/sec] (mean)Time per request: 16.589 [ms] (mean)Time per request: 0.332 [ms] (mean, across all concurrent requests)Transfer rate: -30414.29 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median maxConnect: 0 1 26.9 1 3003Processing: 1 14 65.2 14 5024Waiting: 0 3 65.0 3 5011Total: 3 16 70.4 15 5025 Percentage of the requests served within a certain time (ms) 50% 15 66% 16 75% 17 80% 17 90% 17 95% 18 98% 19 99% 19 100% 5025 (longest request)2007/7/21, Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx>:> On fre, 2007-07-20 at 11:15 +0800, cwx wrote:> > TCP_HIT means a valid copy of the requested object was in the cache.> > Apache received less than 30 request.>> Try this:>> grab Squid-2.HEAD from http://www.squid-cache.org/Versions/v2/HEAD/>> install a somewhat recent Linux version>> Configure Squid with a reasonably cache_mem, a null cache_dir and> reasonably sized maximum_object_size_in_memory settings for your> content.>> Example:>> cache_mem 128 MB> cache_dir null /null> maximum_object_size_in_memory 1 MB>>> Regards> Henrik>> -- 程卫星 13331170582