> can be configured on a 2.x.x kernal?
> I really want 512 or 1024 if I can get that many. I examined tty.h
> in the kernal source and found that NR_PTYS is defined to be 256
> and a warning not to mess with it unless .....
> Is it really necessary to hack the kernal to increase the count?
No, not if you use the Unix98 pty's available in the 2.2.x kernel.
> I considered just hacking /dev/MAKEDEV to increase the number,
> but I think this may confuse the kernal if I also don't hack pty.[ch] :-(
> What a mess.
> Am I stuck with 256?
The maximum that can be configured is 2048.
: The maximum number of Unix98 PTYs that can be used at any one time.
: The default is 256, and should be enough for desktop systems. Server
: machines which support incoming telnet/rlogin/ssh connections and/or
: serve several X terminals may want to increase this: every incoming
: connection and every xterm uses up one PTY.
: When not in use, each additional set of 256 PTYs occupy
: approximately 8 KB of kernel memory on 32-bit architectures.
> I hate to say this but solaris is so easy here, just edit /etc/system
> to change cnt_pty to what ever number you need and reboot.
> Oh well, maybe on a later kernal release this sort of thing will
> be dealt with.
BTW, it's kernel with two ees.
e-mail: alarsen AT baumerident DOT com
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor