Gary E. Miller gem at rellim.com
Wed Sep 13 00:08:46 UTC 2023

Yo Hal!

On Tue, 12 Sep 2023 16:55:12 -0700
Hal Murray via devel <devel at ntpsec.org> wrote:

> Gary said:
> >James Browning via devel <devel at ntpsec.org> wrote:  
> >> It would appear there is a way to turn off GC under runtime/,  
> > How?  Link?   
> https://pkg.go.dev/runtime/debug#SetGCPercent
> It's not clear to me how to take advantage of that.  You still have
> to turn it on occasionally or your world will fill up with garbage.

Assuming you create garbage.  Avoiding creating garbage is hard.

> I poked around a bit.  I'm pretty sure that we can write a server
> that doesn't generate any garbage when processing a normal client
> request.

The problem is not when you generate garbage, but when the garbage
collector wakes up.

> Occasinally, there is something in the 60-70 microseconds range.
> They are rare enough that it's easy to miss one in a million sample
> pairs of reading the clock.

Which is why NTP slowly adjusts PLL's instead of jumping around.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20230912/f7ba6fbe/attachment.bin>

More information about the devel mailing list