From owner-freebsd-stable Sun Jul 29 16:59: 5 2001 Delivered-To: freebsd-stable@freebsd.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by hub.freebsd.org (Postfix) with ESMTP id 61EAD37B401 for ; Sun, 29 Jul 2001 16:59:01 -0700 (PDT) (envelope-from mikeh@CSUA.Berkeley.EDU) Received: (from mikeh@localhost) by soda.csua.berkeley.edu (8.11.4/8.11.4) id f6TNwxD19854; Sun, 29 Jul 2001 16:58:59 -0700 (PDT) (envelope-from mikeh) Date: Sun, 29 Jul 2001 16:58:59 -0700 From: Mike Howard To: Chris Byrnes Cc: stable@FreeBSD.ORG Subject: Re: No TTYs? Message-ID: <20010729165859.A16423@csua.berkeley.edu> References: <200107292313.f6TNDxh01070@awww.jeah.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107292313.f6TNDxh01070@awww.jeah.net>; from chris@awww.jeah.net on Sun, Jul 29, 2001 at 06:13:59PM -0500 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jul 29, 2001 at 06:13:59PM -0500, Chris Byrnes wrote: > Please cc me in replies, not subscribed anymore. > > Lately, been having this problem (forces me to reboot since > I'm remote): > > Jul 29 16:06:07 awww sshd[21293]: error: openpty: No such file or directory > Jul 29 16:06:07 awww sshd[21293]: error: Failed to allocate pty. > Jul 29 16:09:48 awww sshd[21504]: error: openpty: No such file or directory > Jul 29 16:09:48 awww sshd[21504]: error: session_pty_req: session 0 alloc failed > Jul 29 16:10:05 awww /kernel: arplookup 65.116.90.2 failed: host is not on local > network > Jul 29 16:10:52 awww sshd[21504]: error: session_close_by_channel: kill 21512: N > o such process > Jul 29 16:10:52 awww sshd[21504]: error: select: Bad file descriptor > > I figured it meant add more ttys, so I did cd /dev ; ./MAKEDEV pty2 pty3 pty4 pty5 pty6 pty7 > > and still having the problem > > The box has about 250 users, and its a public shell box > > Any ideas? I'm not sure if this is your problem, but if you mean 250 _simultaneous_ users, then you're going to run into the 256 pty hard limit. I help run a server which often has more than 200 users logged in, many of whom run screen. We ran out of pty's long ago. You're welcome to try out our patches to increase the limit to 2048. Patches for yesterday's 4.3-STABLE (and screen) can be found at: http://www.CSUA.Berkeley.EDU/computing/software/extra-ptys/ Note that you may need to patch other software (like screen) to use the new (often oddly named) ptys. Yes, it's a hack, -Mike Howard UC Berkeley CSUA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message