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:
parent
b3e6f21074
commit
486e3a3ffb
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32595
1 changed files with 15 additions and 38 deletions
|
@ -6441,45 +6441,22 @@ options SYSVMSG # enable for messaging</programlisting>
|
||||||
</question>
|
</question>
|
||||||
|
|
||||||
<answer>
|
<answer>
|
||||||
<para>If you have lot of <command>telnet</command>,
|
<para>If you have a lot of <command>telnet</command>,
|
||||||
<command>ssh</command>, X, or <command>screen</command> users,
|
<command>ssh</command>, X, or <command>screen</command>
|
||||||
you will probably run out of pseudoterminals. Here is how
|
users, you might run out of pseudoterminals. By default,
|
||||||
to add more:</para>
|
&os; 6.2 and earlier support 256 pseudoterminals, while
|
||||||
|
&os; 6.3 and later support 512 pseudoterminals.</para>
|
||||||
|
|
||||||
<procedure>
|
<tip>
|
||||||
<step>
|
<para>If needed, more pseudoterminals can be added.
|
||||||
<para>Build and install a new kernel with the line in
|
However, this requires patching the standard C library,
|
||||||
the configuration file:</para>
|
the kernel, and <filename>/etc/ttys</filename>. For
|
||||||
|
example, <ulink
|
||||||
<programlisting>device pty <replaceable>N</replaceable></programlisting>
|
url="http://www.freebsd.org/~jhb/patches/pty_1152.patch"></ulink>
|
||||||
|
expands the number of pseudoterminals to 1152. Note that
|
||||||
<para>where <replaceable>N</replaceable> is the number
|
the patch will only apply cleanly to &os; 6.3 or
|
||||||
of requested pseudoterminals.</para>
|
later.</para>
|
||||||
</step>
|
</tip>
|
||||||
|
|
||||||
<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; 6.3 or later.</para>
|
|
||||||
</note>
|
|
||||||
</answer>
|
</answer>
|
||||||
</qandaentry>
|
</qandaentry>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue