<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Systemd on Ubuntu Tips</title><link>https://ubuntips.com/tags/systemd/</link><description>Recent content in Systemd on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 30 Nov 2026 12:42:17 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/systemd/index.xml" rel="self" type="application/rss+xml"/><item><title>One Valkey restart per run: folding three restarts into the BOLT swap</title><link>https://ubuntips.com/posts/one-valkey-restart-per-run/</link><pubDate>Mon, 30 Nov 2026 12:30:00 +0800</pubDate><guid>https://ubuntips.com/posts/one-valkey-restart-per-run/</guid><description>&lt;p&gt;&lt;a href="https://ubuntips.com/posts/nginx-from-source-and-no-packages/"&gt;My setup script&lt;/a&gt; compiles Valkey from source and, on a host that can record branch samples, runs it through BOLT: it profiles a benchmark and lays out the hot code again. This cycle had one job: stop &lt;code&gt;--optimize&lt;/code&gt; from restarting Valkey more than once.&lt;/p&gt;&#10;&lt;h2 id="three-restarts-where-one-would-do" class="heading-anchor"&gt;Three restarts where one would do&lt;a class="anchor" href="#three-restarts-where-one-would-do" aria-label="Link to section: Three restarts where one would do"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;An &lt;code&gt;--optimize&lt;/code&gt; run looks at Valkey in two steps. First the tuner rewrites &lt;code&gt;valkey.conf&lt;/code&gt;. Some of what it sets only applies at startup, such as the socket permissions, so when one of those changes the tuner restarts the server. Then the build step brings the binary up to date. If upstream released a new Valkey, it activates the new build, which is a second restart. If the build has not been through BOLT yet, it profiles it and swaps in the optimized binary: a third restart.&lt;/p&gt;</description></item></channel></rss>