summaryrefslogtreecommitdiffstats
path: root/daemon/global_statistics.c
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2019-10-07 11:08:21 +0300
committerGitHub <noreply@github.com>2019-10-07 11:08:21 +0300
commit852c97d412080205a7880d2cda2561c8fa40b203 (patch)
tree158dc0b05b0e2c2ef083e3a6f804ea8962414635 /daemon/global_statistics.c
parentddaef9edba00faa83654f1dc8b696a1647b32229 (diff)
Remove hard cap from page cache size to eliminate deadlocks. (#7006)
* Remove page cache error detection and deadlock resolution * Change page cache logic to disallow deadlocks due to too many API users * Updated documentation * Changed default and minimum page cache size values to 32 and 8 MiB respectively
Diffstat (limited to 'daemon/global_statistics.c')
-rw-r--r--daemon/global_statistics.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/daemon/global_statistics.c b/daemon/global_statistics.c
index 777ec2816a..53b7546f26 100644
--- a/daemon/global_statistics.c
+++ b/daemon/global_statistics.c
@@ -538,7 +538,7 @@ void global_statistics_charts(void) {
unsigned long long stats_array[RRDENG_NR_STATS];
/* get localhost's DB engine's statistics */
- rrdeng_get_35_statistics(localhost->rrdeng_ctx, stats_array);
+ rrdeng_get_33_statistics(localhost->rrdeng_ctx, stats_array);
// ----------------------------------------------------------------
@@ -756,8 +756,6 @@ void global_statistics_charts(void) {
static RRDSET *st_errors = NULL;
static RRDDIM *rd_fs_errors = NULL;
static RRDDIM *rd_io_errors = NULL;
- static RRDDIM *rd_pg_cache_warnings = NULL;
- static RRDDIM *rd_pg_cache_errors = NULL;
if (unlikely(!st_errors)) {
st_errors = rrdset_create_localhost(
@@ -777,17 +775,12 @@ void global_statistics_charts(void) {
rd_io_errors = rrddim_add(st_errors, "I/O errors", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
rd_fs_errors = rrddim_add(st_errors, "FS errors", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
- rd_pg_cache_warnings = rrddim_add(st_errors, "Page-Cache warnings", NULL, 1, 1,
- RRD_ALGORITHM_INCREMENTAL);
- rd_pg_cache_errors = rrddim_add(st_errors, "Page-Cache errors", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
}
else
rrdset_next(st_errors);
rrddim_set_by_pointer(st_errors, rd_io_errors, (collected_number)stats_array[30]);
rrddim_set_by_pointer(st_errors, rd_fs_errors, (collected_number)stats_array[31]);
- rrddim_set_by_pointer(st_errors, rd_pg_cache_warnings, (collected_number)stats_array[33]);
- rrddim_set_by_pointer(st_errors, rd_pg_cache_errors, (collected_number)stats_array[34]);
rrdset_done(st_errors);
}