Repository navigation
Commit eebb756
authored
perf: stop mimalloc asking for transparent huge pages (#1391)
mimalloc madvises its 1 GiB arenas for transparent huge pages, so on
Linux hosts with THP in madvise mode (the Ubuntu default) every partly
used 2 MiB page stayed resident in full. A cold 10,000-model compile
held about 470 MiB of huge pages at its peak. Building mimalloc with
no_thp keeps those arenas on normal pages and lowers that compile's
peak memory by about 85 MB, with unchanged wall and CPU time. Other
platforms are unaffected.1 parent 43bc9f7 commit eebb756
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments