Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 14:03:42 -0800 (PST)
From:      Charlie ROOT <root@utility.clubscholarship.com>
To:        Ceri <setantae@submonkey.net>
Cc:        <hackers@freebsd.org>
Subject:   Re: I am running out of PTYs and I shouldn't be.
Message-ID:  <20020226135902.A32480-100000@utility.clubscholarship.com>
In-Reply-To: <20020226084303.GB16029@rhadamanth>

next in thread | previous in thread | raw e-mail | index | archive | help
> > `sh MAKEDEV ptyX` (where X is each of the numbers 1 through 7)
>
> Doesn't really matter.
> What is this set to ? :
>
> 	pseudo-device   pty             #Pseudo ttys
>
> Note that you can optionally add a number to the end of this option.


Currently this line is set like this:

	pseudo-device	pty

with no number arguments.  Are you sure that I need to do this ?  When I
ran my tests on my laptop, I increased maxusers to 128 and made all the
/dev files, but I _did not_ add a number argument to the above line, NOR
did I add anything to /etc/ttys

Also, I did not rebuild screen - but nevertheless I was able to start 6
screens and create about 40 new screens on each of them, for a total of
240 or so screens opened  ...

So the question is:

How come on an identical environment (in terms of devices created, and
settings in the kernel) my laptop can create a huge amount of screens -
almost as many as the 256 pty device files in /dev, but on my server,
which is running all sorts of other items like http and ssh and postgres,
blah blah, I run out of ptys prematurely ?

thanks,

PT


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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