Skip to content

Commit 4b87cdc

Browse files
author
Pavlos Emm. Katsoulakis
committed
Revert "Add ZRAM collector module to the proc plugin"
This reverts commit c7ab028. **Removed as it was seen to cause crashes. Change will be revised and re-published at a later stage**
1 parent a268ecb commit 4b87cdc

7 files changed

Lines changed: 0 additions & 321 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ set(PROC_PLUGIN_FILES
422422
collectors/proc.plugin/proc_vmstat.c
423423
collectors/proc.plugin/proc_uptime.c
424424
collectors/proc.plugin/sys_kernel_mm_ksm.c
425-
collectors/proc.plugin/sys_block_zram.c
426425
collectors/proc.plugin/sys_devices_system_edac_mc.c
427426
collectors/proc.plugin/sys_devices_system_node.c
428427
collectors/proc.plugin/sys_fs_btrfs.c

Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ PROC_PLUGIN_FILES = \
278278
collectors/proc.plugin/proc_vmstat.c \
279279
collectors/proc.plugin/proc_uptime.c \
280280
collectors/proc.plugin/sys_kernel_mm_ksm.c \
281-
collectors/proc.plugin/sys_block_zram.c \
282281
collectors/proc.plugin/sys_devices_system_edac_mc.c \
283282
collectors/proc.plugin/sys_devices_system_node.c \
284283
collectors/proc.plugin/sys_fs_btrfs.c \

collectors/all.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@
9393
#define NETDATA_CHART_PRIO_MEM_HW 1500
9494
#define NETDATA_CHART_PRIO_MEM_HW_ECC_CE 1550
9595
#define NETDATA_CHART_PRIO_MEM_HW_ECC_UE 1560
96-
#define NETDATA_CHART_PRIO_MEM_ZRAM 1600
97-
#define NETDATA_CHART_PRIO_MEM_ZRAM_SAVINGS 1601
98-
#define NETDATA_CHART_PRIO_MEM_ZRAM_RATIO 1602
99-
#define NETDATA_CHART_PRIO_MEM_ZRAM_EFFICIENCY 1603
10096

10197
// Disks
10298

collectors/proc.plugin/plugin_proc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ static struct proc_module {
2929
{ .name = "/proc/vmstat", .dim = "vmstat", .func = do_proc_vmstat },
3030
{ .name = "/proc/meminfo", .dim = "meminfo", .func = do_proc_meminfo },
3131
{ .name = "/sys/kernel/mm/ksm", .dim = "ksm", .func = do_sys_kernel_mm_ksm },
32-
{ .name = "/sys/block/zram", .dim = "zram", .func = do_sys_block_zram },
3332
{ .name = "/sys/devices/system/edac/mc", .dim = "ecc", .func = do_proc_sys_devices_system_edac_mc },
3433
{ .name = "/sys/devices/system/node", .dim = "numa", .func = do_proc_sys_devices_system_node },
3534

collectors/proc.plugin/plugin_proc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ extern int do_proc_sys_kernel_random_entropy_avail(int update_every, usec_t dt);
4141
extern int do_proc_interrupts(int update_every, usec_t dt);
4242
extern int do_proc_softirqs(int update_every, usec_t dt);
4343
extern int do_sys_kernel_mm_ksm(int update_every, usec_t dt);
44-
extern int do_sys_block_zram(int update_every, usec_t dt);
4544
extern int do_proc_loadavg(int update_every, usec_t dt);
4645
extern int do_proc_net_stat_synproxy(int update_every, usec_t dt);
4746
extern int do_proc_net_softnet_stat(int update_every, usec_t dt);

collectors/proc.plugin/sys_block_zram.c

Lines changed: 0 additions & 287 deletions
This file was deleted.

web/gui/dashboard_info.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -826,32 +826,6 @@ netdataDashboard.context = {
826826
]
827827
},
828828

829-
'mem.zram_usage': {
830-
info: 'ZRAM total RAM usage metrics. ZRAM uses some memory to store metadata about stored memory pages, thus introducing an overhead which is proportional to disk size. It excludes same-element-filled-pages since no memory is allocated for them.'
831-
},
832-
833-
'mem.zram_savings': {
834-
info: 'Displays original and compressed memory data sizes.'
835-
},
836-
837-
'mem.zram_ratio': {
838-
heads: [
839-
netdataDashboard.gaugeChart('Compression Ratio', '12%', 'ratio', '#0099CC')
840-
],
841-
info: 'Compression ratio, calculated as <code>100 * original_size / compressed_size</code>. More means better compression and more RAM savings.'
842-
},
843-
844-
'mem.zram_efficiency': {
845-
heads: [
846-
netdataDashboard.gaugeChart('Efficiency', '12%', 'percent', NETDATA.colors[0])
847-
],
848-
commonMin: true,
849-
commonMax: true,
850-
valueRange: "[0, 100]",
851-
info: 'Memory usage efficiency, calculated as <code>100 * compressed_size / total_mem_used</code>.'
852-
},
853-
854-
855829
'mem.pgfaults': {
856830
info: 'A <a href="https://en.wikipedia.org/wiki/Page_fault" target="_blank">page fault</a> is a type of interrupt, called trap, raised by computer hardware when a running program accesses a memory page that is mapped into the virtual address space, but not actually loaded into main memory. If the page is loaded in memory at the time the fault is generated, but is not marked in the memory management unit as being loaded in memory, then it is called a <b>minor</b> or soft page fault. A <b>major</b> page fault is generated when the system needs to load the memory page from disk or swap memory.'
857831
},

0 commit comments

Comments
 (0)