<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Performance on Linux Café</title>
    <link>https://mrtomlinux.org/tags/performance/</link>
    <description>Recent content in Performance on Linux Café</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 27 Oct 2026 11:15:20 +0200</lastBuildDate>
    <atom:link href="https://mrtomlinux.org/tags/performance/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Diagnosing a 30‑second Nginx start‑up lag on an 8‑core ARM home‑server</title>
      <link>https://mrtomlinux.org/post/2026-10-27-diagnosing-a-30second-nginx-startup-lag-on-an/</link>
      <pubDate>Tue, 27 Oct 2026 11:15:20 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-27-diagnosing-a-30second-nginx-startup-lag-on-an/</guid>
      <description>&lt;h2 id=&#34;the-30second-nginx-startup-mystery-on-an-8core-arm-box&#34;&gt;The 30‑second Nginx start‑up mystery on an 8‑core ARM box&lt;/h2&gt;&#xA;&lt;p&gt;I had a clean 8‑core ARM server (Cortex‑A72, 4 GB RAM) running Debian 12. Nginx was the only service that took longer than a couple of seconds to come up. The log said “started” after 30 s, but the system was idle otherwise. I wanted to know why a stateless web server was so slow to boot on a modern CPU.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why my 4GB Raspberry Pi 4 keeps swapping during a Python script – and how I fixed it by moving swap to USB</title>
      <link>https://mrtomlinux.org/post/2026-09-29-why-my-4gb-raspberry-pi-4-keeps-swapping-duri/</link>
      <pubDate>Tue, 29 Sep 2026 09:15:51 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-09-29-why-my-4gb-raspberry-pi-4-keeps-swapping-duri/</guid>
      <description>&lt;h2 id=&#34;why-the-pi-keeps-swapping&#34;&gt;Why the Pi keeps swapping&lt;/h2&gt;&#xA;&lt;p&gt;I was running a memory‑hungry Python data‑pipeline on a 4 GB Raspberry Pi 4 when the system started thrashing every few minutes. &lt;code&gt;top&lt;/code&gt; was showing swap usage climbing to 90 % while my script was still busy. The Pi’s 4 GB RAM was the hard limit, and the default swap file on the SD card was the culprit.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-culprit&#34;&gt;The culprit&lt;/h3&gt;&#xA;&lt;p&gt;The SD card is the only storage medium on the Pi, but it’s also the slowest. When the kernel starts paging, it writes to the swap file on the card, creating I/O bottlenecks that stall the Python interpreter. The swap file is defined in &lt;code&gt;/etc/fstab&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>When pulseaudio turns your laptop into a CPU hamster: how to reduce its load with a simple configuration tweak</title>
      <link>https://mrtomlinux.org/post/2026-09-15-when-pulseaudio-turns-your-laptop-into-a-cpu-/</link>
      <pubDate>Tue, 15 Sep 2026 09:44:48 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-09-15-when-pulseaudio-turns-your-laptop-into-a-cpu-/</guid>
      <description>&lt;h2 id=&#34;pulseaudio-cpu-hogging&#34;&gt;PulseAudio CPU Hogging&lt;/h2&gt;&#xA;&lt;p&gt;If your laptop’s fan has been doing the back‑and‑forth dance or the CPU clock keeps climbing while you’re just listening to a playlist or watching a video, you’ve probably run into PulseAudio’s infamous CPU bloat. The daemon is built for flexibility, not for squeezing every watt out of a laptop, and its out‑of‑the‑box settings can turn a modest machine into a little CPU hamster.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-pulseaudio-can-be-a-cpu-hamster&#34;&gt;Why PulseAudio Can Be a CPU Hamster&lt;/h3&gt;&#xA;&lt;p&gt;The resampling engine runs in user space and gets hit for every stream that needs a sample‑rate or format change. By default it uses &lt;code&gt;soxr&lt;/code&gt;, a high‑quality but heavy algorithm. Combine that with the default 48 kHz sample rate and 32‑bit float format, and you’re looking at a few percent of a core even when the system is otherwise idle. On older hardware or when the battery is low, that overhead shows up as a fan spin or a temperature spike.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting Slow System Boot Times with systemd-analyze and ps eoq</title>
      <link>https://mrtomlinux.org/post/2026-07-06-troubleshooting-slow-system-boot-times-with-s/</link>
      <pubDate>Mon, 06 Jul 2026 10:44:22 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-06-troubleshooting-slow-system-boot-times-with-s/</guid>
      <description>&lt;h2 id=&#34;introduction-to-slow-system-boot-times&#34;&gt;Introduction to Slow System Boot Times&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve seen this go wrong when a slow system boot time brings your entire workflow to a crawl. Whether you&amp;rsquo;re running a homelab server or a desktop Linux installation, a slow boot can be frustrating. In this article, we&amp;rsquo;ll explore how to troubleshoot slow system boot times using &lt;code&gt;systemd-analyze&lt;/code&gt; and other practical tools.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-systemd-analyze&#34;&gt;Understanding systemd-analyze&lt;/h2&gt;&#xA;&lt;p&gt;The real trick is to use &lt;code&gt;systemd-analyze&lt;/code&gt; to get a detailed breakdown of the boot process. This powerful tool provides insights into the time spent on each service and the overall boot time. To use &lt;code&gt;systemd-analyze&lt;/code&gt;, simply run:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting High IO Wait on My Home Server with systemd and top</title>
      <link>https://mrtomlinux.org/post/2026-06-11-troubleshooting-high-io-wait-on-my-home-serve/</link>
      <pubDate>Thu, 11 Jun 2026 09:23:45 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-11-troubleshooting-high-io-wait-on-my-home-serve/</guid>
      <description>&lt;h2 id=&#34;introduction-to-high-io-wait&#34;&gt;Introduction to High IO Wait&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been running my home server for a while now, and lately, I&amp;rsquo;ve noticed it&amp;rsquo;s been experiencing high IO wait times. This has resulted in slower performance and increased latency. I&amp;rsquo;ve seen this go wrong when disk usage, memory constraints, and system configuration aren&amp;rsquo;t properly balanced. In this article, I&amp;rsquo;ll walk you through the steps I took to troubleshoot and resolve the high IO wait issue on my home server using systemd and top.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming Resource-Intensive Background Jobs with nice and ionice</title>
      <link>https://mrtomlinux.org/post/2026-05-31-taming-resource-intensive-background-jobs-wit/</link>
      <pubDate>Sun, 31 May 2026 08:28:12 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-05-31-taming-resource-intensive-background-jobs-wit/</guid>
      <description>&lt;h2 id=&#34;introduction-to-resource-management&#34;&gt;Introduction to Resource Management&lt;/h2&gt;&#xA;&lt;p&gt;As someone who&amp;rsquo;s spent years running Linux systems, I&amp;rsquo;ve learned that managing background jobs is crucial for maintaining system performance. Whether you&amp;rsquo;re running a homelab, self-hosting services, or just using your Linux machine for everyday tasks, it&amp;rsquo;s essential to keep resource-intensive jobs in check. In this article, I&amp;rsquo;ll dive into how to use &lt;code&gt;nice&lt;/code&gt; and &lt;code&gt;ionice&lt;/code&gt; to tame these jobs and keep your system responsive.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-nice&#34;&gt;Understanding nice&lt;/h2&gt;&#xA;&lt;p&gt;The &lt;code&gt;nice&lt;/code&gt; command is a simple way to set the priority of a process. By default, Linux gives all processes a nice value of 0, which is normal priority. You can adjust this value using the &lt;code&gt;nice&lt;/code&gt; command, with values ranging from -20 (highest priority) to 19 (lowest priority). To use &lt;code&gt;nice&lt;/code&gt;, just prefix your command with the &lt;code&gt;nice&lt;/code&gt; command and the desired nice value. For example:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
