Fix calculation of requested memory in kBytes
This commit is contained in:
parent
cd00996583
commit
fe3aed9815
@ -689,6 +689,7 @@ r'^Killed process \d+ \(.*\) total-vm:(?P<system_total_vm_kb>\d+)kB, anon-rss:(?
|
|||||||
<ol>
|
<ol>
|
||||||
<li>Add a textual summary of the analysis</li>
|
<li>Add a textual summary of the analysis</li>
|
||||||
<li>Fix interpretation of the last OOM line</li>
|
<li>Fix interpretation of the last OOM line</li>
|
||||||
|
<li>Fix calculation of requested memory in kBytes</li>
|
||||||
<li>...</li>
|
<li>...</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
@ -606,8 +606,8 @@ class OOMAnalyser(object):
|
|||||||
def _calc_trigger_process_values(self):
|
def _calc_trigger_process_values(self):
|
||||||
"""Calculate all values related with the trigger process"""
|
"""Calculate all values related with the trigger process"""
|
||||||
self.results['trigger_proc_requested_memory_pages'] = 2 ** self.results['trigger_proc_order']
|
self.results['trigger_proc_requested_memory_pages'] = 2 ** self.results['trigger_proc_order']
|
||||||
self.results['trigger_proc_requested_memory_pages_kb'] = self.results['page_size']
|
self.results['trigger_proc_requested_memory_pages_kb'] = self.results['trigger_proc_requested_memory_pages'] *\
|
||||||
|
self.results['page_size']
|
||||||
# process gfp_mask
|
# process gfp_mask
|
||||||
if self.results['trigger_proc_gfp_flags'] != '<not found>': # None has been is converted to '<not found>'
|
if self.results['trigger_proc_gfp_flags'] != '<not found>': # None has been is converted to '<not found>'
|
||||||
flags = self.results['trigger_proc_gfp_flags']
|
flags = self.results['trigger_proc_gfp_flags']
|
||||||
|
Loading…
Reference in New Issue
Block a user