RE: Memory usage fix (patch)

From: Steven Wilton <swilton@dont-contact.us>
Date: Fri, 18 Mar 2005 07:37:55 +0800

> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Sent: Friday, March 18, 2005 4:56 AM
> To: Steven Wilton
> Cc: 'Squid Developers'
> Subject: RE: Memory usage fix (patch)
>
> On Thu, 17 Mar 2005, Steven Wilton wrote:
>
> > The problem is that once squid starts hitting swap we start getting
> > complaints. We have also noticed that certain clients have
> an unusual usage
> > pattern that seems to cause squid to ue lots of memory,
> obviously bypassing
> > the checks in fwdCheckDefer. I'll see if I can track this down.
>
> Either your use of the defer function is not working, or you
> have clients
> triggering the race condition I indicated yesterday when the original
> client disconnects from the request.
>

You're correct, the defer function was not being used correctly. The
problem was that enabling it caused a big increase in the CPU usage of
squid. I think I've come up with an acceptable solution (CPU usage
increases with network i/o). I'll update the epoll-2_5 tree with this
change.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
 
Received on Thu Mar 17 2005 - 16:38:00 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:04 MST