Quantcast
Viewing all articles
Browse latest Browse all 5190

Troubleshooting • Re: Pi5 Completely (permanent) locks up when CPU reaches 100%

It's weird that htop doesn't match the CPU usage from activity monitor.
Your GUI screenshot says 100% at the top, but then the tasks are sorted by CPU%, and they are all zero. Maybe the top number includes iowait time as "usage", and that is not allocated to any particular task.

Meanwhile, htop draws colored graphs but it is unclear what the colors mean or what states are included. You would be better to run classic top, which tells you all the CPU states, as reported by the kernel:

Code:

%Cpu(s):  0.1 us,  0.2 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
Your load average is pushing 46, which does suggest that there may be many more tasks in D state that are not even appearing on screen because they cannot get any CPU time at all.

Try starting a dmesg --follow over SSH too. They should be some kernel messages when the problem occurs.
--what does "tasks in D state" mean? I notice whenever I do uploading / downloading over the network and / or Plex library updates, I will see tasks that have a red "D". Is that bad?
The states are

Code:

D    uninterruptible sleep (usually IO)I    Idle kernel threadR    running or runnable (on run queue)S    interruptible sleep (waiting for an event to complete)T    stopped by job control signalt    stopped by debugger during the tracingW    paging (not valid since the 2.6.xx kernel)X    dead (should never be seen)Z    defunct ("zombie") process, terminated but not reaped by     its parent
It all points to your USB drive disconnecting--either bad cable, not enough power, incompatible SATA bridge or the original Pi 5 firmware. Given your disk is connected through a USB hub, I'd recommend updating the Pi 5 firmware.

It could also be a counterfeit SD card.

Statistics: Posted by ejolson — Fri Oct 11, 2024 2:43 am



Viewing all articles
Browse latest Browse all 5190

Trending Articles