Re: cannot get more than 32 PTYs in 4.4-RELEASE
Ok, see the point is, I have _already done this_ > sh MAKEDEV pty0 # 0-31 > sh MAKEDEV pty1 # 32-63 > sh MAKEDEV pty2 # 64-95 > sh MAKEDEV pty3 # 96-127 > sh MAKEDEV pty4 # 128-159 xterm won't recognize by default > sh MAKEDEV pty5 # 160-191 xterm won't recognize by default > sh MAKEDEV pty6 # 192-223 xterm won't recognize by default > sh MAKEDEV pty7 # 224-255 xterm won't recognize by default These are the exact commands I used with `sh MAKEDEV` to create my 256 pty /dev entries. So to recap, all 256 /dev files are there, all 256 entries are in /etc/ttys (and were there by default) and I have: maxusers128 and pseudo-device pty 128 in my kernel. And when I create 32 screens with `screen`, nobody else can login by any method (ssh, telnet, etc.). (No more PTYs error, etc.) What am I missing here ? Please note that this is 4.4-RELEASE - this doesn't seem to be a problem in 4.5 thanks, PT To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: cannot get more than 32 PTYs in 4.4-RELEASE
In a message written on Tue, Mar 05, 2002 at 07:52:09AM -0600, Paul Halliday wrote: > pty*) > class=`expr $i : 'pty\(.*\)'` > case $class in > 0) offset=0 name=p;; > 1) offset=32 name=q;; > 2) offset=64 name=r;; > 3) offset=96 name=s;; > > interestingly enough the command "./MAKEDEV pty3" will create (as > indicated) heh.. I was assuming too much, something is screwy here. > > *confused* > > it actually only created 64 terminals. Added the line: > > 4) offset=192 name=t;; > > ~# ./MAKEDEV pty4 && kill -HUP 1 > > interesting, now I have 96, but can only use 64. Reboot.. I think if you look at a more recent MAKEDEV, you'll find your answer: pty*) class=`expr $i : 'pty\(.*\)'` case $class in 0) offset=0 name=p;; 1) offset=32 name=q;; 2) offset=64 name=r;; 3) offset=96 name=s;; # Note that xterm (at least) only look at p-s. 4) offset=128 name=P;; 5) offset=160 name=Q;; 6) offset=192 name=R;; 7) offset=224 name=S;; # This still leaves [tuTU]. So: sh MAKEDEV pty0 # 0-31 sh MAKEDEV pty1 # 32-63 sh MAKEDEV pty2 # 64-95 sh MAKEDEV pty3 # 96-127 sh MAKEDEV pty4 # 128-159 xterm won't recognize by default sh MAKEDEV pty5 # 160-191 xterm won't recognize by default sh MAKEDEV pty6 # 192-223 xterm won't recognize by default sh MAKEDEV pty7 # 224-255 xterm won't recognize by default It's fairly trival to patch xterm to look for additional letters. It may have made it in the XFree source already. *shrug* -- Leo Bicknell - [EMAIL PROTECTED] - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - [EMAIL PROTECTED], www.tmbg.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: cannot get more than 32 PTYs in 4.4-RELEASE
dp> *confused* Read http://www.daemonnews.org/199902/answerman.html#ptys>, "I'm always running out of xterms because I have too many pseduo-ttys open. How can I increase my number of ptys?" article at DaemonNews. You may find an example to create more ptys with MAKEDEV. -- - Makoto `MAR' Matsushita To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: cannot get more than 32 PTYs in 4.4-RELEASE
On Mon, 4 Mar 2002, Patrick Thomas wrote: > > In my kernel, I have: > > maxusers128 > > pseudo-device pty 128 > Not sure if the above steps are actually required. Actually, neither matter. I duplicated your steps anyway, and was greeted with the same messages. However, > In my /dev directory, I have used `sh MAKEDEV` to make all 256 /dev/pty > files. They are all there, and all have correct major/minor numbers. I > know I won't be using all 256 of them, but I just made them all anyway. I believe the above steps are wrong, looking at /dev/MAKEDEV: pty*) class=`expr $i : 'pty\(.*\)'` case $class in 0) offset=0 name=p;; 1) offset=32 name=q;; 2) offset=64 name=r;; 3) offset=96 name=s;; interestingly enough the command "./MAKEDEV pty3" will create (as indicated) heh.. I was assuming too much, something is screwy here. *confused* it actually only created 64 terminals. Added the line: 4) offset=192 name=t;; ~# ./MAKEDEV pty4 && kill -HUP 1 interesting, now I have 96, but can only use 64. Reboot.. Anyone care to take over? > > In /etc/ptys, I didn't change anything, because all 256 pty entries are > ALREADY in there: > > # Pseudo Terminals > ttyp0 nonenetwork > ttyp1 nonenetwork > ... > ttySu nonenetwork > ttySv nonenetwork > > So those are all there. > > I have used `sysctl -a | grep maxuser` to verify that maxusers is indeed > 128. > > BUT - if I log on via ssh and start screen, and start 31 new screen > windows, then nobody else can log on to the system - I cannot create any > more screen windows AND nobody else can ssh in - the machine has run out > of ptys. > > I use `fstat` to inquire, and I am maxed out at exactly 32 ptys. > > SO THE question is, why am I stuck at 32 ptys ? I have done it all - > everything that is in any doc or news post, and everything I was told to > do here and on -hackers, and yet I am still stuck at 32 !!! > > Please tell me the secret lore for getting more than 32 ptys in > 4.4-RELEASE. > > > thanks, > > PT > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > Paul H. ___ http://dp.penix.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message