Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit c732601

Browse files
Fix: High memory consumption in some cases (AMD GPUs)
1 parent 99ded81 commit c732601

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Libsysmon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ def get_gpu_load_memory_frequency_power(gpu_pci_address, device_vendor_id, selec
28272827
except Exception:
28282828
gpu_load = "-"
28292829

2830-
# Update the GPU load value. Because it is not get in "get_gpu_load_memory_frequency_power_amd" function.
2830+
"""# Update the GPU load value. Because it is not get in "get_gpu_load_memory_frequency_power_amd" function.
28312831
gpu_load_memory_frequency_power_dict["gpu_load"] = gpu_load
28322832
28332833
# Get encoder/decoder engine load of AMD GPU by using "amdgpu_top" tool.
@@ -2841,6 +2841,7 @@ def get_gpu_load_memory_frequency_power(gpu_pci_address, device_vendor_id, selec
28412841
28422842
# Update encoder/decoder engine load values. Because they are not get in "get_gpu_load_memory_frequency_power_amd" function.
28432843
gpu_load_memory_frequency_power_dict = process_gpu_tool_output_amdgpu_top(gpu_pci_address, gpu_tool_output_amdgpu_top, gpu_load_memory_frequency_power_dict)
2844+
"""
28442845

28452846
# If selected GPU vendor is Broadcom (for RB-Pi ARM devices).
28462847
elif device_vendor_id in ["Brcm"]:

src/Processes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,10 +1352,11 @@ def loop_func(self):
13521352
username_list = self.rows_data_dict["username_list"]
13531353
cmdline_list = self.rows_data_dict["cmdline_list"]
13541354
if 24 in treeview_columns_shown or 25 in treeview_columns_shown:
1355-
try:
1355+
"""try:
13561356
gpu_information_dict = Libsysmon.get_process_gpu_information()
13571357
except Exception:
1358-
gpu_information_dict = {}
1358+
gpu_information_dict = {}"""
1359+
gpu_information_dict = {}
13591360

13601361
# Get and append process data
13611362
tab_data_rows = []

0 commit comments

Comments
 (0)