Re: [squid-users] Transparent Cache

From: Stefano <stefano@dont-contact.us>
Date: Fri, 15 Oct 2004 08:31:55 +0200

Il gio, 2004-10-14 alle 23:10, Alejandro Barcena ha scritto:

> I understand that squid needs to be recompiled, could someone help me
> with the parameters for recompiling squid? I'm trying to give
> transparent cache for a lot of users.

on root prompt type

# ulimit -Hn 8192
# ulimit -n 8192

this command set the file descriptors value to 8192 and then

# ./configure --more-options.....

look at the configure process, and you can see checking Default
FD_SETSIZE value...8192

# make
# make install
.....

now modify the squid boot script (/etc/rc.d/init.d/squid or other file
in your Linux distribution) and put this line

ulimit -HSn 8192

when Squid start always use 8192 file descriptors, Linux run a lot of
process and you must use some and some FD, now modify yuor
/etc/sysctr.conf file and put this line

fs.file-max = 102400

then

# sysctl -p

Ciao

S.
Received on Fri Oct 15 2004 - 00:32:18 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST