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

From: cwx <[email protected]>
Date: Fri, 20 Jul 2007 11:34:53 +0800

My squid setting:
cache_mem 1536 MB
maximum_object_size_in_memory 1024 KB

Is this misconfigured?

2007/7/20, gogo407 skine <skine0709@gmail.com>:
>
>
> 2007/7/20, 程卫星 <chengweixing@gmail.com>:
> > Yes, Squid request status in access log is TCP_HIT:NONE.
> > Squid and apache run on same server, and apache ab command runs on
> > another server.
> >
> > 2007/7/20, Marcos Camões Bourgeaiseau < marcoscamoes@rio.rj.gov.br>:
> > > Are you sure the test page was already in the squid cache? If it was
> > > not, you have answer , as squid had to fetch the page in your apache
> serve.
> > > Try the test again and see the results.
> > > By the way, the servers have the same hardware configuration and similar
> > > performance?
> > >
> > > 程卫星 wrote:
> > > > I use apache 2.0.59 and squid 2.6.STABLE13, and test with apache's ab
> > > > command:
> > > > ab -n 100000 -c 50 http://***/header.jpg
> > > > When use apache only, the result is:
> > > > --------------------
> > > > Concurrency Level: 50
> > > > Time taken for tests: 2.805669 seconds
> > > > Complete requests: 10000
> > > > Failed requests: 0
> > > > Write errors: 0
> > > > Total transferred: 325499626 bytes
> > > > HTML transferred: 321909602 bytes
> > > > Requests per second: 3564.21 [#/sec] (mean)
> > > > Time per request: 14.028 [ms] (mean)
> > > > Time per request: 0.281 [ms] (mean, across all concurrent
> requests)
> > > > Transfer rate: 113295.61 [Kbytes/sec] received
> > > > -------------------------
> > > > When use squid with apache, test result is:
> > > > -------------------------
> > > > Concurrency Level: 50
> > > > Time taken for tests: 3.739039 seconds
> > > > Complete requests: 10000
> > > > Failed requests: 0
> > > > Write errors: 0
> > > > Total transferred: 326745046 bytes
> > > > HTML transferred: 322174102 bytes
> > > > Requests per second: 2674.48 [#/sec] (mean)
> > > > Time per request: 18.695 [ms] (mean)
> > > > Time per request: 0.374 [ms] (mean, across all concurrent
> requests)
> > > > Transfer rate: 85339.04 [Kbytes/sec] received
> > > > ------------------------------
> > > > So my question is: why squid is slower than apache? Thanks.
> > > >
> > >
> > > --
> > > Marcos Camões Bourgeaiseau - KIKO
> > > e-mail normal: marcoscamoes@rio.rj.gov.br
> > > e-mail para anexos grandes: mmcruz41@hotmail.com
> > >
> >
>
> Why Squid request status is not TCP_MEM_HIT:NONE! TCP_HIT:NONE. means hit
> on the disk, the same as apache!
> So ,use the squid will slower than your apache
>
> --
> This is gogo407
> Have Fun

-- 
程卫星 13331170582
Received on Thu Jul 19 2007 - 21:34:56 MDT

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