1833783 Members
2799 Online
110063 Solutions
New Discussion

kcusage for HPUX 11.11?

 
SOLVED
Go to solution
Ameer Dixit
Advisor

kcusage for HPUX 11.11?

Hello,
I'm trying to determine how many threads a running process is using, to determine how close I am to my max_thread_proc setting. I see for HPUX 11.22 kcusage can do this, but does anyone know the similiar command for an rp5430 running 11.11?
Thanks.
4 REPLIES 4
D Block 2
Respected Contributor
Solution

Re: kcusage for HPUX 11.11?

glance can show you the number of threads or you can drill down to the actual Thr-ID.

also check you tune for nkthreads in the kernel.
Golf is a Good Walk Spoiled, Mark Twain.
Ermin Borovac
Honored Contributor

Re: kcusage for HPUX 11.11?

Here's how to get per-process thread usage with glance.

Create a file called syntax

PROCESS LOOP {
print PROC_PROC_ID, " ", PROC_PROC_NAME, PROC_THREAD_COUNT
}

Run glance with

$ glance -adviser_only -syntax syntax -j 5 -iterations 1 | sort -n -k3 | uniq

...
59 vxfsd 21
1359 rpcd 21
27381 httpd 27
27382 httpd 27
9591 java 31

The list above shows PID, process name and thread count.
Ameer Dixit
Advisor

Re: kcusage for HPUX 11.11?

That did it. Thank you very much!
Ameer Dixit
Advisor

Re: kcusage for HPUX 11.11?

Thanks.