4 ms·
You can call sysconf(_SC_PAGESIZE) to get page size. Problem with transparent huge pages is that you get regular page size (4k) from sysconf(), but then OS some
by zajio1am 4y ago
You can call sysconf(_SC_PAGESIZE) to get page size. Problem with transparent huge pages is that you get regular page size (4k) from sysconf(), but then OS sometimes use 2M instead.
Just switching to larger regular page size (e.g. 64k) on platforms that support it would not have problems associated with THP.