A short experiment with Transparent Huge Pages (THP) on Linux

Some books

Photo credit: Kimberly Farmer (Unsplash license)

Introduction of THP

A typical page in Linux memory management system is 4KB. To enhance the efficiency of allocating large amount of memory pages, the OS could make use of huge memory pages. Instead of using 4KB as a page, the OS could allocate a bigger block of page size in 2MB or 1GB. To use huge memory pages, the OS need to be configured so that the memory is preserved or allocated. Refer to the …

Read more ...