Skip to content

Commit 488b485

Browse files
committed
Disable THP
1 parent 91f4f86 commit 488b485

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Include/internal/pycore_mimalloc.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ typedef enum {
2626
# define MI_DEBUG_UNINIT PYMEM_CLEANBYTE
2727
# define MI_DEBUG_FREED PYMEM_DEADBYTE
2828
# define MI_DEBUG_PADDING PYMEM_FORBIDDENBYTE
29+
// Do not use transparent huge pages (THP). They increase RSS on Linux.
30+
// See https://github.com/microsoft/mimalloc/blob/v2.5.2/readme.md#environment-options
31+
# define MI_NO_THP 1
2932
#ifdef Py_DEBUG
3033
# define MI_DEBUG 2
3134
#else

0 commit comments

Comments
 (0)