RE: [squid-users] High CPU usage for large object

From: NGUYEN, KHANH, ATTSI <nguyenkt@dont-contact.us>
Date: Thu, 9 Aug 2007 08:38:06 -0400

That explains it. I experiment using proxy-only to serve this big object
through squid from an apache on the same server. The cpu usage of
squid+apache is cut nearly in half. Perhaps a combination of
squid+apache would do well here, just a bit of complication to save this
big object once the squid has it so that apache can serve it too.

Thanks,
Khanh

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Thursday, August 09, 2007 6:51 AM
To: NGUYEN, KHANH, ATTSI
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] High CPU usage for large object

On tis, 2007-08-07 at 13:25 -0400, NGUYEN, KHANH, ATTSI wrote:

> So perhaps the squid has some extra overhead. However, 3 times more
> seems unusual

3 times more is probably quite right for disk hits. Apache uses
sendfile() while Squid reads in the object from disk to write it out
again on the socket.. And if you are using aufs or diskd this is being
bounced via threads further adding overhead.

Regards
Henrik
Received on Thu Aug 09 2007 - 06:38:17 MDT

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