From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 20 08:45:02 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 88DCE16A4CE; Thu, 20 Nov 2003 08:45:02 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81E3B43FF3; Thu, 20 Nov 2003 08:45:01 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id hAKGglMg021108; Thu, 20 Nov 2003 11:42:47 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hAKGgl8J021105; Thu, 20 Nov 2003 11:42:47 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 20 Nov 2003 11:42:47 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ken Smith In-Reply-To: <20031120164112.GF29560@electra.cse.Buffalo.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Len Sassaman Subject: Re: Help request: problems with a 5.1 server and large numbers of ssh users. 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: Thu, 20 Nov 2003 16:45:02 -0000 On Thu, 20 Nov 2003, Ken Smith wrote: > On Thu, Nov 20, 2003 at 10:56:08AM -0500, Robert Watson wrote: > > > Hmm. Well, it certainly sounds like a resource limit to me, especially if > > it's a nice round number like "150" or "300". > > One possibility might be running out of pseudo-terminals to support the > login sessions. pty's are created as needed I think, and the code that > handles it is in sys/kern/tty_pty.c. The limits on it appear to be 256 > ptys: I thought about that, but the submitter indicated that pty's were not being allocated. However, that would be a really good thing to verify, since the numbers come out right... I should really clean up and commit my pty cleanup at some point, as well as support for forkpty()/openpty()/etc that avoid the sort of code found below. Presumably that would be a 5.3 thing. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories > > /* > * This function creates and initializes a pts/ptc pair > * > * pts == /dev/tty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv] > * ptc == /dev/pty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv] > * > * XXX: define and add mapping of upper minor bits to allow more > * than 256 ptys. > */ > > I don't know if simply changing the : > > static char *names = "pqrsPQRS"; > > to something longer is all that would be required or if there are > other factors involved. > > -- > Ken Smith > - From there to here, from here to | kensmith@cse.buffalo.edu > there, funny things are everywhere. | > - Theodore Geisel | >