You really want prstat - it does what top does, but it can take setting some switches to get what you want. For example prstat -L for lwp's.
The display is very much like top. And if you require to look like top exactly then you will have to script things together. Linux is BSD, Solaris is system V. A different world.
In general, the the unix rosetta stone helps finding 'commands like xxx from zzz on yyy unix':
Name prstat– report active process statistics Synopsis prstat [-acHJLmRrtTv] [-d u | d] [-C psrsetlist] [-h lgrplist] [-j projlist] [-k tasklist] [-n ntop[,nbottom]] [-p pidlist] [-P cpulist] [-s key | -S key ] [-u euidlist] [-U uidlist] [-z zoneidlist] [-Z] [interval [count]] Description The prstat utility iteratively examines all active processes on the system and reports statistics based on the selected output mode and sort order. prstat provides options to examine only processes matching specified PIDs, UIDs, zone IDs, CPU IDs, and processor set IDs.
The -j, -k, -C, -p, -P, -u, -U, and -z options accept lists as arguments. Items in a list can be either separated by commas or enclosed in quotes and separated by commas or spaces.
If you do not specify an option, prstat examines all processes and reports statistics sorted by CPU usage.
Options The following options are supported:
-a Report information about processes and users. In this mode prstat displays separate reports about processes and users at the same time.
发布评论
评论(4)
你确实想要 prstat - 它做 top 所做的事情,但它可能需要设置一些开关才能得到你想要的。例如 prstat -L 用于 lwp。
显示屏与顶部非常相似。如果您需要看起来完全像top,那么您将必须一起编写脚本。 Linux 是 BSD,Solaris 是 System V。一个不同的世界。
一般来说,unix 罗塞塔石碑有助于查找“类似 xxx from zzz on yyy unix 的命令”:
http://bhami。 com/rosetta.html
You really want prstat - it does what top does, but it can take setting some switches to get what you want. For example prstat -L for lwp's.
The display is very much like top. And if you require to look like top exactly then you will have to script things together. Linux is BSD, Solaris is system V. A different world.
In general, the the unix rosetta stone helps finding 'commands like xxx from zzz on yyy unix':
http://bhami.com/rosetta.html
点击
查看有关每个区域消耗的所有信息
hit
to see all information about each zone consumption
其中之一是 prtdiag。其他如
vmstat
、iostat
也值得一看One of them is
prtdiag
. Others likevmstat
,iostat
also worth taking a lookprstat -aZ
查看 prstat
prstat -aZ
Review prstat