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:
parent
8aae22a28a
commit
027d6a087b
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue