Live data from Hacker News

The Raspberry Pi as a Stratum-1 NTP Server

satsignal.eu

31–38 of 38 posts

Re: The Raspberry Pi as a Stratum-1 NTP Server

#31
post #26
post #24

Earlier quoted context omitted.

Do you have some numbers?

The biggest factor is that each generation of the Pi has gotten a better processor (700Mhz single-core in the original Pi to a 1.4Ghz quad-core in the 3B+). There are also a number of detailed benchmarks out there if you bother to Google it.

Especially in the context of a stratum 1?

Re: The Raspberry Pi as a Stratum-1 NTP Server

#32
Off topic: I love this couples website. If you click through to the homepage they've got lots of stuff to browse.

Yes, it maybe old-style, but it's these sort of sites that the internet was originally built on. It's a real shame that they are becoming a dying breed.

Re: The Raspberry Pi as a Stratum-1 NTP Server

#33

I had one of these running with a 10 meter cable to the window so the receiver could get enough satellites. After 24/7 for about a year it just died and I haven't had time to figure out what's wrong. Lights blink but it's not reachable via ping, ssh or scp. HDMI output shows nothing. I had to move on to other projects, so I gave up and assumed I either got hacked or I hit the cheap-SD-card problem of corruption that…

For anything serious that is not a toy like an rpi, for industrial/embedded/ISP use, you need something with a storage interface that is either:

a) eMMC which can use a tiny flash module of the same type flash as found in MLC SSDs, with flash controller chip for write wear leveling

or

b) M.2 NVME SSD interface such as can be found on 170x170mm mini-itx x86-64 motherboards for intel or amd single socket CPUs. And of course on larger motherboards as well.

c) the "traditional" SATA3 disk interface which can be used for a SATA3 interface SSD.

Due to the very limited write lifespan of microSD cards, even "industrial" ones, it's just a really bad idea reliability wise to use a microSD card for boot and OS storage on any sort of remote embedded system that does anything important.

The drive writes per day (DWPD) figure in GB for even a cheap $55 consumer grade MLC SSD is vastly higher than the amount of times you can write to a microsd card.

Re: The Raspberry Pi as a Stratum-1 NTP Server

#34
post #14

Earlier quoted context omitted.

Switch to network boot with NFS as storage. Much faster (compared to most "cheap" SD cards) and more reliable.

Another possibility to improve reliability with SD cards is to use a distro that is designed to not make any writes to the storage in normal operation. I have some NTP servers running on OpenWRT and they work great.

Along a similar vein (if sticking with Raspbian, et al distros is important), you can e.g. disable swap and journaling, using ramdisk for logs, etc. as well as keeping lots of free space available for wear-leveling and a few other ideas: https://raspberrypi.stackexchange.com/questions/169/how-can-...

Re: The Raspberry Pi as a Stratum-1 NTP Server

#35
post #29

> Configuring Wi-Fi That alone will negate any benefit of running a stratum 1. You lose the precision and accuracy over wifi. Jitter on intranet with the pi as a timesource would be magnitudes greater than the GPS link.

Not exactly. Sometimes it's more helpful to have a local time source that you know is accurate but has a little jitter than to have a remote time source with intermittent Internet.

Re: The Raspberry Pi as a Stratum-1 NTP Server

#36
post #8
post #7

Earlier quoted context omitted.

I wonder how much the rpi foundation would need to sell a pi if it included 32gb of storage. I would gladly pay not to feel like I'm playing roulette with my microsd.

They just need to make booting from a USB drive easy. Plug in a $20 SSD and stop worrying about reliability.

It's pretty simple to do, as long as your USB drive is quick to come online.

I have an RPi running on one of those tiny USB thumb drives that only protrude a few mm and it's running a data capture suite I wrote to monitor my internet connection which writes to a PostgreSQL database on the Pi.

Re: The Raspberry Pi as a Stratum-1 NTP Server

#37
post #11

Earlier quoted context omitted.

How much more are you prepred to pay? This is a big jump up price-wise on the 'Pi, but it meets your "32gb of storage" requirement for $174: https://shop.udoo.org/other/home/udoo-x86-advanced-plus.html

Pretty sure you're also paying more for x86 (as compared to ARM).

Sure. I'm not aware of any ARM based SOC boards with that 32GB of storage though (not saying there aren't any, just saying I've got 1st hand experience with that Udoo board and RPis...)

I was hopeful that NextThing would get there, their C.H.I.P board was nice (when you could actually get them to sell you any) and had 8GB on-board, but they went tits-up earlier this year. Hardware is hard...

Re: The Raspberry Pi as a Stratum-1 NTP Server

#38
post #29

> Configuring Wi-Fi That alone will negate any benefit of running a stratum 1. You lose the precision and accuracy over wifi. Jitter on intranet with the pi as a timesource would be magnitudes greater than the GPS link.

RPi's ethernet-over-USB is no better: it aggregates packets to compensate for limited bandwitdh, incurring killer jitter.
Post reply on HN