Skip to contentSkip to conversation

What is the active page in Linux kernel, so inactive?

DISCUSSION Bin Chen 1 participant 1 message Mar 30, 2007

lore
Share & tools
lore

Bin Chen

author
#0 lore raw

I am quite confusing about the concept that Linux usage of the term active and inactive pages. Some book tells me active pages is the 'working set' in system, but what is the 'working set'? There is a page cache system in the system, and when a page is freed when not needed by some way, the page will first considered be added to the page cache. Once some stuff need more pages, it also get it from page cache.

So it is easy to understand that there is two list in the page cache, one for 'used' pages, that is, the page actually used by some one. And the other one is 'unused', that is, unused by any one but is still cached.

But I doubt whether the 'used' and 'unused' correspond to active and inactive correctly? If I am right, when the system memory is tight, the pages in the active list will be swapped out and the pages will be added to the inactive list? Or the pages that has swapped out go directly to the buddy allocator?

Thanks in advance.

abai