0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-27 14:16:20 +00:00

lower memory requirements

This commit is contained in:
Costa Tsaousis 2024-11-24 15:26:01 +02:00
parent 8aae22a28a
commit 027d6a087b
No known key found for this signature in database
GPG key ID: 3A4F28E963D28A1F
2 changed files with 4 additions and 4 deletions
src/database/engine

View file

@ -1899,9 +1899,9 @@ PGC *pgc_create(const char *name,
cache->config.additional_bytes_per_page = additional_bytes_per_page; cache->config.additional_bytes_per_page = additional_bytes_per_page;
cache->config.max_workers_evict_inline = max_inline_evictors; cache->config.max_workers_evict_inline = max_inline_evictors;
cache->config.severe_pressure_per1000 = 1100; // turn releasers into evictors above this threshold cache->config.severe_pressure_per1000 = 1000; // turn releasers into evictors above this threshold
cache->config.aggressive_evict_per1000 = 1000; // turn adders into evictors above this threshold cache->config.aggressive_evict_per1000 = 990; // turn adders into evictors above this threshold
cache->config.healthy_size_per1000 = 975; // don't evict if the current size is below this threshold cache->config.healthy_size_per1000 = 950; // don't evict if the current size is below this threshold
cache->config.evict_low_threshold_per1000 = 900; // when evicting, bring the size down to this threshold cache->config.evict_low_threshold_per1000 = 900; // when evicting, bring the size down to this threshold
{ {

View file

@ -223,7 +223,7 @@ static inline size_t indexing_partition(Word_t ptr, Word_t modulo) {
long get_netdata_cpus(void); long get_netdata_cpus(void);
static inline size_t pgc_max_evictors(void) { static inline size_t pgc_max_evictors(void) {
return get_netdata_cpus(); return 1 + get_netdata_cpus() / 2;
} }
static inline size_t pgc_max_flushers(void) { static inline size_t pgc_max_flushers(void) {