Search squid archive

Re: Bad Amount of File Descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi squid team,

Well, finally, I'm still facing some troubles with my amount of FileDescriptors.

I've put the Ulimit and Sysctl tricks, but SQUID is still handeling 1024 FD.
At least this is what my SQUID's Startup script said.

I'm putting squid in an ISP environnement, and I've set FD Limit to 256 000, may I increase the amount of IO to 2 000 000 or upper??

Shouldn't I saw the SQUID default number of FD be replace by my settings on the SQUID's startup script instead of the usual 1024?

Many thanks in advance.

----- Mail original ----- 

De: "gaÃl therond" <gael.therond@xxxxxxxxx> 
Ã: "Amos Jeffries" <squid3@xxxxxxxxxxxxx> 
Cc: squid-users@xxxxxxxxxxxxxxx 
EnvoyÃ: Vendredi 20 Mai 2011 11:52:11 
Objet: Re:  Bad Amount of File Descriptors 

Hi Amos 

First of all, thanks for your support. 

Secondly, That a good news about the re-compilation not needed anymore ;) 

Finally, I have had the following instruction on my SQUID init's script: 

ulimit -HS 256000 

but unfortunatly, I still not able to see a value bigger than 1024 on the SQUID starting logs, is that normal? 

I think it because I don't have any warning regarding the FD on my logs. 

Many thanks. 

----- Mail original ----- 

De: "Amos Jeffries" <squid3@xxxxxxxxxxxxx> 
Ã: squid-users@xxxxxxxxxxxxxxx 
EnvoyÃ: Mardi 17 Mai 2011 13:58:56 
Objet: Re:  Bad Amount of File Descriptors 

On 17/05/11 22:45, gaÃl therond wrote: 
> Dear SQUID Support team, 
> 
> I'm facing a quite strange problem today, I'm running a SQUID 3.1.12.1 RC and I have to increase the amount of FD available for SQUID, due to the amount of clients (over 1000). 
> 
> I've change my sysctl.conf to be able to use 256 000 FD on my machine . I've add the following line on the sysctl.conf file: 
> fs.file-max = 256000 
> 
> Then now, I've stop the squid service, erase the /usr/local/squid folder, erase the /cache01/ partition (cache file partition). 
> 
> Re-compile squid with the following directive: 
> 
> ./configure --prefix=/usr/local/squid/ 
> --sysconfdir=/etc/squid/ --enable-async-io --enable-snmp --enable-icmp --enable-wccpv2 --enable-kill-parent-hack 
> --enable-cachemgr-hostname=SQUID --enable-htcp --enable-cache-digests --enable-ssl --enable-linux-netfilter 
> --with-openssl=/usr/lib --with-large-files --with-filedescriptors=256000 
> 
> and of course run mak and make install (as root). 
> 
> BUT I still have the following message on my squid.log file: 
> 
> With 1024 file descriptors available 
> 
> Shouldn't be With 256000 file descriptors available? 

3.1 supports the max_fd config option, no need to recompile anymore :). 

There is some bug as yet untraced breaking the max_filedescriptors 
squid.conf option from working without ulimit. 

For now you still need to change squid.conf and run ulimit before 
start/restart/reconfigure to raise the number Squid sees available from 
the OS. 

Amos 
-- 
Please be using 
Current Stable Squid 2.7.STABLE9 or 3.1.12 
Beta testers wanted for 3.2.0.7 and 3.1.12.1 



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux