"Top" command and CPU usage

Hello,
please, can somebody tell me how should I interpret this top command output?
There is 28% over all CPU load, but each individual process has 0%.

Thank you.

This can be caused by high io, but your io looks ok. Try sorting via cpu usage though and the highest usage will come to the top.

I guess it can be caused by add-ons… There should be some command to show add-ons system resources usage. There is ha addons stats command, but have to use is for every add-on individually… :roll_eyes:

pressing shift-p will put the highest process cpu usage at the top

Yes, it does, but my issue is, that all processes shows 0% while overall CPU usage is about 20% (see screenshot).

I’m seeing the same thing. Every process shows up as 0%. Overall my CPU utilization is pretty low (hovers around 10%) so maybe it’s just a rounding thing. But it seems odd that no process ever gets at least 0.5% so it would round up to 1%.

[PS: Hass.io on a Raspberry Pi 3B+]

The issue of ‘top’ on SSH command line still exists.
Overall CPU process after boot is at >90%, but the listed processes all only show 0%.
Using Shift+p changes the order of processes, but does not bring the big CPU users to the start of the list.

well there are things like IO that may be causing high cpu usage. Try iotop.

I ssh with users root into HA, but there is no iotop on HA.

[core-ssh ~]$ iotop

-bash: iotop: command not found

If it isn’t you’ll have to install it

apk add iotop

OK, done (I’m the ‘apt’ guy…). iotop is now installed, but does not work.

[core-ssh ~]$ iotop
Traceback (most recent call last):
  File "/usr/bin/iotop", line 17, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib/python3.10/site-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python3.10/site-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python3.10/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python3.10/site-packages/iotop/ui.py", line 498, in run_iotop_window
    taskstats_connection = TaskStatsNetlink(options)
  File "/usr/lib/python3.10/site-packages/iotop/data.py", line 137, in __init__
    self.family_id = controller.get_family_id('TASKSTATS')
  File "/usr/lib/python3.10/site-packages/iotop/genetlink.py", line 69, in get_family_id
    m = GeNlMessage.recv(self.conn)
  File "/usr/lib/python3.10/site-packages/iotop/genetlink.py", line 51, in recv
    msg = conn.recv()
  File "/usr/lib/python3.10/site-packages/iotop/netlink.py", line 229, in recv
    raise err
OSError: Netlink error: No such file or directory (2)
[core-ssh ~]$