System Administration Guide

How to Increase the Number of Pseudo-ttys

  1. Open the /etc/system file, using the editor of your choice.

  2. Add the following line to the file.


    set pt_cnt=valueset npty=same_value_as_pt_cnt
    set sad_cnt=2_times_pt_cnt value
    set nautopush=same_value_as_ pt_cnt

    set pt_cnt

    Sets the number of System V ptys. 

    set npty

    Sets the number of BSD ptys. 

    set sadcnt

    Sets the number of STREAMS addressable devices. 

    set nautopush

    Sets the number of STREAMS autopush entries and should be two times the value of sadcnt.

  3. Exit the file, saving changes.

  4. Verify the pt_cnt value change.


    # grep pt_cnt /etc/system
    set pt_cnt=256
  5. Instruct the system to reconfigure upon rebooting.


    $ touch /reconfigure
    
  6. Reboot the system.

Example--Increasing the Number of Pseudo-ttys

The following example increases the number of ptys to 128.


set pt_cnt=128
set npty=128
set sadcnt=256
set nautopush=128