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

Troubleshooting • Re: Reading Change Logs stalls at 33%?

$
0
0
Setting swap to 2000 fixed my stuck.
Since the Pi 2 Zero has 4 cores but only 512MB RAM, it has less RAM per core than even the first Pi B computers that were ever shipped.

As a result it's essential that the swap file be more than the default 100MB. In my opinion, since the Pi Zero 2 is the most recent Pi released before the Pi 5, not having a swap file large enough to perform a system update should be flagged as a defect with Raspberry Pi OS on the Zero 2 and the default increased.
Since you consider the default 100MB swap space allocation a defect of Raspberry Pi OS, a bug report should be submitted.

Butch
From what I understand the bug is that apt update doesn't work on a Pi Zero 2 when many packages are queued at once. While the solution appears to be increasing swap, the root cause may be
A major feature of APT is the way it calls dpkg — it does topological sorting of the list of packages to be installed or removed and calls dpkg in the best possible sequence.
https://en.wikipedia.org/wiki/APT_(software)

While it seems implausible such topological sorting could run out of memory, Debian does have 59100 packages while the Pi Zero 2 has only 128MB per core.

Statistics: Posted by ejolson — Fri May 10, 2024 5:54 am



Viewing all articles
Browse latest Browse all 5260

Trending Articles