1. 程式人生 > >linux內存管理

linux內存管理

linux內存管理

  • $ sync

  • $ free -m

  • total used free shared buffers cached

  • Mem: 7752 1590 6162 2 274 457

  • -/+ buffers/cache: 858 6894

  • Swap: 7887 0 7887

  • $ echo 1 > /proc/sys/vm/drop_caches 釋放 pagecache

  • $ echo 2 > /proc/sys/vm/drop_caches 釋放 dentries和inodes

  • $ echo 3 > /proc/sys/vm/drop_caches 釋放 pagecache, dentries和inodes



本文出自 “chenqj” 博客,請務必保留此出處http://chenqj.blog.51cto.com/13330293/1970112

linux內存管理