From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 27 11:05:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1187837B401 for ; Fri, 27 Jun 2003 11:05:34 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 51EDB43F3F for ; Fri, 27 Jun 2003 11:05:33 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 38000 invoked by uid 1001); 27 Jun 2003 18:08:18 -0000 Date: Fri, 27 Jun 2003 11:08:18 -0700 From: Joshua Oreman To: Josh Brooks Message-ID: <20030627180818.GA37888@webserver.get-linux.org> References: <20030627031608.J57224-100000@mail.econolodgetulsa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030627031608.J57224-100000@mail.econolodgetulsa.com> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: setting up max ptys under 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 18:05:34 -0000 On Fri, Jun 27, 2003 at 03:20:05AM -0700 or thereabouts, Josh Brooks wrote: > > For various reasons, in 4.x, I have been creating all possible pty /dev > nodes ... > > # pwd > /dev > # ls *pty* | wc -l > 256 > > > So far so good...now I am wondering how to do this in 5.x, what with the > devfs and all. Basically the number of interactive users that log into > this system means I need to have all the possible ptys ... > > What should my strategy be ? > > BTW, I noticed that in my kernel config file I can no longer set: > > device pty 256 > > I have to just set: > > device pty That's correct. > > as I get an error if I put the number in place ... also I have set > maxusers to 512 ... any new toggles I should know of to be able to use max > ptys on the system, or can I just follow whatever directions I hope to > receive regarding creating the devices ? 5.x creates the devices automatically. So if you have 256 users, you'll have 256 ptys. If you have 0 users, you'll have 0 ptys. maxusers has no effect, setting it to 512 does seem a bit high... -- Josh > > thanks! > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"