From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 15:25:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E0FB16A4CE for ; Thu, 4 Dec 2003 15:25:56 -0800 (PST) Received: from invert.com (srv01.datacenterops.com [209.164.15.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A84343FB1 for ; Thu, 4 Dec 2003 15:25:55 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) Received: from invert.com (localhost [127.0.0.1]) by invert.com (8.12.9/8.12.9) with ESMTP id hB4NPsrV093721 for ; Thu, 4 Dec 2003 15:25:54 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) Received: (from jburke@localhost) by invert.com (8.12.9/8.12.9/Submit) id hB4NPsQa093720 for freebsd-questions@freebsd.org; Thu, 4 Dec 2003 15:25:54 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) X-Authentication-Warning: invert.com: jburke set sender to mlist-freebsd-questions@alt255.com using -f Date: Thu, 4 Dec 2003 15:25:54 -0800 From: Justin Burke To: freebsd-questions@freebsd.org Message-ID: <20031204232554.GR91900@alt255.com> References: <20031204212836.GP91900@alt255.com> <20031204220712.GC18124@users.munk.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031204220712.GC18124@users.munk.nu> User-Agent: Mutt/1.4.1i Subject: Re: Out of pty's X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 23:25:56 -0000 X-List-Received-Date: Thu, 04 Dec 2003 23:25:56 -0000 * Jez Hancock (jez.hancock@munk.nu) wrote: > On Thu, Dec 04, 2003 at 01:28:36PM -0800, Justin Burke wrote: > > Looks like my system is running out of free pty's. There are a bunch of > > users on the system running screen, so we are using up a ton of the > > ptys. > > > > How do I find out the limit of ptys on my system? (sysctl doesn't > > seem to show anything relevant.) > I believe you can increase the number of ptys by modifying /etc/ttys - > from looking at my /etc/ttys file it looks as though once the ttyp* ttys > are used up, the tty monniker changes to ttyq* etc... > > > How do I increase that value? The pseudo-pty value in the kernel config > > has no assigned value (ie. we are using the default).... but what is the > > default? > Again I believe this is down to /etc/ttys. Hi Jez, /etc/ttys lists a ton of pseudo terminals, which is great. However, after opening up 32 pseudo terminals (/dev/ptyp[0-9] and /dev/ptyp[a-v]]), none of the other terminals are used (eg. /dev/ptyq*). How do I get the system to start using those devices? (The /etc/ttys entries for /dev/ttyp* are identical to the /dev/ttyq* entries.) Justin