prstat -mL and its threads

Hi!

regarding the microstate accounting -m

and showing it per thread basis -L

what does this mean for my specific processrwipqs ?

Does this process (PID 14779) have 48 threads?

What does it mean for the manyjava processes?

Or are these the number of threads on the right side?

eg. second line 'java/39'

is this thread number 39 ?

$ prstat -mL

PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID

14779 vipuser19 77 ---- 1.2 -37 646 .3M 70K rwipqs/48

14691 vipuser 5.0 0.1 ----67 -9 39 1221 java/39

14691 vipuser 4.5 0.1 ----70 -7 34 1101 java/25

14691 vipuser 4.3 0.1 ----68 -7 35 1011 java/31

11686 root3.7 0.1 ----52 -4 24 1950 orca/1

14691 vipuser 3.4 0.1 ----69 -6 28 861 java/54

14691 vipuser 2.0 0.0 ----72 -3 15 480 java/12

14691 vipuser 1.8 0.1 ----69 -13 13 200 java/2

14691 vipuser 1.7 0.0 ----72 -2 12 400 java/55

14691 vipuser 1.3 0.0 ----70 -2 10 330 java/61

14691 vipuser 1.1 0.0 ----74 -29 270 java/60

14691 vipuser 1.0 0.0 ----74 -28 220 java/24

14691 vipuser 0.8 0.0 ----74 -16 180 java/23

7563 vipuser 0.1 0.7 ----51 -22 7930 top/1

14691 vipuser 0.7 0.0 ----71 -0410 java/8

14691 vipuser 0.6 0.0 ----71 -0310 java/9

7539 root0.4 0.0 ----51 -32 480 sshd/1

14691 vipuser 0.2 0.0 ----74 -0130 java/57

$ prstat -mL -p 14779

PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID

14779 vipuser 0.0 83 ---- 0.0 -49 685 .3M 75K rwipqs/48

14779 vipuser 0.0 0.0 ---- 0.0 -794 600 rwipqs/1

Furthermore ...

if 'top' shows for the processrwipqs on a 2 CPU machine 50% cpu utilization, does this mean one CPU is 50% utilized?

-- Nick

[1864 byte] By [der_nikia] at [2007-11-26 19:42:16]
# 1

> Hi!

>

> regarding the microstate accounting -m

> and showing it per thread basis -L

>

> what does this mean for my specific process

> rwipqs ?

> Does this process (PID 14779) have 48 threads?

At least at one time it did. I suppose some of the lower threads might have exited.

'ps' will also show thread counts with 'nlwp' (or per-thread data with -L). For instance, 'nscd' often has several threads:

# ps -o 'user,pid,nlwp,args' -p 222

USERPID NLWP COMMAND

root22210 /usr/sbin/nscd

10 in this case.

> What does it mean for the many java

> processes?

> Or are these the number of threads on the right

> side?

Yes, since you asked for per-thread statistics, each line represents one thread, with the /xx being a thread identifier.

> eg. second line 'java/39'

>

> is this thread number 39 ?

Yes. Note the header:

PROCESS/LWPID

and the man page:

PROCESS

The name of the process (name of executed file).

LWPID The lwp ID of the lwp being reported.

LWP being "lightweight process" or thread.

> urthermore ...

> if 'top' shows for the process rwipqs on a 2

> CPU machine 50% cpu utilization, does this mean one

> CPU is 50% utilized?

No. Except for 'mpstat', cpu figures are almost always shown in aggregate. So 50% is one CPU.

--

Darren

Darren_Dunhama at 2007-7-9 22:24:09 > top of Java-index,General,Talk to the Sysop...