Live data from Hacker News

Most Stable Raspberry Pi? Better NTP with Thermal Management

austinsnerdythings.com

41–50 of 99 posts

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#41
post #10

The related question is: Is the Pi going the Pentium 4 route?

In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle!

The old Intel CPUs were grotesquely inefficient. Every single generation of Raspberry Pi has been well under 5W idle. And just so it's clear, the author is using an old Raspberry Pi 3.

From TFA:

> The RPi 3B’s 19.2 MHz oscillator is physically located near the CPU on the Raspberry Pi board, so by actively controlling CPU temperature, we’re indirectly controlling the oscillator’s temperature.

Also note that the R.Pi can even be further optimised by switching off HDMI.

https://www.pidramble.com/wiki/benchmarks/power-consumption

https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-p...

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#43

Couldn't you model the effect of temperature on clock drift and try to factor that in dynamically (e.g. using a temperature sensor) instead of burning CPU unnecessarily?

Sure, that's what the chrony closed loop is already doing (the estimated residual frequency is pretty linear with temperature), but no matter how robust your closed loop is, it's strictly better to not have disturbances in the first place.

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#44
post #28
post #27

Earlier quoted context omitted.

> Are you similarly frustrated that he didn't sit there 24/7, heating the oscillator with a small lighter when needed, but automated it instead? No > Why would this be more interesting for you if he'd written the script himself? Was I unclear? I read blog posts to read thoughts from humans, not from computers.

Well, I guess your era of reading is over, sadly.

It doesn't become claude's insight just because the user instructed it to write some trivial bash script.

Then again these are all well known optimizations (core-pinning, frequency-locking, thermal stabilization for oscillators). The interesting part is the actual measurement results over multiple days. That's something you can't get from a single prompt.

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#45
some ideas -

1. using a second hand single frequency Ublox LEA-M8T GNSS receiver is not a good idea in 2025 when a dual frequency GNSS receiver chip can be purchased online for as little as $20-30. buy one of those ublox ZED-F9P receivers with the 2018/2019 firmware, they get you the exact same timing performance as ZED-F9T with QEerr support. PPS jitter is going to drop from 20ns to less than 2ns after qErr compensation.

2. you can replace that highly unstable crystal oscillator with a $10 used OCXO + $20 PLL board and save that PID temperature controller to be used as the secondary oven for that OCXO. people have been doing that for Raspberry Pi for ages.

3. or you can configure your GNSS receiver to output a 10Hz signal from the PPSOUT pin so chrony can get 10 updates per second, GNSS receiver's internal TCXO is going to be more stable than raspberry Pi's crystal oscillator.

4. for more fun - just keep measuring the frequency drift vs. temperature change. a sample set of 24-48 hours of such measurements should be enough to figure out the tempco of that unstable crystal oscillator so you can get chrony to do the drift compensation. from memory, chrony supports such a temperature compensation lookup table to be specified.

good luck and have fun

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#47
post #10

The related question is: Is the Pi going the Pentium 4 route?

In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle! The old Intel CPUs were grotesquely inefficient. Every single generation of Raspberry Pi has been well under 5W idle. And just so it's clear, the author is using an old Raspberry Pi 3. From TFA: > The RPi 3B’s 19.2 MHz oscillator is physically located near the CPU on the Raspberry Pi board, so by actively controlling CPU temperature, we’…

> In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle!

I don't think Intel has any "efficient" CPU that can go passively cooled at load though. Maybe Apple can do it for the low end SoCs.

The Pi 3 can go passively cooled and maybe even without a heatsink at load, but the newer Pis can't. Judging by the progression from 3 to 4 to 5, they will reach P4 levels of heat in the name of speed around ... 7?

> And just so it's clear, the author is using an old Raspberry Pi 3.

Yes, the author has harder problems to solve than what I'm whining about. But my concern is a bit related.

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#48
post #12

There was a paper on this in 2022. Not sure if it's used in production or not. https://www.usenix.org/conference/nsdi22/presentation/najafi

the only contribution of that paper is they found & reported that there are potentially dozens of temperature sensors in a typical server.

the method of using two PPS signals configured to be some delta time apart to detect jitter is not new. the whole learning the tempco of the crystal thing is like 80 years old.

they also avoided touching the most critical part of the issue - how would you be sure that such learned tempco is accurate enough for the estimated bound.

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#49
post #47

Earlier quoted context omitted.

In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle! The old Intel CPUs were grotesquely inefficient. Every single generation of Raspberry Pi has been well under 5W idle. And just so it's clear, the author is using an old Raspberry Pi 3. From TFA: > The RPi 3B’s 19.2 MHz oscillator is physically located near the CPU on the Raspberry Pi board, so by actively controlling CPU temperature, we’…

> In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle! I don't think Intel has any "efficient" CPU that can go passively cooled at load though. Maybe Apple can do it for the low end SoCs. The Pi 3 can go passively cooled and maybe even without a heatsink at load, but the newer Pis can't. Judging by the progression from 3 to 4 to 5, they will reach P4 levels of heat in the name of speed aro…

> The Pi 3 can go passively cooled and maybe even without a heatsink at load, but the newer Pis can't.

The Raspberry Pi 4 can be used without a fan. They are packaged inside keyboards, but both the Raspberry Pi 400 and the Raspberry Pi 500 are passively cooled.

Re: Most Stable Raspberry Pi? Better NTP with Thermal Management

#50
post #47

Earlier quoted context omitted.

> In 2025, there are extremely efficient CPUs from Intel and Apple. Under 5W idle! I don't think Intel has any "efficient" CPU that can go passively cooled at load though. Maybe Apple can do it for the low end SoCs. The Pi 3 can go passively cooled and maybe even without a heatsink at load, but the newer Pis can't. Judging by the progression from 3 to 4 to 5, they will reach P4 levels of heat in the name of speed aro…

> The Pi 3 can go passively cooled and maybe even without a heatsink at load, but the newer Pis can't. The Raspberry Pi 4 can be used without a fan. They are packaged inside keyboards, but both the Raspberry Pi 400 and the Raspberry Pi 500 are passively cooled.

I have a 4 with a huge ass passive heatsink on at home. It's my minecraft server when I feel like it.

The heatsink is uncomfortable to touch (it's not in a case). Pretty sure it would downclock if i removed it. So it works without a fan, but not without a heatsink (I bet the keyboards have a heatsink for the Pis built in.).

A 3 would have worked fine without any heatsink at all. At least at normal room temperature.

Post reply on HN