What Is Inactive Memory in Linux?
Contents Inactive Memory Is Memory That Was Allocated to a Process That Is No Longer Running. How Do I Reclaim Inactive Memory in Linux? Every Linux System Has...
Contents
Inactive memory is memory that was allocated to a process that is no longer running.
How do I reclaim inactive memory in Linux?
Every Linux System has three options to clear cache without interrupting any processes or services.
- Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.
- Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.
- Clear pagecache, dentries, and inodes. …
- sync will flush the file system buffer.
What are inactive pages in Linux?
The Inactive pages are the first candidate for eviction should the system come under memory pressure. High values are not harmful and it is a general behavior of Linux to keep as much cached as opposed to free as possible (it’s for better performance in the case of frequently-used items).