squid ---file decriptors

Ow Mun Heng Ow.Mun.Heng at wdc.com
Fri Jan 7 03:12:36 UTC 2005


On Thu, 2005-01-06 at 21:31, Rudlof Amirjanyan wrote:
> Hello list.
> 
> I have recompiled my squid for supporting more than 1024 file descriptors,
> but after that this strange behavior.
> 
> In my squid startup script when I put ulimit -HSn NNN (NNN is any number
> less than 960) it is working well, i.e. in
> /usr/local/squid/var/logs/cache.log I get the following (With NNN file
> descriptors available).
> 
> But when I put for example ulimit -HSn 1024 in and restart the squid in the
> cache.log it comes "With 960 file descriptors available"

Which kernel are you running in? 2,4 or 2.6? It makes a difference. I've
managed to run at 4096 without much effort.
> 
> So it is not supporting more than 960 file descriptors ?  But Why ?
> 
> BTW in the /usr/include/bits/typesizes.h  -------- I have "#define
> __FD_SETSIZE            1024"
> I changed it to 4096 but did not help.

This isn't needed for 2.6.

Are you somehow limited based on your overall system ulimit??

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 
98% Microsoft(tm) Free!! 
Neuromancer 11:11:36 up 2:13, 6 users, 
load average: 0.85, 0.63, 0.50 




More information about the users mailing list