From owner-freebsd-current Tue Dec 9 16:25:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA22143 for current-outgoing; Tue, 9 Dec 1997 16:25:13 -0800 (PST) (envelope-from owner-freebsd-current) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA22133 for ; Tue, 9 Dec 1997 16:25:02 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id BAA01854; Wed, 10 Dec 1997 01:24:48 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id XAA04600; Tue, 9 Dec 1997 23:52:19 +0100 (MET) Date: Tue, 9 Dec 1997 23:52:19 +0100 (MET) Message-Id: <199712092252.XAA04600@uriah.heep.sax.de> X-Newsreader: knews 0.9.6 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <348AE151.4190@shellnet.co.uk> From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: Where can I get help ? X-Original-Newsgroups: poster In-Reply-To: <348AE151.4190@shellnet.co.uk> To: freebsd-current@freebsd.org Cc: Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk "Steven Fletcher (Shellnet IRC administrator)" wrote: > I need some help on compiling a kernel with 1024 file descriptor > blocks .... which I have little idead on how to do. First, you should realize the actual number is a resource limit. See the `limit' (csh) or `ulimit' (sh) shell builtins for documentation. My current limits look like: j@uriah 439% limit -h descriptors descriptors 680 (That's the `hard' limit.) This number is NPROC*2, with NPROC being computed in /sys/conf/param.c as 20 + 16 * MAXUSERS. So basically, by bumping `maxusers' (in your kernel config file) to (1024 / 2 - 20) / 16 (= 30.75 :-), you'd get a default of 1024. Actually, you can change it at runtime using sysctl, it's the sysctl variable kern.maxfilesperproc (you probably want kern.maxfiles to be larger then). Thus, no kernel recompilation needed. (Disclaimer: i don't know offhand when this tunable variable has been introduced, so it depends on your FreeBSD version.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)