memory not released after running program
Hi,
I am programming in Emacs and Ubuntu8.10.
I have finished running my C++ program from Emacs, even exited Emacs, however the memory used by my program is still held by the system. System monitor shows this in the memory and swap charts under "Resources" tab, but does not show the process that takes that large amount of memory in its "Processes" tab, so I have no clue how to release the memory. Is there a bash command that can release memory? Also even if there is no deallocation of memory in the code, why after the program finishes its running it does not release the memory used?
Thanks and regards!
My problem System not releasing memory and Drop_cache file not their in LInux4.0
Quote:
Originally Posted by
Kennedy
Through 2.6.18 (at a minimum) Yes. Check out the LKML about it. I cannot remember if that is where I made my stink (Don't have those e-mails anymore -- another job). . . But writing 3 to drop_caches didn't work -- PERIOD. So, if you want to you can disagree -- you're still wrong.
When i am using (sync; echo 3 > /proc/sys/vm/drop_caches) its working fine in Linux 5.0 onwards. But in 4.0 A.S version Drop_caches folder is not their . I am facing problem that system is not relesing memory.Please help me How to clear unwanted cache in Linux4.0 versions.
AVL