I am studying transparent huge page (THP) in Linux.
I am trying to call __get_free_pages(GFP_KERNEL|__GFP_COMP, mysize) to ask kernel to allocate 2MB huge pages for me.
So I want to know:
- If kernel really allocate huge page for me?
- How can I check the kernel page table for that allocated page to make sure it is huge page.