HANA News Blog
SAP HANA & Transparent Huge Pages (THP
Switched to madvise in 2025 - now this?

If you’re running SAP HANA on SLES 15 SP5-SP7, keep an eye on this new
SUSE article 22286:
👉 Transparent Huge Pages (THP) with madvise can trigger high swap usage, performance issues, or even system hangs on multi-NUMA systems.
Why this matters:
- SAP recommended switching to THP = madvise (SAP Note
2131662) for SLES15 SP5 / RHEL 9.2 and higher
- On multi-NUMA nodes, this can backfire
- One NUMA node runs low on memory -> direct reclaim & compaction kick in
- Result: swap fills, reclaim spikes, HANA stalls or failover
You can find out if THP is active by command:
cat /sys/kernel/mm/transparent_hugepage/enabled
If you see the following result, the THP is active.
[always] madvise never
If the OS version is
- SLES 15 SP5 and
- RHEL 9.2
or higher, then THP is recommended to be active.
Typical red flags:
- Swap usage grows while other NUMA nodes still have free memory
- High direct reclaim activity: pgscand/s spikes in sar -B output.
- Counters like allocstall_movable, pgscan_direct, compact_stall increase (/proc/vmstat)
- System hangs under load or cluster failover
Status:
- Kernel fix in progress (see SUSE TID 22286)
- SUSE can provide TEST / PTF kernels
On multi-NUMA node systems high swap usage, hangs or performance issues were reported when THP was enabled due to an OS kernel issue. An OS kernel is currently being developed. So far, it is recommended to deactivate THP defragmentation on OS level by executing:
echo "never" > /sys/kernel/mm/transparent_hugepage/defrag
echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
📌 Not affected:
- Single-NUMA systems
- Older SLES versions with THP fully disabled
- RHEL (currently no feedback and proven)
Bottom line:
Check your NUMA balance before HANA does it the hard way.
Sources:
2131662 - Transparent Huge Pages (THP) on SAP HANA Servers
https://me.sap.com/notes/2131662/E
3523701 - Transparent Huge Pages (THP) alert occurs
https://me.sap.com/notes/3523701/E
2031375 - SAP HANA: Transparent HugePages (THP) setting on Linux
https://me.sap.com/notes/0002031375
2684254 - SAP HANA DB: Recommended OS settings for SLES 15 / SLES for SAP Applications 15
https://me.sap.com/notes/2684254
2578899 - SUSE Linux Enterprise Server 15: Installation Note
https://me.sap.com/notes/2578899
SAP HANA swap and system hangs with THP on multi-NUMA node systems
https://support.scc.suse.com/s/kb/SAP-HANA-swap-and-system-hangs-with-THP-on-multi-NUMA-node-systems?language=en_US
SAP HANA News by XLC










