aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] surprised by low util vs cpu graph

chboishabba opened this issue · comments

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):

  • Bashtop version: 0.9.25
  • (Linux) Linux distribution and version: Arch Linux x86_64
  • (Linux) Data collection type (/proc or psutil): psutil
  • Psutil version: python3 -c "import psutil; print(psutil.version_info)" (version 5.7.0 or above is required): (5, 9, 7)
  • (OSX/FreeBSD) Os release version:
  • Terminal used:xfce4
  • Font used:Monospace Regular
  • Bash version, bash --version (version 4.4 or above is required): 5.2.21(1)-release (x86_64-pc-linux-gnu)
  • Locales: output of locale -v:
    LANG=en_AU.UTF-8
    LC_CTYPE="en_AU.UTF-8"
    LC_NUMERIC="en_AU.UTF-8"
    LC_TIME="en_AU.UTF-8"
    LC_COLLATE="en_AU.UTF-8"
    LC_MONETARY="en_AU.UTF-8"
    LC_MESSAGES="en_AU.UTF-8"
    LC_PAPER="en_AU.UTF-8"
    LC_NAME="en_AU.UTF-8"
    LC_ADDRESS="en_AU.UTF-8"
    LC_TELEPHONE="en_AU.UTF-8"
    LC_MEASUREMENT="en_AU.UTF-8"
    LC_IDENTIFICATION="en_AU.UTF-8"
    LC_ALL=

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