huangzhen

查看内存使用情况:

[root@test-206 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3942       3711        230          0        302       2242
-/+ buffers/cache:       1167       2775
Swap:         8001         54       7946

在 kernel 2.6.16 以上可使用:

[root@test-206 ~]# echo 1 > /proc/sys/vm/drop_caches
[root@test-206 ~]# echo 2 > /proc/sys/vm/drop_caches

再看下内存使用情况:

[root@test-206 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3942       1888       2054          0          1        822
-/+ buffers/cache:       1064       2878
Swap:         8001         54       7946

 

 




分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-06-29
  • 2022-12-23
  • 2021-10-23
  • 2021-12-13
猜你喜欢
  • 2022-01-24
  • 2021-11-19
  • 2022-01-05
  • 2022-02-16
  • 2022-01-07
  • 2021-05-29
相关资源
相似解决方案