> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Free up memory on Ubuntu
- URL: https://helpmonks.com/blog/free-up-memory-on-ubuntu/
- Published: 2012-07-30T00:00:00.000Z
- Updated: 2026-04-04T01:57:46.000Z
- Description: I've noticed that doing a extraction of a large archive (with tar) or moving files around the network (with scp) takes up all memory of the Ubuntu server. Ju
- Author: Nitai
- Tags: email marketing

I’ve noticed that doing a extraction of a large archive (with tar) or moving files around the network (with scp) takes up all memory of the Ubuntu server. Just today, I extracted a 33GB archive at the process “eaten” up 28GB of memory, which would be fine if the process would free up the memory after using it. Unfortunately, this is not the case.

So, in order to free up memory again one has to issue the following command:

\[code\]  
sync  
sudo echo 3 > /proc/sys/vm/drop\_caches  
\[/code\]

The “echo 3 > /proc/sys/vm/drop\_caches” command is used to clean up your memory from pagecache, dentries and inodes.

This effectively frees up the used memory.