Re: Have the 2.4 kernel memory management problems on large machines

Alan Cox
2002-05-22T18:16:15Z

> You don't strictly even need to LRU it - you could just keep a pte count
> aroudn, and when it goes to zero you zap the pmd. You can use the normal
> page_count() thing for it.

That assumes you want to page out the page table only after the pages it
references are paged out. There is no reason I can see for not flushing it
first. Its very cheap to regenerate for non-anonymous pages - much cheaper
than the pages it references. Also the locality of most apps means that
there are zillions of glibc pages they reference only once (for init, and
for linker fixups/names)