Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1124348
  • 博文数量: 188
  • 博客积分: 2267
  • 博客等级: 大尉
  • 技术积分: 1907
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-01 11:17
文章分类

全部博文(188)

文章存档

2016年(16)

2015年(16)

2014年(12)

2013年(32)

2012年(45)

2011年(67)

分类: LINUX

2012-03-06 09:48:34

1. free -m
2. sync
3. echo 3 > /proc/sys/vm/drop_caches



关于drop_caches的官方说明如下:

  Writing to this file causes the kernel to drop clean caches,dentries and inodes from memory, causing that memory to becomefree.

  To free pagecache, use echo 1 > /proc/sys/vm/drop_caches;

  to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;

  to free pagecache, dentries and inodes, use echo 3 >/proc/sys/vm/drop_caches.

  Because this is a non-destructive operation and dirty objects are not freeable, the user should run sync first.

阅读(1183) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~