December 11, 2017, 01:17:37 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Linux Swapper  (Read 2785 times)

Offline ministre

  • New Member
  • Posts: 1
Linux Swapper
« on: September 12, 2004, 02:58:25 AM »
Hello,

I have a question about the functioning of the linux swapper. I am looking at kernel 2.4.26. I am also refering to the o'reilly book "undestanding the linux kernel".

From what I undestand, when the system runs low on physical memory, linux goes through the page table of user processes and swaps out some pages to the swap cache which are then periodically flushed to disk (swap partition)

My question is the following:
The pages that store the page tables themselves (i.e the pages that store the pgd, pmd and pte), are those pages ever swapped out ? Or is it the case that only pages that contain data, code, stack, heap  etc... are swapped out while pages that contain the page tables themselves are never swapped out.

Thanks