[SunHELP] Increasing number of slave pseudo-terminals (pts)

Lund, Dennis sunhelp at sunhelp.org
Wed Aug 1 12:29:15 CDT 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C11AAF.7CCBBB10
Content-Type: text/plain

solaris FAQ says:

3.41) How can I have more than 48 pseudo-ttys?

    Edit /etc/system and add the following line:

        * System V pseudo terminals

        set pt_cnt = <num>

    Halt the system and boot -r.

    You can essentially have as many as you like, but you'll probably
    run into some other limit somewhere.  More than 3000 are supported.
    Solaris 2.6 and earlier have telnet/rlogin daemons that do not
    support more than 3844 sessions each.  That restriction is lifted
    in Solaris 7.

    Some die-hard system administrator myths as well as some Sun
    documentation claim that you have to increased "sad_cnt", "sadcnt"
    or "nautopush" when adding ptys.  There is no truth in this.

    In the unlikely event that you run out of BSD-style ptys,
    you can increase them as well.  The maximum here is currently
    176 for pty[p-z][0-9a-f].  This is somewhat less that the BSD
    maximum of 256 limited by 8 bit device minor numbers.

    BSD ttys are awkward to use and all programs I found support SYSV
    ptys without trouble.

        * You don't need this.  Increasing this value too much usually
        * just wastes memory.
        * BSD applications never support more than 256 ptys.
        * Solaris 2.x supports no more than 176 BSD ptys.

        set npty = <num>

    But you're not there yet, you also need to edit /etc/iu.ap and
    substitute the new value of "npty-1" for the "47" on the following
    line, in case you do increase the number of BSD style ptys.

                ptsl    0       47      ldterm ttcompat


    Halt the system and boot -r.

Hope this helps.

Dennis L. Lund

-----Original Message-----
From: DAUBIGNE Sebastien - BOR [mailto:Sebastien.DAUBIGNE at sema.fr]
Sent: Wednesday, August 01, 2001 11:05 AM
To: sunhelp at sunhelp.org
Subject: [SunHELP] Increasing number of slave pseudo-terminals (pts)


Today we couldn't login with each pseudo-terminal based services (telnet,
rlogin, remsh,  X).
The login process died with the following message :  "telnetd: open
/dev/ptmx: No such device"
I suspected there was no more slave pseudo-terminals available, and this was
true, as the following message was printed when i tried to launch xterm from
the console :
"xterm: no available ptys".

I have 48 pts in /dev/pts.
My question is : Is there any kernel parameter or something to increase this
number ?

I'm running Solaris 2.5.1.

---
Sebastien DAUBIGNE 
sebastien.daubigne at sema.fr - 05.57.26.56.36
Sema Global Services - AFM/DW/Pessac
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


<html>
<body>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style="font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p>
</body>
</html>

------_=_NextPart_001_01C11AAF.7CCBBB10
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [SunHELP] Increasing number of slave pseudo-terminals (pts)</TIT=
LE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>solaris FAQ says:</FONT>
</P>

<P><FONT SIZE=3D2>3.41) How can I have more than 48 pseudo-ttys?</FONT>
</P>

<P><FONT SIZE=3D2>    Edit /etc/system and add the following=
 line:</FONT>
</P>

<P><FONT SIZE=3D2>        * System V pse=
udo terminals</FONT>
</P>

<P><FONT SIZE=3D2>        set pt_cnt =3D=
 <num></FONT>
</P>

<P><FONT SIZE=3D2>    Halt the system and boot -r.</FONT>
</P>

<P><FONT SIZE=3D2>    You can essentially have as many as yo=
u like, but you'll probably</FONT>
<BR><FONT SIZE=3D2>    run into some other limit somewhere.&=
nbsp; More than 3000 are supported.</FONT>
<BR><FONT SIZE=3D2>    Solaris 2.6 and earlier have telnet/r=
login daemons that do not</FONT>
<BR><FONT SIZE=3D2>    support more than 3844 sessions each.=
  That restriction is lifted</FONT>
<BR><FONT SIZE=3D2>    in Solaris 7.</FONT>
</P>

<P><FONT SIZE=3D2>    Some die-hard system administrator myt=
hs as well as some Sun</FONT>
<BR><FONT SIZE=3D2>    documentation claim that you have to =
increased "sad_cnt", "sadcnt"</FONT>
<BR><FONT SIZE=3D2>    or "nautopush" when adding =
ptys.  There is no truth in this.</FONT>
</P>

<P><FONT SIZE=3D2>    In the unlikely event that you run out=
 of BSD-style ptys,</FONT>
<BR><FONT SIZE=3D2>    you can increase them as well.  =
The maximum here is currently</FONT>
<BR><FONT SIZE=3D2>    176 for pty[p-z][0-9a-f].  This =
is somewhat less that the BSD</FONT>
<BR><FONT SIZE=3D2>    maximum of 256 limited by 8 bit devic=
e minor numbers.</FONT>
</P>

