Howto Free up used memory on a Linux operating system

Posted by HostsVault | Posted in How-To's | Posted on 29-06-2009-05-2008

0

Usually the kernel handles memory utilization pretty well it caches memory for dentry cache, page cache and inodes which improves IO speed and performance generally. But in some cases user applications needs lots of memory and we need to clear what’s called dirty memory which could be inodes already written to the disk, so now the kernel given us the option to manage this manually.

First of all Run sync command to flush all file system buffers

Then run one of this commands :

echo 1 > /proc/sys/vm/drop_caches

This will free only page caches

echo 2 > /proc/sys/vm/drop_caches

This will free inodes and dentry caches

echo 3 > /proc/sys/vm/drop_caches

This will free ALL

VN:F [1.8.1_1037]
Rating: 6.2/10 (40 votes cast)
VN:F [1.8.1_1037]
Rating: +2 (from 12 votes)
Howto Free up used memory on a Linux operating system6.21040
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Furl
  • Slashdot
  • StumbleUpon
  • Technorati

Write a comment