What are the phases of swapping a page from the memory?
Page stealer searches the page eligible for swapping and places the page number in the list of pages to be swapped.
Kernel copies the page to a swap device when essential and clears the valid bit in the page table entry, decrements the pfdata reference count, and places the pfdata table entry at the end of the free list if its reference count is 0.