brownout issues

January 22, 2024, 13:30

jnbackup

so i have a rasp 4b 2gb, connected to a 5amp adaptor(bought the one for rasp 5) the workload is: docker containers pushing the ram/cpu, and an external drive that got external power. https://www.lc-power.com/en/product/hddssdm2raid-enclosures/889cm35/lc-35u3.html the drive itself is a 8tb HDD 3.5, now my assumption is that somehow those two working together can somehow cause the rasp to need more then 3 amps(stated in specs that's its limit i think), causing brownout, but i'd like a second pair of eyes.

jnbackup

symptoms: heavy workload causes everything on the rasp to become non-functional, ssh,services,containers,etc just confirmed its not a temp issue (57.4C when it crashed.)

clearchris

Usually these power issues are related to voltage sag. As of late, i buy adjustable power supplies and run them a touch high. 5.15v or so.

jnbackup

i bought this one. https://raspberrypi.dk/produkt/raspberry-pi-stroemforsyning-usb-c-eu-5v-5a-hvid/ surely thats enough for raspberry pi 4.

jnbackup

any other ideas? or is there a better more recommended power supply then that one?

clearchris

This is what i use. Downside being the dial is very sensitive. https://www.amazon.com/gp/aw/d/B09KRXMYCF

clearchris

But i haven't yet seen the thunderbolt with it

clearchris

It has been my experience that most 5v power supplys age after a few years, they sag under heavy use and cause issues. I have some canakit ps, one that i have on a retropie build that sags under just playing a game...

jnbackup

i will point out that i litterally bought it the other day.

oops.se

- The voltage sag is a issue caused by the power supply. The voltage drops when you overload the current, this can sometimes be solved by adding large capacitors, very common in PSUs that is used with large amplifiers. - The other cause is inadequate area on the cables between the PSU and Pi, as the current increase so will the voltage drop increase as well. That power supplies get degraded over time is not a thing I have seen, but then I buy power supplys from well known brands. And if you have a HDD with a external power supply that shouldn't inflict on the Pis power consumption. as it is only signaling that happens between the HDD and the Pi.

jnbackup

i've marked this issue as "a mystery" on my side, i cant trigger the issue with stress testing, and it only happens randomly at high load, connecting a second drive(2.5) increases probability of it happening(hell with the old 4.5amp adaptor it could not even start up with that), so proably a spike issue, so a better adapter might help but i have no clue were to find that, regardless my next move is throwing this thing at my friend after i buy a rasp 5, im making a wild guess that its more stable. proably a faulty board.

clearchris

The boards are great. They are just very demanding of the power supplies.

clearchris

Everything oops says i pretty much agree with except aging supplies. I have sometimes cracked open the supplies and recapped them, but not really worth the time, and the wall warts don't usually go back together well

oops.se

Read my second bullit point and explore that.

jnbackup

asked somewere else, i have not stress tested properly yet, but in case someone else has similar issues, 2GB raspberry 4 runs out of ram fast, then it chews what little swap files exist by default and if overhead is too big, it completely dies. ...basically consider the load, and make sure there's enough ram.