Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 2003 20:12:55 -0800
From:      Justin Burke <mlist-freebsd-questions@alt255.com>
To:        Malcolm Kay <malcolm.kay@internode.on.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Out of pty's
Message-ID:  <20031207041255.GB62068@alt255.com>
In-Reply-To: <200312051326.33419.malcolm.kay@internode.on.net>
References:  <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> <200312051326.33419.malcolm.kay@internode.on.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Malcolm Kay (malcolm.kay@internode.on.net) wrote:
> >     1. Build and install a new kernel with the line
> >
> >  pseudo-device pty 256
> >
> >        in the configuration file.
> >
> >     2. Run the commands
> >
> 
> I believe this may be out of date. I think the kernel may now
> produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist for me.

More than 32 may exist, but can you actually use them? 96 ptys currently
exist on my system, but I can only use 32. The pseudo-device line in my
kernel is the default (ie.  no numeric value is provided).


> >  # cd /dev
> >  # sh MAKEDEV pty{1,2,3,4,5,6,7}
> >
> >        to make 256 device nodes for the new terminals.
> >
> 
> On 4.x certainly need this to create more devices. I don't know if you need to 
> do something with devfs in 5.x, but 5.x doesn't have MAKEDEV.

This seems to be the case on my 5.1 box. The ptys are automatically
created. And the pty limit has been bummed up to 256 in the default
config. (Just checked it with multiple instances of screen....)


Justin



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