@cryptotaxi247 / netdata-1 / commits / 38b82e806

add sys_kernel_mm_ksm charts info (#11595)

* add sys_kernel_mm_ksm charts info

Ilya Mashchenko committed Sep 30, 2021 at 12:56 UTC 38b82e806c975bda8fc097393ccc5a527b10dd7f
1 file changed +22 -3
web/gui/dashboard_info.js
+22 -3
@@ -727,7 +727,11 @@ netdataDashboard.submenu = {
727
728 'mem.ksm': {
729 title: 'deduper (ksm)',
730 - info: 'Kernel Same-page Merging (KSM) performance monitoring, read from several files in <code>/sys/kernel/mm/ksm/</code>. KSM is a memory-saving de-duplication feature in the Linux kernel (since version 2.6.32). The KSM daemon ksmd periodically scans those areas of user memory which have been registered with it, looking for pages of identical content which can be replaced by a single write-protected page (which is automatically copied if a process later wants to update its content). KSM was originally developed for use with KVM (where it was known as Kernel Shared Memory), to fit more virtual machines into physical memory, by sharing the data common between them. But it can be useful to any application which generates many instances of the same data.'
730 + info: '<a href="https://en.wikipedia.org/wiki/Kernel_same-page_merging" target="_blank">Kernel Same-page Merging</a> '+
731 + '(KSM) performance monitoring, read from several files in <code>/sys/kernel/mm/ksm/</code>. '+
732 + 'KSM is a memory-saving de-duplication feature in the Linux kernel. '+
733 + 'The KSM daemon ksmd periodically scans those areas of user memory which have been registered with it, '+
734 + 'looking for pages of identical content which can be replaced by a single write-protected page.'
735 },
736
737 'mem.hugepages': {
@@ -1243,10 +1247,23 @@ netdataDashboard.context = {
1247 // ------------------------------------------------------------------------
1248 // MEMORY
1249
1250 + 'mem.ksm': {
1251 + info: '<p>Memory pages merging statistics. '+
1252 + 'A high ratio of <b>Sharing</b> to <b>Shared</b> indicates good sharing, '+
1253 + 'but a high ratio of <b>Unshared</b> to <b>Sharing</b> indicates wasted effort.</p>'+
1254 + '<p><b>Shared</b> - used shared pages. '+
1255 + '<b>Unshared</b> - memory no longer shared (pages are unique but repeatedly checked for merging). '+
1256 + '<b>Sharing</b> - memory currently shared (how many more sites are sharing the pages, i.e. how much saved). '+
1257 + '<b>Volatile</b> - volatile pages (changing too fast to be placed in a tree).</p>'
1258 + },
1259 +
1260 'mem.ksm_savings': {
1261 heads: [
1262 netdataDashboard.gaugeChart('Saved', '12%', 'savings', '#0099CC')
1249 - ]
1263 + ],
1264 + info: '<p>The amount of memory saved by KSM.</p>'+
1265 + '<p><b>Savings</b> - saved memory. '+
1266 + '<b>Offered</b> - memory marked as mergeable.</p>'
1267 },
1268
1269 'mem.ksm_ratios': {
@@ -1265,7 +1282,9 @@ netdataDashboard.context = {
1282 + ' data-points="CHART_DURATION"'
1283 + ' role="application"></div>';
1284 }
1268 - ]
1285 + ],
1286 + info: 'The effectiveness of KSM. '+
1287 + 'This is the percentage of the mergeable pages that are currently merged.'
1288 },
1289
1290 'mem.zram_usage': {