Quote:
|
Originally Posted by MasterOfTheWind
Have always wondered why kernel decides to use the swap space when RAM is not fully filled by application memory?
|
The O/S try to always maintain as small amount or RAM free to ease future allocations.
When a process exits, all it's pages stored in RAM are freed, these free pages aren't filled by pages that are currently swapped out is there is no demand for them, so you can observe what you describes.
Quote:
|
Wouldn't it be better if some of the cached memory was removed and its place filled by the data stored on the swap partition?
|
No, why would you like unused pages to fill the precious RAM ?