Solaris学习笔记(1)
作者: Badcoffee
Email: blog.oliver@gmail.com
Blog: http://blog.csdn.net/yayong
2005年6月
这方面比较好的参考资料有:
1. Solaris internal
Jim Mauro and Richard McDougall写的这部书实 在是太经典了,第一版是有中文版的,
第二版马上也要出了。下面是这本书的网站,上面有作者的blog和其他一些有用的资料:
http://www.solarisinternals.com
2. Sun官方文档站点
http://docs.sun.com
Solaris的man手册,更有很多有用的学习资料,比如mdb,dtrace的手册,都能够在这里找到。
下面就是我学习mpstat命令的笔记,就先从这里开始吧。
mpstat(1M)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES
NAME
- mpstat– report per-processor or
per-processor-set
statistics
报告每个处理器或每个处理器集合的统计数据
SYNOPSIS
- /usr/bin/mpstat [-aq]
[-p| -Pset] [interval
[count]]
DESCRIPTION
- mpstat命令报告如下信息:
- CPU or SET
-
Without the -a option, mpstat reports CPU statistics for a processor ID. With the -a option, mpstat reports SET statistics for a processor set ID.
- 没有-a选项,mpstat以处理器ID来报 告CPU统计数据。有-a选项,mpstat以SET(处理器集合)ID来报告SET统计数据
- 问题:什么是SET?他和CPU差别?
The mpstat command reports processor statistics in tabular form. Each row of the table represents the activity of one processor. The first table summarizes all activity since boot. Each subsequent table summarizes activity for the preceding interval. All values are rates listed as events per second unless otherwise noted.
mpstat命令以列表形式报告处理器统计数据。表格的每行对应一个处理器的活动状态。第一个表格统计了从系统引导以来的任何活动数据。接下来
每个顺序的表统计了到之前表时间间隔的活动数据。除非特别注明,任何列出的数据是按照每秒种事件速率。
During execution of the kernel status command, the state
of the kernel can change. If relevant, a state change message is
included
in the mpstat output,
in one of the following forms:
在执行内核状态命令时,内核的状态会改变。假如相关,状态改变的信息被包括在mpstat的输出里,能够是下面的形式:
< |
The mpstat command reports the following information:
器集合上。 周详信息能够看psrset(1M)。例如,能够创建一个具备两个 CPU 的处
理器集,将我们的关键 应用的进程和该处理器集绑定。另外,禁止该处理器集中的
CPU 上的中断,从而不会有中断发 生在该处理器集中的处理器上。这样,这2个
CPU就只为我们的关键应用服务了,从而确保服务 稳定而且高效。
- minf
-
minor faults
- 辅助错误minor faults个数
- mjf
-
major faults
- 主要错误major faults个数
Solaris虚拟内存管理是借助MMU来实现的,一般MMU定义了三种异常:
major page faults、minor page faults、protection faults
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




