Linux 内存空间使用情况概览

free查看内存使用情况如下:

                  total            used          free         shared   buffers     cached
Mem:        123124      95328      27796        244      28612      20916
-/+ buffers/cache:      45800      77324
Swap:            0          0          0

实际上free      buffers     cached这三块才是可用的内存。

再看一下是那些进程使用掉了这45800的内存;

top命令查看:

Mem: 95412K used, 27712K free, 244K shrd, 28612K buff, 20912K cached
CPU:   0% usr   1% sys   0% nic  97% idle   0% io   0% irq   0% sirq
Load average: 4.86 1.35 0.46 1/94 1287
  PID      PPID     USER     STAT       VSZ     %VSZ     %CPU     COMMAND
 1281  1263      root        R         3076       2%        1%            top
 1108     1         root        S          172m     143%   0% /usr/bin/sys_mainpage
  979     2          root        SW         0              0%   0% [kworker/0:2]
  956     2          root        DW         0              0%   0% [ali_logsm]
  781     2          root        DW         0              0%   0% [hdcp_thread]
 1097     1         root        S           26656      22%   0% aui_testbench --network
 1041     1         root        S           5292         4%   0% /usr/sbin/lircd -u -d /dev/lirc0
 1263     1         root        S           3076         2%   0% -/bin/sh
    1     0            root        S           2896          2%   0% init
 1011     1         root        S           2896          2%   0% /sbin/klogd -n
 1063     1         root        S           2896          2%   0% /usr/sbin/telnetd
  441     2          root        DW         0                0%   0% [ali_rpc]
  978     2          root        SW         0                0%   0% [kworker/u2:2]
    7     2            root        SW         0                0%   0% [rcu_preempt]
  837     2          root        DW         0               0%   0% [ali_tsg_xfer_ta]
   12     2           root        SW         0                0%   0% [kworker/u2:1]
    6     2            root        SW         0                0%   0% [kworker/u2:0]
   10     2           root        SW         0               0%   0% [kdevtmpfs]
    2     0            root        SW         0               0%   0% [kthreadd]

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值