Update Question 10.19.1:

- Replace the old kernel configuration method
  with some info on the current limits and
  mention jhb's patch

PR:		docs/125772
Submitted by:	Unga <unga888 (at) yahoo (dot) com>
Discussed with:	rwatson, jhb
Reviewed by:	jhb, gabor
Approved by:	gabor
This commit is contained in:
Gabor Pali 2008-07-29 18:11:31 +00:00
parent b3e6f21074
commit 486e3a3ffb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32595

View file

@ -6441,45 +6441,22 @@ options SYSVMSG # enable for messaging</programlisting>
</question>
<answer>
<para>If you have lot of <command>telnet</command>,
<command>ssh</command>, X, or <command>screen</command> users,
you will probably run out of pseudoterminals. Here is how
to add more:</para>
<para>If you have a lot of <command>telnet</command>,
<command>ssh</command>, X, or <command>screen</command>
users, you might run out of pseudoterminals. By default,
&os;&nbsp;6.2 and earlier support 256 pseudoterminals, while
&os;&nbsp;6.3 and later support 512 pseudoterminals.</para>
<procedure>
<step>
<para>Build and install a new kernel with the line in
the configuration file:</para>
<programlisting>device pty <replaceable>N</replaceable></programlisting>
<para>where <replaceable>N</replaceable> is the number
of requested pseudoterminals.</para>
</step>
<step>
<para>Edit <filename>/etc/ttys</filename> and add lines
for each of the <replaceable>N</replaceable> terminals.
They should match the form of the existing entries, i.e.
they look like this:</para>
<programlisting>ttyqc none network</programlisting>
<para>The order of the letter designations is
<literal>tty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv]</literal>,
using a regular expression.</para>
</step>
<step>
<para>Reboot the system with the new kernel and you are
ready to go.</para>
</step>
</procedure>
<note>
<para>Using more than 256 (up to 512) &man.pty.4; devices
requires &os;&nbsp;6.3 or later.</para>
</note>
<tip>
<para>If needed, more pseudoterminals can be added.
However, this requires patching the standard C library,
the kernel, and <filename>/etc/ttys</filename>. For
example, <ulink
url="http://www.freebsd.org/~jhb/patches/pty_1152.patch"></ulink>
expands the number of pseudoterminals to 1152. Note that
the patch will only apply cleanly to &os;&nbsp;6.3 or
later.</para>
</tip>
</answer>
</qandaentry>