Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3956

Troubleshooting • Re: Faulty Raspberry Pi Zero?

$
0
0
A follow-up:

I found a better cable and it seems to make Raspberry Pi Zero much more stable. Who would have thought a cable could cause so many problems. The shabby cable goes in the bin.

Is it possible that part of the problem lies in the installation of the new, possibly more demanding Bookworm on the old Rasperry Pi system?
The bad cable is only part of the problem.

The RPios default swap space allocation is 100MB is not sufficient on a Pi Zero with 512MB memory. If the desktop environment is activated with the default swap space, the system will fill memory and begin to move memory pages to swap space. Once swap space is filled, the system will begin to "thrash" by continually moving memory pages between memory space to swap space and swap space to memory space. No work gets done except for swapping and eventually memory is exhausted. When memory is exhausted, the Pi comes to a halt. I would suggest increasing swap space to 2GB using these steps:
  • Use your favorite editor on /etc/dphys-swapfile.
  • Change CONF_SWAPSIZE=100 to CONF_SWAPSIZE=2048.
  • Save the file.
  • Reboot.
Butch
That's a good point. The 512 MB constraint affects the Pi Zero 2 more because it has four cores.

viewtopic.php?p=2233050#p2233050

Even so, it's also a good idea in my opinion to increase swap for the original Pi Zero.

Statistics: Posted by ejolson — Fri Jul 05, 2024 9:34 pm



Viewing all articles
Browse latest Browse all 3956

Trending Articles