我要评分
获取效率
正确性
完整性
易理解

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