Monday, 3 August 2020

Transparent Huge Pages (THP) on SAP HANA Servers

ERROR : 

Transparent Huge Pages (THP) are activated or not readable on Host CHECK_PLATFORM('CHECK_THP').VALUE: "[always] madvise never


Resolution:



Activated Transparent Huge Pages are the root cause for severe issues on SAP HANA servers (up to a complete standstill of the database).

You can check if Transparent Huge Pages are enabled as follows:

cat /sys/kernel/mm/transparent_hugepage/enabled



If "always" is enclosed in brackets as below, it means that the Transparent Huge Pages are enabled :

[always] madvise never



If "never" is enclosed in brackets as below, it means that the Transparent Huge Pages are disabled :

always madvise [never]


SAP strongly recommends to disable Transparent Huge Pages on all HANA servers (see also SAP Note 1954788):

echo never > /sys/kernel/mm/transparent_hugepage/enabled

cat /sys/kernel/mm/transparent_hugepage/enabled



always madvise [never]

Note: after the host restart, we need to maintain it again or we can add it in a startup script. 

SAP note : 2131662 

Thanks