<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Services memory percentage counts page cache, so database services always sit at 99%]]></title><description><![CDATA[<p dir="auto">The memory percentage on the Services page counts page cache, so a database service settles at 99% whatever limit you give it. Raise the limit and a few days later it reads 99% again, which makes the number hard to act on.</p>
<p dir="auto">Here is the postgresql service on a 4 GB limit, straight from its cgroup:</p>
<pre><code>anon              112 MB
file             3915 MB   (inactive_file 2974 MB, reclaimable)
oom_kill            0
</code></pre>
<p dir="auto">docker stats reports 27% for that same container at that same moment, because it subtracts inactive page cache.</p>
<p dir="auto">The tricky part is that 99% looks identical whether the cache is comfortably full or the container is thrashing. Here it happened to be the latter: the cgroup hit its ceiling 154 times per minute and the container read 117 MB/min from disk. After raising the limit those dropped to 0 and 44 kB/min. Nothing in the percentage told us which of the two situations we were in.</p>
<p dir="auto">Would it make sense to base the figure on memory.current minus inactive_file, or to show the reclaim and oom counters from memory.events next to it?</p>
]]></description><link>https://forum.cloudron.io/topic/15799/services-memory-percentage-counts-page-cache-so-database-services-always-sit-at-99</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 17:54:13 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15799.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Aug 2026 16:10:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Services memory percentage counts page cache, so database services always sit at 99% on Fri, 07 Aug 2026 09:56:32 GMT]]></title><description><![CDATA[<p dir="auto">Fixed - <a href="https://git.cloudron.io/platform/box/-/commit/a3ee1c354cbf6789724d3fda0ad64c87e3c72ba0" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/platform/box/-/commit/a3ee1c354cbf6789724d3fda0ad64c87e3c72ba0</a> . Thanks for reporting.</p>
]]></description><link>https://forum.cloudron.io/post/127879</link><guid isPermaLink="true">https://forum.cloudron.io/post/127879</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Aug 2026 09:56:32 GMT</pubDate></item><item><title><![CDATA[Reply to Services memory percentage counts page cache, so database services always sit at 99% on Fri, 07 Aug 2026 07:57:21 GMT]]></title><description><![CDATA[<p dir="auto">I think it would make sense not to count the cache. Checking the code...</p>
<p dir="auto">edit: ok, i see now. We actually explicitly do not count cache for system memory but this check is not done for the containers.</p>
]]></description><link>https://forum.cloudron.io/post/127874</link><guid isPermaLink="true">https://forum.cloudron.io/post/127874</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Aug 2026 07:57:21 GMT</pubDate></item></channel></rss>