OS not releasing resident memory after process dies

Hi
My application is running on a 64 bit linux, running 32bit code.
After my process is killed after hitting 4G resident memory consumption, not all the memory is released to the OS, even though the process is killed.
What can cause OS not to release the memory after the process is killed?

Thanks
Jamie
jamie_lynnAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph GanSystem AdminCommented:
0
arichakraCommented:
Try using sync command ($ sync) or restart.
0
LMiller7Commented:
This is completely normal and good.
Freeing memory is a very quick and easy operation, while reloading anything from disk is a much more complex and time consuming operation. When an application closes the system does not immediately free memory used by code and some other support files in the event that it might be needed again. If it is then your applications perform better. If not, then the memory can be quickly freed when it is needed for some other purpose.

All modern operating systems do this.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.