Octopus
jemalloc_conf.c
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 Octopus Developers
2
SPDX-License-Identifier: GPL-3.0-or-later */
3
4
/*
5
Default options of the jemalloc that the executables link to replace malloc.
6
MALLOC_CONF in the environment takes precedence.
7
8
muzzy_decay_ms:-1 keeps pages freed with MADV_FREE instead of purging them
9
with MADV_DONTNEED. The kernel still reclaims them under memory pressure, but
10
reusing them causes no page fault. The time propagation frees and allocates
11
large work arrays (e.g. the Krylov vectors) at a high rate; with the default
12
(0) those pages are purged and faulted in again all the time.
13
je_malloc_conf covers builds of jemalloc with the je_ symbol prefix.
14
*/
15
#define OCTOPUS_JEMALLOC_CONF "muzzy_decay_ms:-1"
16
const
char
*
malloc_conf
= OCTOPUS_JEMALLOC_CONF;
17
const
char
*
je_malloc_conf
= OCTOPUS_JEMALLOC_CONF;
je_malloc_conf
const char * je_malloc_conf
Definition:
jemalloc_conf.c:21
malloc_conf
const char * malloc_conf
Definition:
jemalloc_conf.c:20
basic
jemalloc_conf.c
Generated on Fri Nov 20 2026 20:18:29 for Octopus by
1.9.4