From owner-freebsd-stable Sun Sep 6 09:40:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA01693 for freebsd-stable-outgoing; Sun, 6 Sep 1998 09:40:23 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA01661 for ; Sun, 6 Sep 1998 09:40:09 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id RAA02501; Sun, 6 Sep 1998 17:14:29 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id QAA07106; Sun, 6 Sep 1998 16:59:07 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809061559.QAA07106@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Cy Schubert - ITSD Open Systems Group cc: Mike Smith , andrew@squiz.co.nz, Tom , The Hermit Hacker , Bob K , The Lab , freebsd-stable@FreeBSD.ORG Subject: Re: too many open files In-reply-to: Your message of "Sun, 06 Sep 1998 06:53:54 PDT." <199809061354.GAA00979@cwsys.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 06 Sep 1998 16:58:58 +0100 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > between sysctl and login.conf, either can be set without a rebuild. > > > > No. The kern.maxfiles sysctl shouldn't be writable in 2.2, and it's > > not writable in 3.0; it refers to the size of a static table. > > I've been setting kern.maxfiles on 2.2 systems for well over a year, > possibly even two years. It seems like it would be a step backwards > for 3.0 to require a kernel rebuild to set this value. Indeed: woof:/usr/src $ uname -a FreeBSD woof.lan.awfulhak.org 3.0-CURRENT FreeBSD 3.0-CURRENT #17: Sat Sep 5 03:02:51 BST 1998 brian@woof.lan.awfulhak.org:/usr/src/sys/compile/WOOF i386 woof:/usr/src $ fgrep maxusers /sys/i386/conf/WOOF maxusers 15 woof:/usr/src $ cat /usr/local/etc/rc.d/0000files.sh #! /bin/sh echo -n ' maxfiles'; sysctl -w kern.maxfiles=2048 sysctl -w kern.maxfilesperproc=128 woof:/usr/src $ pstat -T 136/2048 files 30M/199M swap space > Regards, Phone: (250)387-8437 > Cy Schubert Fax: (250)387-5766 > Open Systems Group Internet: cschuber@uumail.gov.bc.ca > ITSD Cy.Schubert@gems8.gov.bc.ca > Government of BC -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message