<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yuanqiang leng</title>
    <description>The latest articles on DEV Community by yuanqiang leng (@yuanqiang_leng_79a0c309a2).</description>
    <link>https://dev.to/yuanqiang_leng_79a0c309a2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267107%2F665f8eb7-f9e6-49d1-8531-4fb6808583ed.png</url>
      <title>DEV Community: yuanqiang leng</title>
      <link>https://dev.to/yuanqiang_leng_79a0c309a2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuanqiang_leng_79a0c309a2"/>
    <language>en</language>
    <item>
      <title>2026 Self-Hosted n8n &amp; AI Agent Benchmarks: Non-Cached 4K fsync IOPS, Billing Meters &amp; Preventing Exit Code 137</title>
      <dc:creator>yuanqiang leng</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:17:16 +0000</pubDate>
      <link>https://dev.to/yuanqiang_leng_79a0c309a2/2026-self-hosted-n8n-ai-agent-benchmarks-non-cached-4k-fsync-iops-billing-meters-preventing-54ik</link>
      <guid>https://dev.to/yuanqiang_leng_79a0c309a2/2026-self-hosted-n8n-ai-agent-benchmarks-non-cached-4k-fsync-iops-billing-meters-preventing-54ik</guid>
      <description>&lt;p&gt;Most "cheapest VPS for n8n" articles hide two things: how per-task billing explodes once an AI agent runs 8–15 steps per conversation, and why 64 MB &lt;code&gt;dd if=/dev/zero&lt;/code&gt; benchmarks lie about real PostgreSQL 16 disk I/O.&lt;/p&gt;

&lt;p&gt;Here is the reproducible telemetry from our live Linux 6.8 KVM node, the exact billing-meter math across Zapier / Make / n8n Cloud / Hetzner / PikaPods / RackNerd, and the 4 environment variables that stopped Exit Code 137 OOM kills completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Real Non-Cached 4K Random fsync Telemetry (Not Cached &lt;code&gt;dd&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Measured on a live 3 vCPU Intel Xeon E5-2680 v4 node (&lt;code&gt;Linux 6.8.0-147-generic&lt;/code&gt;, 3,915 MB RAM, 4,095 MB swap):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Live Result&lt;/th&gt;
&lt;th&gt;Operational Takeaway&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Non-cached 4K random &lt;code&gt;pwrite&lt;/code&gt; + &lt;code&gt;fsync&lt;/code&gt; (500 ops / 16 MB)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,502.5 IOPS (0.40 ms avg)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Fast enough for concurrent PostgreSQL 16 WAL commits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Single-core SHA-256 throughput&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;282.4 MB/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Honest trade-off: older Broadwell CPU; great for Docker/webhooks, unsuitable for CPU LLM inference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;PostgreSQL 16&lt;/code&gt; idle RSS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;31 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Eliminates &lt;code&gt;SQLITE_BUSY&lt;/code&gt; with negligible RAM overhead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;dockerd&lt;/code&gt; + &lt;code&gt;containerd&lt;/code&gt; combined RSS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;138 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Baseline container runtime footprint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;cloudflared&lt;/code&gt; tunnel RSS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;39 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Exposes local Mac mini M4 / Beelink N100 safely without port forwarding&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Full machine-readable JSON dataset &amp;amp; reproduction script: &lt;a href="https://nodebudget.dev/benchmarks/2026-11-telemetry.json" rel="noopener noreferrer"&gt;https://nodebudget.dev/benchmarks/2026-11-telemetry.json&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Billing Meter Math: 15,000 Runs × 8 Steps/Run
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zapier&lt;/strong&gt; (bills per action step): &lt;code&gt;15,000 × 7 = 105,000 tasks&lt;/code&gt; → &lt;strong&gt;$899+/mo&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make.com&lt;/strong&gt; (bills per module + empty polls): &lt;code&gt;15,000 × 8 = 120,000 ops&lt;/code&gt; → &lt;strong&gt;$116.47/mo&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;n8n Cloud Pro&lt;/strong&gt; (bills whole executions): &lt;code&gt;15,000 runs&lt;/code&gt; → &lt;strong&gt;$105/mo&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PikaPods Managed n8n (neutral reference)&lt;/strong&gt;: &lt;strong&gt;~$3.70–$8/mo&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hetzner CX22 4GB (neutral reference)&lt;/strong&gt;: &lt;strong&gt;~$4.50/mo&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RackNerd 4GB KVM BF&lt;/strong&gt;: &lt;strong&gt;$4.00/mo ($47.98/yr locked)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive 6-Way Cost &amp;amp; 1-Click Script Builder&lt;/strong&gt;: &lt;a href="https://nodebudget.dev/" rel="noopener noreferrer"&gt;https://nodebudget.dev/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Stopping n8n Exit Code 137 (OOMKilled) Permanently
&lt;/h2&gt;

&lt;p&gt;Add these 4 variables to your &lt;code&gt;docker-compose.yml&lt;/code&gt; alongside a 2 GB Linux swapfile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;N8N_DEFAULT_BINARY_DATA_MODE=filesystem&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;EXECUTIONS_DATA_PRUNE=true&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;EXECUTIONS_DATA_MAX_AGE=168&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;EXECUTIONS_DATA_PRUNE_MAX_COUNT=25000&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;NODE_OPTIONS=--max-old-space-size=2048&lt;/span&gt;
&lt;span class="na"&gt;mem_limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;3g&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Full Exit Code 137 diagnostic guide: &lt;a href="https://nodebudget.dev/errors/n8n-exit-code-137-oom-fix/" rel="noopener noreferrer"&gt;https://nodebudget.dev/errors/n8n-exit-code-137-oom-fix/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Open-source Docker Compose templates (MIT): &lt;a href="https://github.com/a895047059/stackpilot-ai-docker-templates" rel="noopener noreferrer"&gt;https://github.com/a895047059/stackpilot-ai-docker-templates&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
    </item>
  </channel>
</rss>
