(ZT)aix的svmon命令解析(翻译红皮书)

1.global report
-G:显示整个系统中实际内存和分页空间的使用的统计信息。
# svmon -G
            size    inuse    free        pin virtual
memory    8192000 3356775 4835225     521403 3219786
pg space 4194304    8721
            work    pers    clnt
pin       521163       0        240
in use    3219786    48974    88015
PageSize PoolSize    inuse    pgsp        pin virtual
s 4 KB       - 3272583    8721     472491 3135594
m   64 KB       -    5262       0    3057    5262

其中
memory行显示了内存总量,使用量,钉入量和虚拟总量
pg space行显示了分页空间的使用量
pin行显示了正在用的钉入量,永久钉入量和客户量
in use显示了总内存的工作页面量,永久页面量,客户端页面量
如想将oracle进行lock_sga设置,可以查看PIN值来确认是否生效
要使pin生效必需vmtune -S 1


2.User report
-U 可以查看用户的用量
svmon -U oracle
===============================================================================
User                               Inuse    Pin     Pgsp   Virtual   LPageCap
oracle                             1897660     3007   1210399   1459736       N
计算出其大小为       7412M 11M 4728M   5702M
...............................................................................
SYSTEM segments                   Inuse    Pin     Pgsp   Virtual
                                     3236     2089     1935     4889
                                     13M    8M        8M    
...............................................................................
EXCLUSIVE segments                Inuse    Pin     Pgsp   Virtual
                                  1893883    918   1208317   1453304
                                     7398    4M
SHARED segments                   Inuse    Pin     Pgsp   Virtual
                                    541        0    147     1543
                                    2M
在以上表中SYSTEM是所有系统共用段,EXCLUSIVE是此用户专用段,SHARED段是共享段


3.command report
-C 可以统计命令的内存使用情况

svmon -C oracletest
----------------------------------------
可以统计oracletest命令的所有内存使用情况
在其中也分为SYSTEM,EXCLUSIVE,SHARED三段,在其中将会发现SHARED段很大,那是因为其与其它oracle进程共用的结果
在整个输出中,其类型分为
work 表示进程和内存共享段的区域
perm 表示文件目录,日志,大文件等使用段,其代表了文件操作所用内存的值
clie 表示NFS,CDROM等文件系统使用段

4.process report
-P 可以统计进程使用的内存情况

svmon -P
----------------------------------------
可以查看所有进程的内存使用情况,加上PID可以查看单个进程的内存使用情况
能过此种方式,可以标识所用命令
通过上述命令获得的命令名,再通过svmon -C来查看其专用内存段,进行对比,可以区分出不同命令所用内存多少,对oracle不同进程之间的分析有用

svmon -P -t 3 -i 5,该命令每5秒种输出一次最耗内存的前3个进程。

 

Process Report

       The process report is printed when the -P flag is specified. The column headings in a process report are:
       Pid
            Indicates the process ID.
       Command
            Indicates the command the process is running.
       Inuse
            Indicates the total number of pages in real memory in segments that are used by the process.
       Pin
            Indicates the total number of pages pinned in segments that are used by the process.
       Pgsp
            Indicates the total number of pages reserved or used on paging space by segments that are used by the process.
       Virtual
            Indicates the total number of pages allocated in the process virtual space.
       64-bit
            Indicates if the process is a 64 bit process (Y) or a 32 bit process (N).
       Mthrd
            Indicates if the process is multi-threaded (Y) or not (N).
       16MB
            Indicates the 16MB page status of the process. "M" stands for mandatory, "Y" means that the process uses or has used
            16MB page segments and "N" means that the process does not use 16MB pages.

            If the process uses pages of a size other than the base 4KB page size, these statistics are followed by the
            distribution between the different page sizes.

       After process information is displayed, svmon displays information about all the segments the process uses. Information
       about segment are described in the paragraph Segment Report

       If the -q flag is specified, only processes using segments of the requested size are reported. Note that all of the
       segments for these processes are reported. If a list of processes is specified, an error is reported for each process not
       using segments of the requested size.

进程报告

只有指定了 -P 标志,才打印进程报告。进程报告中的列标题是:

Pid 表示进程标识符。 命令 表示进程在运行的命令。 正在使用 表示进程使用的段中的实内存的页面总数。 固定内存 表示进程使用的段中固定内存的页面总数。 调页空间 表示进程使用的段在调页空间上保留或使用的页面总数。 虚拟 表示在进程虚拟空间中分配的页面总数。 64 位 表示该进程是否是 64 位进程(Y)或 32 位进程(N)。 多线程 表示该进程是否是多线程的(Y)或不是多线程的(N)。 大页面 表示进程的大页面状态。“ M”表示强制性,“ Y”表示进程使用或已经使用大页面段,“ N”表示进程不使用大页面。

如果定义了大页池,那么在不同页面大小间的分布跟随这些信息。

显示进程信息之后,svmon 显示关于进程使用的所有段的信息。段落段报告描述了段的信息。

如果指定了 -q 标志,那么只报告标记为大页面进程(LPage)的进程。注意要报告这些进程中所有的段。如果指定了一列进程,那么就会向未标记为大页面的每个进程报告错误。

段报告

只有指定了 -S 标志,才打印段报告。段报告中的列标题是:

Vsid 表示虚拟段标识符。表示在虚拟内存管理器中的唯一段。 Esid 表示有效的段标识符。Esid 只有在段属于进程的地址空间时才有效。提供时,它表示进程如何使用段。如果 vsid 段被几个进程映射,但具有不同的 esid 值, 那么该字段包含“-”。如果是那样的话,那么通过应用于使用该段的每个进程标识符的 -P 标志,可以获得精确的 esid 值。因为用于管理打开的文件或多线程结构的段不是进程的用户地址空间的一部分,所以也对这些段显示“-”。 类型type 表示段的类型:
  • 持久表示持久的段
  • 工作表示工作段
  • 客户表示客户段
  • 映射表示映射的段
  • 实映射表示实内存映射段
描述 description 给出段的文本描述。列的内容取决于段的类型和用途

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/386081/viewspace-484084/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/386081/viewspace-484084/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值