1827802 Members
2353 Online
109969 Solutions
New Discussion

/dev/pty

 
SOLVED
Go to solution
joe_91
Super Advisor

/dev/pty

i have 2 machines on which my application launches (xwindows) and now suddenly it stopped working(as application increased some users recently) on one while it is fine on another. the kmtune ouput between the two machines match. the xwindoes application launches a remote telnet session (so i guess it does not use this machines'kernel parameters (npty, nstrtel etc) but i find one difference between the two boxes. on the box that works

cd /dev/pty
ll|wc -l
2049

on the box which does not work
cd /dev/pty
ll|wc -l
61

does this matter?
if so, both the machines have the same kernel parameters(so why would have more pty files?).please let me know if this would be an issue?

Thanks

Joe
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: /dev/pty

Because the kernel tunables were increased but insf was not run to increase the number of device nodes. Run insf but note that while this will increase the number of device nodes it may not fix your problem because you may not have found the fundamental cause.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: /dev/pty

Hi Joe:

Have a look at Technical Knowledge Base documents:

# KBRC00013957
# KBRC00014047

Regards!

...JRF...
joe_91
Super Advisor

Re: /dev/pty

I now clearly remember. we increased npty to 2048 on both machines from 60 but donr remember running the insf commnds on server2 (where we have the issue). may be that explains the lesser ptys under /dev/pty.. i will try to increase this and see if that works..

THanks

Joe
joe_91
Super Advisor

Re: /dev/pty

Question.. i can run the insf -e -d pty -n 2000 on the production machine right? I assume no impacts..

Thanks

Joe
Bill Hassell
Honored Contributor
Solution

Re: /dev/pty

Yes, you can run insf on a production system. It just creates the missing device files. PTY devices are the one area where SAM works really well. The 3 kernel parameters for remote connections are:

npty
nstrtel
nstrpty

But setting these parameters to another value is not the complete task. The number of device files for these parameters must be created, something that SAM does automatically. Note that 60 is the default value for the parameters and the device file count. Be sure you set all 3 parameters equally.


Bill Hassell, sysadmin