<P><FONT SIZE=3D2>    BSD ttys are awkward to use and all pr=
ograms I found support SYSV</FONT>
<BR><FONT SIZE=3D2>    ptys without trouble.</FONT>
</P>

<P><FONT SIZE=3D2>        * You don't ne=
ed this.  Increasing this value too much usually</FONT>
<BR><FONT SIZE=3D2>        * just wastes=
 memory.</FONT>
<BR><FONT SIZE=3D2>        * BSD applica=
tions never support more than 256 ptys.</FONT>
<BR><FONT SIZE=3D2>        * Solaris 2.x=
 supports no more than 176 BSD ptys.</FONT>
</P>

<P><FONT SIZE=3D2>        set npty =3D &=
lt;num></FONT>
</P>

<P><FONT SIZE=3D2>    But you're not there yet, you also nee=
d to edit /etc/iu.ap and</FONT>
<BR><FONT SIZE=3D2>    substitute the new value of "npt=
y-1" for the "47" on the following</FONT>
<BR><FONT SIZE=3D2>    line, in case you do increase the num=
ber of BSD style ptys.</FONT>
</P>

<P><FONT SIZE=3D2>         &nb=
sp;      ptsl    0  &nbsp=
;    47      ldterm ttcompat</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>    Halt the system and boot -r.</FONT>
</P>

<P><FONT SIZE=3D2>Hope this helps.</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: DAUBIGNE Sebastien - BOR [<A HREF=3D"mailto:Sebast=
ien.DAUBIGNE at sema.fr">mailto:Sebastien.DAUBIGNE at sema.fr</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, August 01, 2001 11:05 AM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] Increasing number of slave pseudo-ter=
minals (pts)</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Today we couldn't login with each pseudo-terminal based s=
ervices (telnet,</FONT>
<BR><FONT SIZE=3D2>rlogin, remsh,  X).</FONT>
<BR><FONT SIZE=3D2>The login process died with the following message :&nbsp=
; "telnetd: open</FONT>
<BR><FONT SIZE=3D2>/dev/ptmx: No such device"</FONT>
<BR><FONT SIZE=3D2>I suspected there was no more slave pseudo-terminals ava=
ilable, and this was</FONT>
<BR><FONT SIZE=3D2>true, as the following message was printed when i tried =
to launch xterm from</FONT>
<BR><FONT SIZE=3D2>the console :</FONT>
<BR><FONT SIZE=3D2>"xterm: no available ptys".</FONT>
</P>

<P><FONT SIZE=3D2>I have 48 pts in /dev/pts.</FONT>
<BR><FONT SIZE=3D2>My question is : Is there any kernel parameter or someth=
ing to increase this</FONT>
<BR><FONT SIZE=3D2>number ?</FONT>
</P>

<P><FONT SIZE=3D2>I'm running Solaris 2.5.1.</FONT>
</P>

<P><FONT SIZE=3D2>---</FONT>
<BR><FONT SIZE=3D2>Sebastien DAUBIGNE </FONT>
<BR><FONT SIZE=3D2>sebastien.daubigne at sema.fr - 05.57.26.56.36</FONT>
<BR><FONT SIZE=3D2>Sema Global Services - AFM/DW/Pessac</FONT>
<BR><FONT SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhe=
lp" TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></=
FONT>
</P>

<CODE><FONT SIZE=3D3><BR>
<BR>
<html><BR>
<body><BR>
<font size=3D"3" face=3D"Times New Roman"><span style=3D"mso-fareast-font-f=
amily: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-=
US; mso-bidi-language: AR-SA"><BR>
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -<BR>
<span style=3D"font-size:10.0pt;font-family:Times New Roman;<BR>
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US=
;mso-fareast-language:<BR>
EN-US;mso-bidi-language:AR-SA"></span><font face=3D"Times New Roman" size=
=3D"3"><span style=3D"mso-fareast-font-family:Times New Roman; mso-ansi-lan=
guage: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e=
-mail and any attachments may contain information which is confidential, pr=
oprietary, privileged or otherwise protected by law. The information is sol=
ely intended for the named addressee (or a person responsible for deliverin=
g it to the addressee). If you are not the intended recipient of this messa=
ge, you are not authorized to read, print, retain, copy or disseminate this=
 message or any part of it. If you have received this e-mail in error, plea=
se notify the sender immediately by return e-mail and delete it from your c=
omputer.</span></font></p><BR>
</body><BR>
</html><BR>
</FONT></CODE></BODY>
</HTML>
------_=_NextPart_001_01C11AAF.7CCBBB10--



More information about the SunHELP mailing list