手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux认证辅导:fs-增加swap

[日期:2011-12-26] 来源:Linux社区  作者:sweetsingle [字体:大 中 小]

free 查看监控系统的内存的使用情况

[root@localhost ~]# free --h

free: invalid option -- -

usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]

  -b,-k,-m,-g show output in bytes, KB, MB, or GB

  -l show detailed low and high memory statistics

  -o use old format (no -/+buffers/cache line)

  -t display total for RAM + swap

  -s update every [delay] seconds

  -c update [count] times

  -V display version information and exit

[root@localhost ~]# free

             total       used       free     shared    buffers     cached

Mem:         89032      86476       2556          0        992      32048

-/+ buffers/cache:      53436      35596

Swap:      1081336      49636    1031700

//可以查看到swap

 

---------------

 

top 可以查看存储设备内存使用的情况

[root@localhost ~]# top --h

        top: procps version 3.2.7

usage:  top -hv | -bcisSHM -d delay -n iterations [-u user | -U user] -p pid [,pid ...]

[root@localhost ~]# top

top - 18:52:54 up 17 min,  3 users,  load average: 2.03, 1.73, 0.82

Tasks: 113 total,   1 running, 112 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:     89032k total,    86616k used,     2416k free,      984k buffers

Swap:  1081336k total,    49636k used,  1031700k free,    32048k cached

 

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           

    1 root      15   0  2064  536  512 S  0.0  0.6   0:09.71 init              

    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/

 

----------------

linux
相关资讯      
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款