Questions on file descriptors and squid

Dancho Penev dpenev at mnet.bg
Wed Oct 20 09:55:34 PDT 2004


On Mon, Oct 18, 2004 at 07:17:18PM -0700, Mark Jayson Alvarez wrote:
>Date: Mon, 18 Oct 2004 19:17:18 -0700 (PDT)
>From: Mark Jayson Alvarez <jay2xra at yahoo.com>
>To: freebsd-questions at freebsd.org
>Subject: Questions on file descriptors and squid
>
>Good day,
>
>   I have a pc which I am going to turn into one of
>our siblings proxy servers. The squid book says, the
>file descriptor values should not go below 1024.
>
>Qestion1: Do you know how do freebsd 4.10 sets its
>default(fresh install) file descriptor value? For
>example, here are the components of the workstation I
>am installing squid into.
>
>Pentium III 600 MHz
>64 MB SD RAM
>15 GB hard disk
>
>When I run 'sysctl kern.maxfilesperproc' this value
>appeared:
>
>kern.maxfilesperproc: 957
>
>so, it already violates the squids recommended
>settings which should be not less than 1024 file
>descriptor(Squid: The Definitive Guide -Duane
>Wessels). 
>
>On the other hand, another workstation of mine with
>the following components...
>
>256 DDR PC333
>Athlon XP 2000
>80 GB seagate harddisk
>
>...shows its file descriptor as
>
>beebop>>sysctl kern.maxfilesperproc
>        kern.maxfilesperproc: 3636
>
>Qestion2: both of the kern.maxfiles and
>kern.maxfilesperproc's values are changeable and so, 
>how will I know what is the maximum value I can set
>them to(with regards to my hardware setup)? 
>
>
>

All these variables depend on maxusers option in your kernel config
file. Look at /usr/src/sys/kern/subr_param.c to find how they are
calculated.

>
>
>
>
>
>
>
>
>
>		
>_______________________________
>Do you Yahoo!?
>Declare Yourself - Register online to vote today!
>http://vote.yahoo.com
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>

-- 
Dancho Penev

Home page:           http://www.mnet.bg/~dpenev
GnuGP public key:    http://www.mnet.bg/~dpenev/gnupg.asc
Key fingerprint:     E88D 8B7B 3EF6 E9C8 C5D2  7554 2AA8 C347 71A1 4277
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041020/e86697bc/attachment.bin


More information about the freebsd-questions mailing list