Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inquiry on /dev/pts

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
aix/perts,

i tried digging in related topis under IBM support site but couldn't find one.

under "/dev" directory there's a sub-directory named pts. underneath there's a several files (pseudo ttys). is there a limit for this? what's the default? will it create pseudo tty file once it reaches threshold/default?

this is just one of my curiosity after cleaning up filesystems to free up space.
 
I can honestly say that I don't know the answer to your question.

I can also honestly say that /dev is probably a really bad place to look for files to delete to recover disk space.
 
I believe SMIT only allows a maximum of 64 ptys. Though you can change this with odmget, sed, odmchange and chdev.
 
if you go to smitty pty

you can then f1 over number of maximum pseudo terms

for ATT
Specifies the maximum number of pseudo-terminals using the AT&T
conventions that can be simultaneously connected. The maximum number
of PTYs is constrained by system resources.

for BSD
Specifies the maximum number of pseudo-terminals using the BSD
conventions that can be simultaneously connected. A pseudo-terminal
includes a pair of control and slave character devices. The
/dev/pty[p-zA-Z][0-9a-f] special files are the control
pseudo-terminals and the /dev/tty[p-zA-Z][0-9a-f]
special files are the slave pseudo-terminals.

Not sure that answers your question?

As AIXSPadmin stated cleaning up stuff in the dev directory is not the best place to
be...Looking for large rmto files created by mistaken tape commands, or something,
is ok...but deleting devices and character devices is not a place to look to save space.

 
thanks to all....

i found the answers....default max number of pseudo-terminals = 256 & max BSD-pseudo terminals = 16

reason for this? as recommended (in the tech site) by IBM in managing filesystem space. getting rid of unwanted files under directory "/dev"

 
The /dev directory is traditionally maintained by the OS. "Managing filesystem space" usually applies to filesystem you've created. AIX by default does quite a good job of maintaining its own areas under / (including /etc and /dev), /usr, and *sorta* /var (some logs are stored here that can require periodic maintenance). In three years of running up to 20 AIX machines, I've never had to futz around in /dev myself. It's way easy to cause configuration damage to a system doing stuff in there.
 
thank you Chapter11 ...

I just found out that one of our programmer created subdir under "dev" and leave some unwanted program files

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top