cancel
Showing results for 
Search instead for 
Did you mean: 

nstrpty

SOLVED
Go to solution
BrianDoyle
Trusted Contributor

nstrpty

Hi

My nstrpty kernel parameter is using all 60 of its pty sessions which is the default value.
I've increased the value and awaiting a reboot later.

Is it possible to see what is using these sessions?

thanks
6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: nstrpty

What OS version are you on?
You can look at who owns these devices with ll(1).
You can use lsof to see what process owns each.
likid0
Honored Contributor

Re: nstrpty

Take a look at:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1263209545055+28353475&threadId=1284633

if you are on 11.23 or 11.31, you can use kcusage to see the total usage, you won't get per user info.

Windows?, no thanks
Viktor Balogh
Honored Contributor
Solution

Re: nstrpty

>I've increased the value and awaiting a reboot later.

you don't need to wait for the reboot, you can increase the pty device files with insf. And the used pty devices can be listed with a tool called 'tioshow' - you can call the HP Response Center to get a copy of it. Or use lsof...
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: nstrpty

if you only want an overview how much pty devices are in use, you can take a look in glance - press 't' for system tables

System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
Proc Table (nproc) 14208 1954 14 14
File Table (nfile) 46522 13157 28 28
Shared Mem Table (shmmni) 216 29 13 13
Message Table (msgmni) 12286 29 0 0
Semaphore Table (semmni) 6142 94 2 2
File Locks (nflocks) 4720 160 3 3
Pseudo Terminals (npty) 60 1 2 2
Buffer Headers (nbuf) na 482970 na na
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: nstrpty

sorry, I misunderstood the situation, in order for the new npty value to take effect you need a reboot since it isn't a dynamic kernel parameter.
****
Unix operates with beer.
BrianDoyle
Trusted Contributor

Re: nstrpty

I contacted HP and got the tioshow tool. This shows the orphaned sessions.