How to clean computer memory space?
Some times I stop a running program when calculation results start to diverge. But the free memory goes on decreasing with increasing number of program terminations. I do not have reboot authority to clean the occupied cashed memory. Is there some way so that I can increse the free memory space?
|
Quote:
Linux memory management works rather well. Cached memory is being freed when needed, no need to do this by hand (although there could be exceptions). If you really (which I doubt!!!) need to do this by hand: Code:
sync; echo 3 > /proc/sys/vm/drop_caches |
Quote:
I got the following message when I entered the commands. -bash: /proc/sys/vm/drop_caches: Permission denied Why I should decrease the occupied cashed memory is that cashed memory goes on increasing when running programs are terminated in the middle due to some numerical errors. This caused free memory required for computation less and less so the computation time increases. This is my experience. I donot the exact reson why inital small cashed memory goes on increasing after exitiing a running program. |
Quote:
Quote:
|
If a terminated calculation does not release used memory (and I am not talking about cache) than this is a bug in the program and you should contact the developers about that.
|
Before doing too much, you should take a look at http://www.linuxatemyram.com/.
It might save some confusion if the label on "free" memory were changed to "memory that is currently wasted because the kernel can't find anything productive to do with it". But, that's a bit much for a column heading, so we're stuck with "free". It is completely normal for the amount of "free" memory to tend toward zero as the system runs. Now, if this program is creating files in a tmpfs and they are not being deleted, that would indeed be a problem, and one that should be easily corrected. |
Quote:
|
All times are GMT -5. The time now is 04:48 PM. |