We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b316e62 commit 017da14Copy full SHA for 017da14
src/common/utils/memory_limit.cpp
@@ -66,8 +66,8 @@ void limit_memory(size_t limit) {
66
}
67
68
#if defined(SPADES_USE_MIMALLOC)
69
- // Reserve half of the limit memory
70
- res = mi_reserve_os_memory(rl.rlim_cur / 2, false, true);
+ // Reserve 1/4 of the limit memory
+ res = mi_reserve_os_memory(rl.rlim_cur / 4, false, true);
71
if (res != 0) {
72
WARN("Failed to reserve OS memory of " << GB << " Gb, mi_reserve_os_memory() call failed, errno = "
73
<< errno << " (" << strerror(errno) << "). Watch your memory consumption!");
0 commit comments