<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System-Administration on Samuel Matildes - Knowledge Base</title><link>https://docs.matildes.dev/tags/system-administration/</link><description>Recent content in System-Administration on Samuel Matildes - Knowledge Base</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 26 May 2026 14:15:13 +0100</lastBuildDate><atom:link href="https://docs.matildes.dev/tags/system-administration/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding CPU Statistics in Linux (/proc/stat)</title><link>https://docs.matildes.dev/linux/kernel/cpu-statistics/</link><pubDate>Tue, 14 Jan 2025 00:00:00 +0000</pubDate><guid>https://docs.matildes.dev/linux/kernel/cpu-statistics/</guid><description>&lt;p&gt;&lt;i class="fas fa-microchip" aria-hidden="true"&gt;&lt;/i&gt; Kernel-Level CPU Time Accounting&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;a class="td-heading-self-link" href="#summary" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The Linux kernel maintains precise, per-CPU time accounting across ten distinct execution contexts. These statistics, exposed via &lt;code&gt;/proc/stat&lt;/code&gt;, represent cumulative jiffy counters (typically 1/100th or 1/1000th of a second) since system boot. Understanding these counters is essential for performance analysis, capacity planning, and diagnosing CPU contention, I/O bottlenecks, interrupt storms, and virtualization overhead.&lt;/p&gt;
&lt;h2 id="the-procstat-interface"&gt;The /proc/stat Interface&lt;a class="td-heading-self-link" href="#the-procstat-interface" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;/proc/stat&lt;/code&gt; is a virtual file provided by the kernel&amp;rsquo;s proc filesystem. It contains system-wide statistics aggregated across all CPUs and individual per-CPU lines. The format is non-blocking and updated atomically by the kernel scheduler&amp;rsquo;s tick handler.&lt;/p&gt;</description></item></channel></rss>