Memory pages:
file page The file page in the tmpfs file system is placed in the file page
anon page for
How are ordinary pages managed?
do_anonymous_page --> page_add_new_anon_rmap
Who does the page->mapping of the anonymous page point to?
1150 anon_vma = (void *) anon_vma + PAGE_MAPPING_ANON(0x1);
1151 page->mapping = (struct address_space *) anon_vma;
1152 page->index = linear_page_index(vma, address);
Therefore, the mapping of anonymous pages is also pointed, and each page is linked to anon_vma through an anon_vma node
Page reclamation and configuration of pages obtained in the kernel cache
Well, now every time a page is allocated, we know the source. For anonymous pages, in addition to page->mapping, it will point to anon_vma, and then to vm_struct,
For file system pages, you can also point to address_space through page->mapping
What about other pages? slab, what type of page is the binary of the process?