Initiating Memory Reclaim

In the implementation overview at the beginning of this chapter, I demonstrated that the page selection and swap-out routines discussed so far are controlled by a further layer that decides when and how many pages are reclaimed. This decision is redirected to two places — first to the kswapd daemon that attempts to maintain optimal memory balance in the system when no too-memory-intensive applications are running; and second to an emergency mechanism that kicks in when the kernel thinks it is nearly totally out of memory.

Was this article helpful?

+1 0

Post a comment