From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 27 12:29:41 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 96A5737B401 for ; Fri, 27 Jun 2003 12:29:41 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E55D43FFD for ; Fri, 27 Jun 2003 12:29:41 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h5RJTfnW006403; Fri, 27 Jun 2003 12:29:41 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Fri, 27 Jun 2003 12:29:41 -0700 (PDT) From: Josh Brooks To: Joshua Oreman In-Reply-To: <20030627180818.GA37888@webserver.get-linux.org> Message-ID: <20030627122647.J57224-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 19:29:41 -0000 On Fri, 27 Jun 2003, Joshua Oreman wrote: > > 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... Thank you - that is nice to know. I have a related question - does this apply inside of jails as well ? I remember some testing on 4.x I was doing with 16 jails, and even though I had 256 pty /dev nodes, if the /dev inside the jail only had 32 of them (the default) then the jail users would start getting denied logins and running out of ptys generally. This happened even tho the underlying fbsd system had all 256 ptys - the only way to solve it was to create all 256 ptys in the /dev of _the jail_ as well. How will this work in 5.x - will it be automatic for everyone, or should I perhaps mount a devfs for each jail ?/? thnks!