Re: Half-closed connections eat 100% cpu

From: Adrian Chadd <adrian@dont-contact.us>
Date: Thu, 5 Jul 2001 22:08:33 +0800

On Thu, Jul 05, 2001, Andres Kroonmaa wrote:
>
> Default of "half_closed_clients on" causes Squid to repeatedly
> try to read from client socket. It seems that these sockets are
> polled and OS returns them as ready for read. Thus from time to
> time Squid falls into cpu-burning mode, during which it makes
> few thousand poll()'s per second, together with zero read() and
> parsing/preparing whole poll array. This results in pretty any
> CPU to get to 100%. When there are few thousand open files on the
> proxy, this pretty much kills all performance.

Those sockets shouldn't make it into the poll array.
The defererd read code should prevent it.

That said, I see it too, and I turn off half_closed_clients.

*sigh* oh for the time to totally kill that defered read code.. :)

Adrian

-- 
Adrian Chadd			Yeah, for me its (XML) like the movie Titanic.
<adrian@creative.net.au>	  Everybody loves it.
				    I want to be different, so I hate it.
					--Duane Wessels
Received on Thu Jul 05 2001 - 08:08:38 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:05 MST