Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2001 16:58:59 -0700
From:      Mike Howard <mikeh@CSUA.Berkeley.EDU>
To:        Chris Byrnes <chris@awww.jeah.net>
Cc:        stable@FreeBSD.ORG
Subject:   Re: No TTYs?
Message-ID:  <20010729165859.A16423@csua.berkeley.edu>
In-Reply-To: <200107292313.f6TNDxh01070@awww.jeah.net>; from chris@awww.jeah.net on Sun, Jul 29, 2001 at 06:13:59PM -0500
References:  <200107292313.f6TNDxh01070@awww.jeah.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010729165859.A16423>