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

Beginners • Re: USB cooling with thermostat for raspberry 4/5 cluster

$
0
0
I have a cluster of 8 Pi 4s and 5s that I have run many projects on but I have never done anything with any HATs or other pluggable hardware.

Last year I had to move the cluster to my garage which gets hot in the summer

I picked up this fan: ANEXT Cooling Case Fan - runs 24/7 and definitely overkill for this, but it was on sale.

I'd like to set up a thermostat on one of the top Pis in the rack and when it gets to say 60c, run the fan

I've read several post threads that assume some level of experience I lack.

Can anyone point to a project i can implement to power the fan when a CPU reaches a certain temperature?

Much appreciated.
In my experience CPU temperatures depend so strongly on workload that they are not a good way to determine whether the ambient temperature recommends additional airflow. Fido's solution obtains an approximation of ambient temperature by running smartctl on an idle hard disk.

If the ambient temperature gets too hot, pause the computation using

Code:

$ kill -SIGSTOP $pid
where pid is the process ID of the computation being run. Note that pid is usually iterated over in a loop but sometimes a pkill command is sufficient.

When the temperature falls below a certain threshold, start the computation again with

Code:

$ kill -SIGCONT $pid
Since it gets cold in the desert at night, one obtains about 8 hours of computation each day during summer without overheating the doghouse. Computations during winter run continuously.

Statistics: Posted by ejolson — Wed Apr 24, 2024 3:15 am



Viewing all articles
Browse latest Browse all 4777

Trending Articles