Information Technology Reference
In-Depth Information
-z <name> : Lists information about processes in the specified Container or
Containers.
In the following example, notice that the output is arranged in two sections.
The upper section provides the default output of prstat . The lower section sums
up data from each Container, including the amount of virtual memory ( SIZE ) and
RAM ( RSS ) used by the Container's processes.
GZ# prstat -Z
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
25586 root 9760K 8944K sleep 59 0 0:00:07 4.2% svc.configd/15
25506 root 9728K 8920K sleep 59 0 0:00:07 3.8% svc.configd/13
25583 root 7576K 6608K sleep 59 0 0:00:02 0.7% svc.startd/14
25504 root 7488K 6488K sleep 59 0 0:00:01 0.5% svc.startd/12
25948 root 4984K 3760K sleep 59 0 0:00:00 0.2% inetd/4
25646 root 4984K 3760K sleep 59 0 0:00:00 0.2% inetd/4
25538 root 5808K 3080K sleep 59 0 0:00:00 0.0% zoneadmd/4
25487 root 5808K 3080K sleep 59 0 0:00:00 0.0% zoneadmd/4
1 root 2472K 424K sleep 59 0 0:00:18 0.0% init/1
ZONEID NPROC SIZE RSS MEMORY TIME CPU ZONE
246 22 84M 51M 0.4% 0:00:09 5.3% ProdWeb1
245 22 84M 51M 0.4% 0:00:08 4.6% DevApp1
0 47 235M 54M 0.4% 1:41:59 0.2% global
Total: 91 processes, 359 lwps, load averages: 0.55, 0.13, 0.04
The next example limits the output to just those processes that belong to a
specific Container.
GZ# prstat -z myzone
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
10702 root 0K 0K sleep 60 - 0:00:00 0.0% zsched/1
10829 root 4952K 3084K sleep 59 0 0:00:01 0.0% nscd/22
10872 root 1960K 1392K sleep 59 0 0:00:00 0.0% ttymon/1
10761 root 3892K 1660K sleep 59 0 0:00:00 0.0% svc-dlmgmtd/1
10756 root 8460K 6880K sleep 59 0 0:00:01 0.0% svc.startd/11
10870 root 1640K 852K sleep 59 0 0:00:00 0.0% utmpd/1
10736 root 2352K 1312K sleep 59 0 0:00:00 0.0% init/1
10792 daemon 1888K 1176K sleep 59 0 0:00:00 0.0% kcfd/2
10758 root 10M 9468K sleep 59 0 0:00:03 0.0% svc.configd/14
Total: 9 processes, 54 lwps, load averages: 1.44, 1.37, 1.35
If you use the dedicated-cpu feature of zonecfg , or if you use poolcfg to cre-
ate processor sets and pools for Containers, poolstat and mpstat will be useful.
 
Search WWH ::




Custom Search