SUMMARY: Updating pty's dynamically

From: Lew Randerson <lranderson_at_Pppl.GOV>
Date: Wed, 15 Apr 1998 11:38:08 -0400 (EDT)

It turns out that the "pts" subsystem is static and can
not be changed dynamically. Thanks to Joshua Rowe who sent
an excerpt from the man page.


>from the man page on sysconfig:
>
> -m Queries the mode for the specified subsystems. A subsystem's mode
> can be static or dynamic. If you omit the subsystem name, syscon-
> fig displays the mode of all the configured subsystems.
>
>... deleted ...
>
> Use the -m flag to determine whether a subsystem supports being added and
> removed from the kernel using the sysconfig -c or sysconfig -u command.
> The -m flag displays the subsystem name and indicates whether that subsys-
> tem is static (you must rebuild the kernel to add or remove it from the
> kernel) or dynamic (you can load and unload it from the kernel using the
> sysconfig command). If you omit the subsystem-name argument, the sysconfig
> command displays this information for all loaded and configured subsystems.
>
>
>What my sysconfig pts says:
>
>%m:%~# sysconfig -m pts
>pts: static
>%m:%~#
>
>Lew Randerson writes:
> > Hi,
> >
> > How can the number of pty's be updated dynamically?
> >
> > The alpha_osf_managers archive has been searched and
> > the specific issue of dynamic increasing of pty's
> > is not addresed. At least not in enough detail that
> > I have had success.
> >
> > The System Admimistration manual and the sysconfig(8)
> > man pages say it can be done but ... no success so far.
> > Here's the long story:
> >
> > o The system is running Digital Unix V3.2C.
> >
> > o The RPTY option (NOT the pty pseudodevice) is used in
> > the system configuration file.
> >
> > o The LDTTY option is also in the system configuration
> > file.
> >
> > o In /dev ptys range from ptyp0 to ptysf
> >
> > $ cd /dev
> > $ ls pty*
> > ptyp0 ptypa ptyq4 ptyqe ptyr8 ptys2 ptysc
> > ptyp1 ptypb ptyq5 ptyqf ptyr9 ptys3 ptysd
> > ptyp2 ptypc ptyq6 ptyr0 ptyra ptys4 ptyse
> > ptyp3 ptypd ptyq7 ptyr1 ptyrb ptys5 ptysf
> > ptyp4 ptype ptyq8 ptyr2 ptyrc ptys6
> > ptyp5 ptypf ptyq9 ptyr3 ptyrd ptys7
> > ptyp6 ptyq0 ptyqa ptyr4 ptyre ptys8
> > ptyp7 ptyq1 ptyqb ptyr5 ptyrf ptys9
> > ptyp8 ptyq2 ptyqc ptyr6 ptys0 ptysa
> > ptyp9 ptyq3 ptyqd ptyr7 ptys1 ptysb
> >
> > o /etc/sysconfigtab currently does not have a pts subsystem
> > entry.
> >
> >
> > 1) When connecting to a system running Digital Unix V3.2C,
> > this happens:
> >
> > $ rsh hydra
> > Out of ptys: Error 2Connection closed.
> >
> > There are a lot of connections and when there are less
> > connections the problem goes away.
> >
> > 2) I would like to update the number of ptys
> > dynamically, but fail. Here's the method:
> >
> > # /sbin/sysconfig -q pts
> > nptys = 255
> >
> > # /sbin/sysconfig -r pts nptys=512
> > subsystem error: Invalid argument
> >
> > This message comes out on the system console:
> > STREAMS: module 'pts' configure failed (22)
> >
> > 3) On a test system, I can also not update the number
> > of ptys dynamically
> >
> > I can however by updating /etc/sysconftab and
> > rebooting the system. I do not
> > have to do a cd /dev; ./MAKEDEVS PTY_...
> >
> >
> > Thanks for any help, --Lew
> > lranderson_at_Pppl.GOV
> >
> >
> >
> >
> >
>
>
>--
>
>jmr - http://meta.eksystems.com/~rowe
>
>Just because you're paranoid doesn't mean they're not after you.
>
>-----BEGIN GEEK CODE BLOCK-----
>Version: 3.1
>GCS dpu s: a--- C++++$ ULOU++++$ P+ L++++$ E+++$ W++ !N- !o>+ ?K
>w---(++) O+ M-- V+++$ PS+ PE Y PGP- t+ 5 X+++ R>+ !tv b+++ DI++ D- G e
>h++ r y
>------END GEEK CODE BLOCK------
Received on Wed Apr 15 1998 - 17:39:27 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT