Answer by user3712541 for How to get the pagesize of a memory segment just...
I am not 100% i understand your requirements correctly, but i 'll give it a try.There is an interesting function posted here by user Ciro Santilli, pagemap_get_entry. It uses the /proc/[pid]/pagemap...
View ArticleAnswer by Mark Lakata for How to get the pagesize of a memory segment just...
I realize one way of doing it is to scrape /proc/self/maps and somewhere in there is a keyword that indicates if a memory range has huge pages or not. I don't know how portable that is (man page for...
View ArticleAnswer by ralf htp for How to get the pagesize of a memory segment just from...
This is related to the MMU, see https://unix.stackexchange.com/questions/128213/how-is-page-size-determined-in-virtual-address-space and normally the page size is equal for the entire system / kernel,...
View ArticleHow to get the pagesize of a memory segment just from a virtual address?
Linux can have both standard 4KiB page memory and 1GiB (huge) paged memory (and 2MiB pages, but I don't know if anyone uses that).Is there a standard call to get the page size from an arbitrary virtual...
View Article
More Pages to Explore .....