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)