Linux memory management
From Noah.org
Revision as of 18:20, 16 January 2014 by Root (talk | contribs) (Created page with 'Category: Engineering ;slab: ;dentry: inode: ;pagecache: == drop caches == This should only be used for performance testing where you want to be sure caching is not distor…')
- slab
- dentry
inode:
- pagecache
drop caches
This should only be used for performance testing where you want to be sure caching is not distorting run times between runs.
This action is guaranteed to be harmless and non-destructive. This will only free non-dirty pages, so if you want to be sure you free as much as possible you should run sync before dropping caches.
To free pagecache: echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: echo 3 > /proc/sys/vm/drop_caches
/proc/sys/vm/drop_caches