We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
An older version (3.51) is available on the Solaris companion CD from Sun, with the disclaimer that this is "Community (not Sun) supported". More recent binary packages available from sunfreeware.com or blastwave.org.
load averages: 0.02, 0.00, 0.00; up 2+12:31:38 08:53:58
31 processes: 30 sleeping, 1 on cpu
CPU states: 98.0% idle, 0.0% user, 2.0% kernel, 0.0% iowait, 0.0% swap
Memory: 1024M phys mem, 197M free mem, 512M total swap, 512M free swap
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
1898 martin 1 54 0 3336K 1808K cpu 0:00 0.96% top
7 root 11 59 0 10M 7912K sleep 0:09 0.02% svc.startd
vmstat
System configuration: lcpu=4 mem=12288MB ent=2.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
2 1 1614644 585722 0 0 1 22 104 0 808 29047 2767 12 8 77 3 0.45 22.3
列“avm”和“fre”告诉您总内存和可用内存。
“man vmstat”应该可以让你了解血淋淋的细节。
"top" is usually available on Solaris.
If not then revert to "vmstat" which is available on most UNIX system.
It should look something like this (from an AIX box)
vmstat
System configuration: lcpu=4 mem=12288MB ent=2.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
2 1 1614644 585722 0 0 1 22 104 0 808 29047 2767 12 8 77 3 0.45 22.3
the colums "avm" and "fre" tell you the total memory and free memery.
The command free is nice. Takes a short while to understand the "+/- buffers/cache", but the idea is that cache and buffers doesn't really count when evaluating "free", as it can be dumped right away. Therefore, to see how much free (and used) memory you have, you need to remove the cache/buffer usage - which is conveniently done for you.
发布评论
评论(5)
这是基础知识。 但我不确定这些是否算“清晰且简单”。
ps(1)
对于进程级视图:
vsz/VSZ:总虚拟进程大小(kb)
rss/RSS:驻留集大小(kb,可能不准确(! ),参见 man)
osz/SZ:内存中的总大小(页)
要从页计算字节大小:
vmstat(1M)
prstat(1M )
swap(1)
“长列表”和“摘要”模式:
top(1)
Sun 的 Solaris 配套 CD 上提供了旧版本 (3.51),并声明这是“社区(不支持 Sun)”。
sunfreeware.com 或blastwave.org 提供了更多最新的二进制软件包。
sar(1M)
sar
到底出了什么问题? :)Here are the basics. I'm not sure that any of these count as "clear and simple" though.
ps(1)
For process-level view:
vsz/VSZ: total virtual process size (kb)
rss/RSS: resident set size (kb, may be inaccurate(!), see man)
osz/SZ: total size in memory (pages)
To compute byte size from pages:
vmstat(1M)
prstat(1M)
swap(1)
"Long listing" and "summary" modes:
top(1)
An older version (3.51) is available on the Solaris companion CD from Sun, with the disclaimer that this is "Community (not Sun) supported".
More recent binary packages available from sunfreeware.com or blastwave.org.
sar(1M)
And just what's wrong with
sar
? :)“top”通常在 Solaris 上可用。
如果没有,则恢复到大多数 UNIX 系统上可用的“vmstat”。
它应该看起来像这样(来自 AIX 机器),
列“avm”和“fre”告诉您总内存和可用内存。
“man vmstat”应该可以让你了解血淋淋的细节。
"top" is usually available on Solaris.
If not then revert to "vmstat" which is available on most UNIX system.
It should look something like this (from an AIX box)
the colums "avm" and "fre" tell you the total memory and free memery.
a "man vmstat" should get you the gory details.
Top 可以从源代码编译或从 sunfreeware.com 下载。 正如之前发布的,vmstat 可用(我相信它在核心安装中?)。
Top can be compiled from sources or downloaded from sunfreeware.com. As previously posted, vmstat is available (I believe it's in the core install?).
命令
free
很好。 需要一段时间来理解“+/-缓冲区/缓存”,但其想法是,在评估“空闲”时,缓存和缓冲区实际上并不重要,因为它可以立即转储。 因此,要查看您有多少可用(和已用)内存,您需要删除缓存/缓冲区的使用 - 这对您来说很方便。The command
free
is nice. Takes a short while to understand the "+/- buffers/cache", but the idea is that cache and buffers doesn't really count when evaluating "free", as it can be dumped right away. Therefore, to see how much free (and used) memory you have, you need to remove the cache/buffer usage - which is conveniently done for you.