aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.79k stars 552 forks source link

[BUG] surprised by low util vs cpu graph #239

Open chboishabba opened 9 months ago

chboishabba commented 9 months ago

Describe the bug

bashtop reports dramatically different cpu usage to top. cpu graph shows 100% util while no process exceeds eg 4%, meanwhile top shows one process using ~97%.

To Reproduce

arch 64 intel. open bashtop, open top. (seems either brave browser or a tab I had open was doing something nasty)

Expected behavior

bashtop should indicate which process is hogging cpu so it can be killed. it would seem logical this applies in tree view also.

Screenshots

pc was unresponsive, could not provide.

Info (please complete the following information):

Additional context

contents of $HOME/.config/bashtop/error.log

(enable error-logging in "$HOME/.config/bashtop/bashtop.cfg" if missing)

New instance of bashtop version: 0.9.25 Pid: 89054

New instance of bashtop version: 0.9.25 Pid: 4169 /usr/bin/bashtop: line 2411: /proc/499754/stat: No such file or directory /usr/bin/bashtop: line 2411: /proc/2734717/stat: No such file or directory

New instance of bashtop version: 0.9.25 Pid: 5061 /usr/bin/bashtop: line 1337: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1347: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1353: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1353: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 3037: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: >

New instance of bashtop version: 0.9.25 Pid: 6654

New instance of bashtop version: 0.9.25 Pid: 4846

New instance of bashtop version: 0.9.25 Pid: 2991

New instance of bashtop version: 0.9.25 Pid: 2100 /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1465: ((: /opt/brave-bin/brave: syntax error: operand expected (error token is "/opt/brave-bin/brave") /usr/bin/bashtop: line 1466: ((: /opt/brave-bin/brave: syntax error: operand expected (error token is "/opt/brave-bin/brave") /usr/bin/bashtop: line 1468: /: syntax error: operand expected (error token is "/")

New instance of bashtop version: 0.9.25 Pid: 2143 /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1334: ((: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: > /usr/bin/bashtop: line 1465: ((: hl2.exe: syntax error: invalid arithmetic operator (error token is ".exe") /usr/bin/bashtop: line 1466: ((: hl2.exe: syntax error: invalid arithmetic operator (error token is ".exe") /usr/bin/bashtop: line 1465: ((: Z:\mnt\iscsi\SteamLibrary\steamapps\common\Team: syntax error in expression (error token is ":\mnt\iscsi\SteamLibrary\steamapps\common\Team") /usr/bin/bashtop: line 1466: ((: Z:\mnt\iscsi\SteamLibrary\steamapps\common\Team: syntax error in expression (error token is ":\mnt\iscsi\SteamLibrary\steamapps\common\Team") /usr/bin/bashtop: line 1465: ((: 2\hl2.exe: syntax error: invalid arithmetic operator (error token is "\hl2.exe") /usr/bin/bashtop: line 1466: ((: 2\hl2.exe: syntax error: invalid arithmetic operator (error token is "\hl2.exe") /usr/bin/bashtop: line 3037: Pid: Program: Arguments: Threads: User: Mem% Cpu%: syntax error in expression (error token is ": Program: Arguments: >

New instance of bashtop version: 0.9.25 Pid: 218532

New instance of bashtop version: 0.9.25 Pid: 2068 PSUTIL ERROR! Command: get_net('wlan0') 'wlan0' 07:38:52 ERROR: On line 4634 PSUTIL ERROR! Command: get_net('wlan0') 'wlan0' 09:53:02 ERROR: On line 4634 (MUTED!)

New instance of bashtop version: 0.9.25 Pid: 29778 PSUTIL ERROR! Command: get_net('wlan0') 'wlan0' 11:30:40 ERROR: On line 4634 PSUTIL ERROR! Command: get_net('wlan0')

'wlan0' 11:30:40 ERROR: On line 4634 (MUTED!)

New instance of bashtop version: 0.9.25 Pid: 662694

New instance of bashtop version: 0.9.25 Pid: 663680

New instance of bashtop version: 0.9.25 Pid: 663680

New instance of bashtop version: 0.9.25 Pid: 665526