Rate This Document
Findability
Accuracy
Completeness
Readability

OS Optimization

Enabling Transparent Huge Pages

A large amount of memory data is copied during interactions between the CPU and GPU. Transparent huge pages (THP) can allocate huge pages to applications to reduce translation lookaside buffer (TLB) consumption while improving performance.

echo always > /sys/kernel/mm/transparent_hugepage/enabled 
echo always > /sys/kernel/mm/transparent_hugepage/defrag