<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: mlichvar</title><link>https://news.ycombinator.com/user?id=mlichvar</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Tue, 20 Oct 2026 21:03:12 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=mlichvar" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by mlichvar in "BIPM decides to stop adding leap seconds to UTC"]]></title><description><![CDATA[
<p>It's very rare. I wrote my own clock application to properly see the leap second back in 2015. Here is a recording:
<a href="https://fedorapeople.org/~mlichvar/leap2015/clock_step.gif" rel="nofollow">https://fedorapeople.org/~mlichvar/leap2015/clock_step.gif</a></p>
]]></description><pubDate>Fri, 16 Oct 2026 14:42:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=50118970</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=50118970</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50118970</guid></item><item><title><![CDATA[New comment by mlichvar in "Most Stable Raspberry Pi? Better NTP with Thermal Management"]]></title><description><![CDATA[
<p>That's what the chrony tempcomp directive is for. But you would have to figure out the coefficients, it's not automatic.<p>An advantage of constantly loading at least one core of the CPU might be preventing the deeper power states from kicking in, which should make the RX timestamping latency more stable and improve stability of synchronization of NTP clients.</p>
]]></description><pubDate>Tue, 25 Nov 2025 10:25:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=46044437</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=46044437</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46044437</guid></item><item><title><![CDATA[New comment by mlichvar in "Please donate to keep Network Time Protocol up – Goal 1k"]]></title><description><![CDATA[
<p>Current Debian, Ubuntu, Fedora, RHEL/CentOS (EPEL) have an ntpsec package, but no ntp package. It's not used by default (that's chrony on most of the distributions), but the users can install it and use it.</p>
]]></description><pubDate>Wed, 12 Nov 2025 15:41:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=45901527</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=45901527</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45901527</guid></item><item><title><![CDATA[New comment by mlichvar in "Please donate to keep Network Time Protocol up – Goal 1k"]]></title><description><![CDATA[
<p>The major Linux distributions replaced ntp with ntpsec. A better question would be who is still running ntp. I know about FreeBSD and NetBSD.<p>ntpsec as a project seems to be doing ok. They are releasing new versions, fix reported issues, accept patches, and develop the code publicly. While ntp still has a huge list of acknowledged but unfixed CVEs.</p>
]]></description><pubDate>Wed, 12 Nov 2025 14:01:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=45900286</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=45900286</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45900286</guid></item><item><title><![CDATA[New comment by mlichvar in "The Limits of NTP Accuracy on Linux"]]></title><description><![CDATA[
<p>I agree with most of what you said.<p>The author has other posts in the series where he tried to measure the accuracy relative to the PHC (not system clock) using PPS:
<a href="https://scottstuff.net/posts/2025/06/02/measuring-ntp-accuracy-with-an-oscilloscope/" rel="nofollow">https://scottstuff.net/posts/2025/06/02/measuring-ntp-accura...</a><p>Steering the same PHC with phc2sys as chronyd is using for HW timestamping is not the best approach as that creates a feedback loop (instability). It would be better to leave the PHC running free and just compare the sys<->PHC with PHC<->PPS offsets.<p>> So your 100m->1G link for example will already introduce over 1 us of error (to accuracy!), but NTP will never show you this<p>That doesn't apply to NTP to such an extent as PTP because it timestamps end of the reception (HW RX timestamps are transposed to the end of the packet), so the asymmetries in transmission lengths due to different link speeds should cancel out (unless the switches are cutting through in the faster->slower link direction, but that seems to be rare).</p>
]]></description><pubDate>Tue, 26 Aug 2025 13:46:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=45026498</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=45026498</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45026498</guid></item><item><title><![CDATA[New comment by mlichvar in "The Limits of NTP Accuracy on Linux"]]></title><description><![CDATA[
<p>chrony can be configured to encapsulate NTP messages in PTP messages (NTP over PTP) in order to get the delay corrections from switches working as one-step PTP transparent clocks. The current NTPv5 draft specifies an NTP-specific correction field, which switches could support in future if there was a demand for it.<p>The switches could also implement a proper HW-timestamping NTP server and client to provide an equivalent to a PTP boundary clock.<p>PTP was based on a broadcast/multicast model to reduce the message rate in order to simplify and reduce the cost of HW support. But that is no longer a concern with modern HW that can timestamp packets at very high rates, so the simpler unicast protocols like NTP and client-server PTP (CSPTP) currently developed by IEEE might be preferable to classic PTP for better security and other advantages.</p>
]]></description><pubDate>Tue, 26 Aug 2025 09:37:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=45024280</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=45024280</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45024280</guid></item><item><title><![CDATA[New comment by mlichvar in "Multiple security issues in GNU Screen"]]></title><description><![CDATA[
<p>On Fedora it is setgid screen, not root.</p>
]]></description><pubDate>Tue, 13 May 2025 13:31:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=43972773</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=43972773</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43972773</guid></item><item><title><![CDATA[New comment by mlichvar in "Y292B Bug"]]></title><description><![CDATA[
<p>The Linux kernel keeps time as a 64-bit integer, but it's in nanoseconds, not seconds. It's a Y2262 problem.</p>
]]></description><pubDate>Sun, 30 Jun 2024 19:15:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=40839394</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=40839394</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40839394</guid></item><item><title><![CDATA[New comment by mlichvar in "TinyMCE (also) moving from MIT to GPL"]]></title><description><![CDATA[
<p>Another way to look at it is that MIT gives freedom to the developers and GPL gives freedom to the users. It's a conflict between the two groups.</p>
]]></description><pubDate>Wed, 27 Mar 2024 13:25:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=39838746</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=39838746</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39838746</guid></item><item><title><![CDATA[New comment by mlichvar in "Zigbee and Z-Wave are the best part of my smart home"]]></title><description><![CDATA[
<p>My current understanding of the wireless technologies wrt to home automation:<p>- wifi is most reliable, secure, easiest to debug, but usable only for mains-powered devices due to higher energy consumption<p>- bluetooth LE has lowest energy consumption, best for unreliable broadcasting of data (e.g. temperature sensors), but has shorter range<p>- zigbee is best for battery-powered devices where reliable communication is needed and is initiated by the device (e.g. switch, window/door sensor)<p>- zwave is best for battery-powered devices which need to quickly receive data (e.g. door lock or directly controller radiator valves), but security seems problematic according to some reports</p>
]]></description><pubDate>Mon, 12 Feb 2024 16:23:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=39346713</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=39346713</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39346713</guid></item><item><title><![CDATA[New comment by mlichvar in "Simple Precision Time Protocol at Meta"]]></title><description><![CDATA[
<p>To me that looks like they are reinventing NTP, but not addressing all the issues of PTP.<p>A big problem with the PTP unicast mode is an almost infinite traffic amplification (useful for DDoS attacks). The server is basically a programmable packet generator. Never expose unicast PTP to internet. In SPTP that seems to be no longer the case (the server is stateless), but there is still the follow up message causing a 2:1 amplification. I think something like the NTP interleaved mode would be better.<p>It seems they didn't replace the PTP offset calculation assuming a constant delay (broadcast model). That doesn't work well when the distribution of the delay is not symmetric, e.g. errors in hardware timestamping on the NIC are sensitive to network load. They would need to measure the actual error of the clock to see that (the graphs in the article seem to show only the offset measured by SPTP itself, a common issue when improvements in time synchronization are demonstrated).<p>I think a better solution taking advantage of existing PTP support in hardware is to encapsulate NTP messages in PTP packets. NICs and switches/routers see PTP packets, so they provide highly accurate timestamps and corrections, but the measurements and their processing can be full-featured NTP, keeping all its advantages like resiliency and security. There is an IETF draft specifying that:<p><a href="https://datatracker.ietf.org/doc/draft-ietf-ntp-over-ptp/" rel="nofollow">https://datatracker.ietf.org/doc/draft-ietf-ntp-over-ptp/</a><p>An experimental support for NTP-over-PTP is included in the latest chrony release. In my tests with switches that work as one-step transparent clocks the accuracy is same as with PTP (linuxptp).</p>
]]></description><pubDate>Thu, 08 Feb 2024 08:36:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=39299686</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=39299686</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39299686</guid></item><item><title><![CDATA[Comparison of Android ROMs]]></title><description><![CDATA[
<p>Article URL: <a href="https://eylenburg.github.io/android_comparison.htm">https://eylenburg.github.io/android_comparison.htm</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=38892395">https://news.ycombinator.com/item?id=38892395</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 06 Jan 2024 15:50:44 +0000</pubDate><link>https://eylenburg.github.io/android_comparison.htm</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=38892395</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38892395</guid></item><item><title><![CDATA[New comment by mlichvar in "Signal reflections in electronic circuits"]]></title><description><![CDATA[
<p>Here is a nice animation of reflections I found useful: <a href="https://www.youtube.com/watch?v=ozeYaikI11g" rel="nofollow noreferrer">https://www.youtube.com/watch?v=ozeYaikI11g</a></p>
]]></description><pubDate>Mon, 27 Nov 2023 12:19:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=38431421</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=38431421</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38431421</guid></item><item><title><![CDATA[New comment by mlichvar in "Google assigns a CVE for libwebp and gives it a 10.0 score"]]></title><description><![CDATA[
<p>Fuzzing needs to cover all important bits of the code to be useful. The problem I see is that incomplete coverage creates a false sense of security. Projects have some minimal fuzzing coverage (e.g. in oss-fuzz) and care less about quality of the code, thinking fuzzing will catch all security bugs.<p>Rust code needs proper fuzzing too. It takes a lot of effort to ensure everything is covered and stays covered as the code is developed. Crashing libraries or applications can be a denial of service. Sure, it's lower impact than an RCE due to a buffer overflow, but it is still a security issue.</p>
]]></description><pubDate>Tue, 26 Sep 2023 17:17:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=37662601</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=37662601</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37662601</guid></item><item><title><![CDATA[New comment by mlichvar in "Ubus (OpenWrt micro bus architecture)"]]></title><description><![CDATA[
<p>It's even less than that. Current OpenWrt versions work on devices with 8 MB of flash and 64 MB of RAM. OpenWrt 19.07 worked on 4MB/32MB devices.</p>
]]></description><pubDate>Sun, 27 Aug 2023 08:35:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=37280647</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=37280647</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37280647</guid></item><item><title><![CDATA[New comment by mlichvar in "Windows feature that resets system clocks based on random data is wreaking havoc"]]></title><description><![CDATA[
<p>A better solution to secure bootstrapping of time would be NTP+NTS (RFC 8915) using self-signed certificates with unlimited time validity, which can be preloaded with the OS and updated via normal OS updates if the server key is compromised. They would probably need to run their own servers. There are some public NTS servers (e.g. Cloudflare and Netnod), but I have not seen any using long-term certificates specifically for this use case.</p>
]]></description><pubDate>Wed, 16 Aug 2023 19:27:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=37152341</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=37152341</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37152341</guid></item><item><title><![CDATA[New comment by mlichvar in "Nanosecond timestamp collisions are common"]]></title><description><![CDATA[
<p>A major problem in synchronization of the system clock is PCIe. Hardware can timestamp PPS signal or PTP/NTP packets with accuracy of a few nanoseconds if everything is well compensated, but the PCIe bus between the CPU and the timestamping HW has a latency of hundreds of nanoseconds with potentially large asymmetry, degrading the accuracy significantly.<p>Measuring that error is difficult. A possibility is to run a program periodically making random reads from memory (avoiding the CPU cache) to generate a PPS signal on the memory bus, which can be observed with a scope. There is a lot of noise due to other memory activity, RAM refresh, etc. From the configured memory speed and tRCD+tCL timings the uncertainty of the error can be reduced.<p>This might improve with new hardware. There is a feature called Precision Time Measurement (PTM), which is a hardware implementation of an NTP-like protocol in PCIe, but so far I have seen this working only on some onboard NICs.</p>
]]></description><pubDate>Fri, 21 Jul 2023 08:59:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=36811617</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=36811617</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36811617</guid></item><item><title><![CDATA[New comment by mlichvar in "Xterm: It's better than you thought (2021)"]]></title><description><![CDATA[
<p>When you are comparing performance to kitty, are they both scrolling line by line (xterm's default), or jumping as with the xterm jumpScroll or fastScroll option?</p>
]]></description><pubDate>Mon, 01 May 2023 10:18:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=35770919</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=35770919</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35770919</guid></item><item><title><![CDATA[New comment by mlichvar in "The end of a myth: Distributed transactions can scale"]]></title><description><![CDATA[
<p>> There's no networking hardware timestamp support for NTP because NTP has nothing to do with hardware timestamps.<p>Both NTP and PTP don't care (as protocols) where the timestamps are coming from. That's an implementation detail.<p>> NTP can usually maintain time to within tens of milliseconds over the public Internet, and can achieve better than one millisecond accuracy in local area networks under ideal conditions<p>That was maybe 20-30 years ago, but not today. The wikipedia article needs an update. If you don't hit a routing asymmetry, in my experience it's usually milliseconds over Internet and tens of microseconds in local network if using SW timestamping. Please note that NTP clients by default use long polling intervals to avoid excessive load on public servers on Internet, so they need to be specifically configured for better performance in local networks.<p>You can find some measurements with HW timestamping here:
<a href="https://chrony.tuxfamily.org/examples.html" rel="nofollow">https://chrony.tuxfamily.org/examples.html</a><p>Note that this is for the system clock, which has to be synchronized over PCIe to the hardware clock of the NIC. That adds hundreds of nanoseconds of uncertainty. It doesn't matter if the hardware clock is synchronized by PTP or NTP.<p>If you care only about the hardware clocks, it's easy to show how accurate is the synchronization by comparing their PPS signals on a scope. NTP between two directly connected NICs, or a with a hub, can get to single-digit nanosecond accuracy. I have seen that in my testing. It's just timestamps, it doesn't matter how they are exchanged.</p>
]]></description><pubDate>Tue, 11 Apr 2023 10:00:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=35522939</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=35522939</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35522939</guid></item><item><title><![CDATA[New comment by mlichvar in "The end of a myth: Distributed transactions can scale"]]></title><description><![CDATA[
<p>No, NTP and PTP are two different protocols. They can both use hardware timestamps and  reach single-digit nanosecond accuracy in ideal conditions. The main difference is in existing support in switches and routers, which is needed to avoid the impact of asymmetric delay between ports (typically tens of nanoseconds per switch).<p>PTP has good support in higher-end switches and routers, but it's difficult to secure and make resilient to failures. It was designed for automation and control networks in factories etc. NTP is a better fit for computer networks, but there doesn't seem to be any switches or routers with HW NTP support. If you really need the best accuracy with NTP, you can find old 100Mb/s hubs on ebay and create a separate network.</p>
]]></description><pubDate>Tue, 11 Apr 2023 09:03:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=35522592</link><dc:creator>mlichvar</dc:creator><comments>https://news.ycombinator.com/item?id=35522592</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35522592</guid></item></channel></rss>