免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1933 | 回复: 7
打印 上一主题 下一主题

vmstat一个参数的疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-10 15:59 |只看该作者 |倒序浏览
vmstat执行一把
有关cpu的参数有3个,之前论坛有大虾已经论述过
这里先应用一把
procs:
r-->在运行队列中等待的进程数
b-->在等待io的进程数
w-->可以进入运行队列但被替换的进程
这个w是指什么呢

在sloaries上man拉一把,
w 就是swap

google一把,但是是指linux
w: The number of processes swapped out but otherwise runnable. This
field is calculated, but Linux never desperation swaps.
有这样的解释,说实话,有些晕

又翻拉一本linux操作系统的教材
书上面的进程状态表上对于进程有7种状态
还特别指出
TASK_SWAP在linux 2.2.x版本已经基本不使用,在2.4.x版本中没有这种状态
这个SWAP就是指交换进程,正在执行内存,外存的交换工作


可是这同可以进入运行队列但被替换的进程 ???是什么关系呢
大虾教我

论坛徽章:
0
2 [报告]
发表于 2006-02-10 16:10 |只看该作者
The fields of vmstat's display are
     procs
             r     in run queue
             b     blocked for resources I/O, paging etc.
            w     swapped

     memory (in Kbytes)
              swap -  amount  of  swap   space   currently   available               
              free   - size of the free list

     page ( in units per second).
           re    page reclaims -  see  -S  option  for  how  this field is modified.
           mf    minor faults -  see  -S  option  for  how    this field is modified.
           pi    kilobytes paged in
           po    kilobytes paged out
           fr    kilobytes freed
           de    anticipated short-term memory shortfall (Kbytes)
           sr    pages scanned by clock algorithm

     disk  ( operations per second )
           There are  slots for up to four disks, labeled with a single letter and number.
           The letter indicates  the  type  of  disk  (s = SCSI, i = IPI, etc) . The number is  
           the logical unit number.

     faults
            in    (non clock) device interrupts
           sy    system calls
           cs    CPU context switches

     cpu  -   breakdown of percentage usage of CPU  time.  On multiprocessors  this is an a
                verage across all processors.
           us    user time
           sy    system time
           id    idle time

论坛徽章:
0
3 [报告]
发表于 2006-02-10 16:50 |只看该作者

w swapped?如何解释呢

老大,我也man了一把,我说过拉阿,我也看到拉这个结果,可是我还是不懂阿,您
能详细解析一把吗?好感谢哦

论坛徽章:
0
4 [报告]
发表于 2006-02-10 16:55 |只看该作者
因该是主要显示你的swap的交换的情况.(没有很详细的研究过这个W)

[ 本帖最后由 风之幻想 于 2006-2-10 16:56 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-02-10 18:12 |只看该作者
关注一下;

论坛徽章:
0
6 [报告]
发表于 2006-02-10 22:32 |只看该作者
The man page in Solaris 10 is more clear.
But It doesn't  help if you don't understand what swap it is.


                     r        the number of kernel threads in run
                              queue

                     b        the  number   of   blocked   kernel
                              threads   that   are   waiting  for
                              resources I/O, paging, and so forth

                     w       the number of  swapped  out  light-
                              weight  processes  (LWPs)  that are
                              waiting for processing resources to
                              finish.

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-05-28 06:20:00
7 [报告]
发表于 2006-02-11 16:34 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2006-02-17 09:50 |只看该作者
又翻拉一本linux操作系统的教材
书上面的进程状态表上对于进程有7种状态
还特别指出
"TASK_SWAP在linux 2.2.x版本已经基本不使用,在2.4.x版本中没有这种状态
这个SWAP就是指交换进程,正在执行内存,外存的交换工作"
其实我想问的shi这个swap就是对应VMStat中的w参数,
可是书上解释感觉这是一个废弃的功能哦,有些疑惑阿
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP