Re: [squid-users] My squid is slower than apache

From: cwx <chengweixing@dont-contact.us>
Date: Tue, 24 Jul 2007 09:30:48 +0800

After using these settings, squid is faster than before, but still
slower than Apache.

Apache only:
---------------------------
Document Path: /images20/header.jpg
Document Length: 32157 bytes
Concurrency Level: 50
Time taken for tests: 28.86365 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: -1043138666 bytes
HTML transferred: -1078947616 bytes
Requests 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] received
Connection Times (ms)
              min mean[+/-sd] median max
Connect: 0 2 42.4 2 3001
Processing: 2 10 2.0 11 71
Waiting: 0 2 1.0 2 65
Total: 3 13 42.4 13 3013
Percentage 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.jpg
Document Length: 32157 bytes

Concurrency Level: 50
Time taken for tests: 33.178911 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: -1033332671 bytes
HTML transferred: -1079149123 bytes
Requests 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 max
Connect: 0 1 26.9 1 3003
Processing: 1 14 65.2 14 5024
Waiting: 0 3 65.0 3 5011
Total: 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@henriknordstrom.net>:
> 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
Received on Mon Jul 23 2007 - 19:30:54 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:04 MDT