Updated on 2025-07-21 GMT+08:00

Viewing the THP Usage

View the global THP usage.

cat /proc/meminfo | grep AnonHugePages

A non-0 value indicates transparent huge pages are used in the system.

Check whether a specific process is using THP.

cat /proc/<PID>/smaps | grep AnonHugePages

Replace <PID> with a process ID to check which memory segments of the process are using huge pages.