8000 jemalloc cache_oblivious configurable, default false (#17870) · hicder/arangodb@bb1e80b · GitHub
[go: up one dir, main page]

Skip to content

Commit bb1e80b

Browse files
authored
jemalloc cache_oblivious configurable, default false (arangodb#17870)
1 parent c9f6183 commit bb1e80b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

3rdParty/jemalloc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (LINUX OR DARWIN)
2828
else ()
2929
set(JEMALLOC_CC_TMP "${CMAKE_C_COMPILER}")
3030
set(JEMALLOC_CXX_TMP "${CMAKE_CXX_COMPILER}")
31-
set(JEMALLOC_CONFIG "background_thread:true")
31+
set(JEMALLOC_CONFIG "background_thread:true,cache_oblivious:false")
3232
endif ()
3333

3434
if (USE_JEMALLOC_PROF)

3rdParty/jemalloc/v5.3.0/src/jemalloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
12201220

12211221
CONF_HANDLE_BOOL(opt_abort, "abort")
12221222
CONF_HANDLE_BOOL(opt_abort_conf, "abort_conf")
1223+
CONF_HANDLE_BOOL(opt_cache_oblivious, "cache_oblivious")
12231224
CONF_HANDLE_BOOL(opt_trust_madvise, "trust_madvise")
12241225
if (strncmp("metadata_thp", k, klen) == 0) {
12251226
int m;

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
devel
22
-----
33

4+
* Make the cache_oblivious option of jemalloc configurable from the
5+
environment and set its default to `false`. This helps to save
6+
4096 bytes of RAM for every allocation which is at least 16384 bytes
7+
large. This is particularly beneficial for the RocksDB buffer cache.
8+
49
* Updated ArangoDB Starter to 0.15.6-preview-1.
510

611
* Acquire a snapshot of the (list of) indexes when starting document insert,

0 commit comments

Comments
 (0)
0