Quantcast
Channel: How to get the pagesize of a memory segment just from a virtual address? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article



Answer 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 Article

Answer 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 Article

How 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
Browsing latest articles
Browse All 4 View Live




Latest Images