summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-06-15 19:41:06 +0300
committerGitHub <noreply@github.com>2022-06-15 19:41:06 +0300
commite7d7b4ecae6f2c06a7940c00a5a9701c25b33be3 (patch)
tree7dadcd941436479fad9e6cd42c8b1fb0b6234be5 /daemon
parentbadcabc70ff006213a47db856430caeecfbae8a0 (diff)
Add an option to use malloc for page cache instead of mmap (#13142)
Add an option to switch to using malloc for page cache instead of mmap
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index dcad8e1fbe..615e199c9b 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -584,6 +584,7 @@ static void get_netdata_configured_variables() {
// ------------------------------------------------------------------------
// get default Database Engine page cache size in MiB
+ db_engine_use_malloc = config_get_boolean(CONFIG_SECTION_GLOBAL, "page cache uses malloc", CONFIG_BOOLEAN_NO);
default_rrdeng_page_cache_mb = (int) config_get_number(CONFIG_SECTION_GLOBAL, "page cache size", default_rrdeng_page_cache_mb);
if(default_rrdeng_page_cache_mb < RRDENG_MIN_PAGE_CACHE_SIZE_MB) {
error("Invalid page cache size %d given. Defaulting to %d.", default_rrdeng_page_cache_mb, RRDENG_MIN_PAGE_CACHE_SIZE_MB);