Hide node if none of the nodes has memory shortage

This commit is contained in:
Carsten Grohmann 2023-03-24 21:01:16 +01:00
parent bd3085c667
commit cbd16d266f
2 changed files with 8 additions and 2 deletions

View File

@ -115,6 +115,10 @@ THIS PROGRAM COMES WITH NO WARRANTY
/* empty - used to hide/show details for memory fragmentation */ /* empty - used to hide/show details for memory fragmentation */
} }
.js-memory-shortage-node--hide {
/* empty - used to show the NUMA node with memory shortage */
}
.js-oom-automatic--show { .js-oom-automatic--show {
/* empty - used to show sections for automatically triggered OOMs */ /* empty - used to show sections for automatically triggered OOMs */
} }
@ -558,7 +562,7 @@ window.onerror = function (msg, url, lineNo, columnNo, errorObj) {
<td class="trigger_proc_mem_zone text--align-right"></td> <td class="trigger_proc_mem_zone text--align-right"></td>
<td>Memory zone from which the requested storage chunk should come.</td> <td>Memory zone from which the requested storage chunk should come.</td>
</tr> </tr>
<tr class="js-oom-automatic--show"> <tr class="js-text--default-hide js-oom-automatic--show js-memory-shortage-node--hide">
<td>Requested memory: node</td> <td>Requested memory: node</td>
<td class="trigger_proc_numa_node text--align-right"></td> <td class="trigger_proc_numa_node text--align-right"></td>
<td> <td>

View File

@ -3351,7 +3351,7 @@ class OOMAnalyser:
) )
return return
# Search node with memory shortage: watermark "free" < "min" # Node with memory shortage: watermark "free" < "min"
node = self.oom_result.details["trigger_proc_numa_node"] node = self.oom_result.details["trigger_proc_numa_node"]
if node is None: if node is None:
return return
@ -4456,6 +4456,8 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss:
show_elements(".js-memory-heavy-fragmentation--show") show_elements(".js-memory-heavy-fragmentation--show")
else: else:
show_elements(".js-memory-no-heavy-fragmentation--show") show_elements(".js-memory-no-heavy-fragmentation--show")
if self.oom_result.details["trigger_proc_numa_node"] is None:
hide_elements(".js-memory-shortage-node--hide")
def _show_page_size(self): def _show_page_size(self):
"""Show page size""" """Show page size"""