Operating System - HP-UX
1833758 Members
2627 Online
110063 Solutions
New Discussion

How can I guess the active number of threads in the system

 
SOLVED
Go to solution
fario
Occasional Advisor

How can I guess the active number of threads in the system

I'm trying to make a glance adviser script to determine the number of active threads. I'm using the thread_active_thread metric; but it gives me an error.

How could I obtain the active number of threads in my system (HPUX 11.0)?

Thanks in advance.
5 REPLIES 5
U.SivaKumar_2
Honored Contributor

Re: How can I guess the active number of threads in the system

Hi,
Hope this thread will help you.

http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x97d728e43106d6118ff40090279cd0f9,00.html

regards,
U.SivaKumar

Innovations are made when conventions are broken
harry d brown jr
Honored Contributor

Re: How can I guess the active number of threads in the system

Are you running glance version C.03.55 or higher? Have you checked to see if you needed any patches?

live free or die
harry
Live Free or Die
Brent Barton
Occasional Contributor
Solution

Re: How can I guess the active number of threads in the system

Here is a script that I use that utilizes q4 to report the number of kernel threads that are being used. Maybe this will help :

#!/usr/bin/ksh
/usr/contrib/bin/q4pxdb /stand/vmunix
sleep 3
/usr/contrib/bin/q4 -N /stand/vmunix /dev/mem <<-EOF
load struct kthread from kthread max nkthread
keep kt_stat != 0
quit
EOF
~
Thomas M. Williams_1
Frequent Advisor

Re: How can I guess the active number of threads in the system

Hopefully this isn't a stupid ?. What are the benefits of knowing this information?
I Think the Clock is Slow ...
Tom Danzig
Honored Contributor

Re: How can I guess the active number of threads in the system

You could use sar -v also:

14:00:46 text-sz ov proc-sz ov inod-sz ov file-sz ov
14:00:50 N/A N/A 620/1264 0 7801/12160
0 6512/21018 0

Here there are 620 active process.