Re: [squid-users] What is the price to pay for file descriptor ?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 13 Aug 2007 05:39:44 +0200

On mån, 2007-08-13 at 10:58 +0800, Ming-Ching Tiew wrote:
> What is the price to pay for increasing the file descriptor ?

Depends a bit on your comm loop, and why you need very many
filedescriptors.

The filedescriptor limit servers two purposes

a) OS imposed limit, to avoid bringing down the machine by hitting os
total limits..

b) Load limitation, making Squid stop accepting new connections if it is
already processing too many.

'b' might risk allowing your Squid to spiral down quite far if the
number of filedescriptors is very large, much larger than you actually
need.

> Has anyone compiled squid with 50,000 file descriptor ?

Yes.. have compiled Squid with some hundreds of thousand
filedescriptors, but only for experimental purposes.

Regards
Henrik

Received on Sun Aug 12 2007 - 21:39:55 MDT

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