0

This question already has an answer here:

I have a computer with ubuntu 12.04 installed. Unfortunately, when I run a memory taking program, it fills the RAM and uses the SWAP space. Then after the program terminates, the memory is completely released, but a considerable portion of the swap is occupied and I have to restart my computer to release that part.

The program does not have memory leak. Is there any way to clean that swap? Why such thing happens? (I regularly install the updates)

marked as duplicate by Avinash Raj, Eric Carvalho, falconer, BuZZ-dEE, Mahesh Mar 2 '14 at 10:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • possible duplicate askubuntu.com/q/1357/71679 – damien Feb 28 '14 at 4:04
  • That question is totally different! I have already checked that. It asks why the system is using swap while the RAM is empty; I am asking why the OS does not release the swap after terminating the program! – orezvani Feb 28 '14 at 4:17
  • swap on swap off is the answer you are looking for which is in the answers given – damien Feb 28 '14 at 4:34
  • Appreciating your effort to make this web site better, first of all, answer "may be" the same, but the question is totally different and u don't usually look for your answer in another question. Besides, the marked answer to that question is different and you can check it. – orezvani Feb 28 '14 at 4:53
  • 1
    The difference you state does not make any difference. The accepted answer explains why you need not worry, and the next answer tells you how to do it in case you absolutely need to. – Mahesh Mar 2 '14 at 10:36

Browse other questions tagged or ask your own question.