Clear memory cache on Linux

tux_compIf your system memory usage becomes very high and you want to free the memory cache, try the following:

$ sudo sync;echo 3 | sudo tee /proc/sys/vm/drop_caches

P.S.: The sync; is very important to write anything unsaved to disk. Don’t miss it.

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s