<?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: Pineapple</title>
    <description>The latest articles on DEV Community by Pineapple (@sibtainocn).</description>
    <link>https://dev.to/sibtainocn</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%2F4081587%2Fb2dde0b4-1907-4f8b-8f03-c94177fa58bd.jpg</url>
      <title>DEV Community: Pineapple</title>
      <link>https://dev.to/sibtainocn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sibtainocn"/>
    <language>en</language>
    <item>
      <title>Why Your RAM Cleaner's "Freed" Number Is Lying to You</title>
      <dc:creator>Pineapple</dc:creator>
      <pubDate>Mon, 17 Aug 2026 12:38:48 +0000</pubDate>
      <link>https://dev.to/sibtainocn/why-your-ram-cleaners-freed-number-is-lying-to-you-2b7h</link>
      <guid>https://dev.to/sibtainocn/why-your-ram-cleaners-freed-number-is-lying-to-you-2b7h</guid>
      <description>&lt;p&gt;Quiesce is a Windows system cleaner I built in Go - single &lt;code&gt;.exe&lt;/code&gt;, no installer, no background service. It clears out the usual junk (temp files, prefetch, error reports, Windows Update cache, logs, DNS cache) and includes a RAM optimizer I put more thought into than I expected to.&lt;/p&gt;

&lt;p&gt;That RAM optimizer is actually where this whole post comes from. I noticed vendor tools like ASUS's Armoury Crate and CCleaner report freeing way more RAM than a "correct" implementation does - and figured out why, which changed how I built this part of Quiesce.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;Windows memory cleanup, at the API level, comes down to four operations:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Purge standby list&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NtSetSystemInformation(80, 4)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Flush modified list&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NtSetSystemInformation(80, 3)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Trim every process's working set&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;EmptyWorkingSet(hProcess)&lt;/code&gt; per PID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Purge system file cache&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;NtSetSystemInformation(80, 5)&lt;/code&gt; / &lt;code&gt;SetSystemFileCacheSize(-1,-1,0)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Vendor tools that report dramatically bigger numbers are almost always also doing #3 - and that's where things get interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the big numbers actually come from
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;EmptyWorkingSet&lt;/code&gt; walks every running process and forcibly pages its private working set out to the pagefile/standby list. Task Manager's "In use" bar drops instantly, because those pages are no longer counted as in-use. Run a standby purge (#1) right after, and the memory genuinely reads as free.&lt;/p&gt;

&lt;p&gt;Looks great visually. Here's the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest caveat
&lt;/h2&gt;

&lt;p&gt;The pages evicted by &lt;code&gt;EmptyWorkingSet&lt;/code&gt; were &lt;strong&gt;live, working pages&lt;/strong&gt; - memory the app was actively using. The moment you switch back to that app (alt-tab to Chrome, tab back into your game), Windows has to hard-fault every one of those pages back in from disk. You trade an impressive-looking graph for a burst of disk I/O and visible stutter.&lt;/p&gt;

&lt;p&gt;Mark Russinovich has called these tools out for exactly this - memory that isn't "recovered," just displaced.&lt;/p&gt;

&lt;p&gt;Standby-list purging (#1/#2), by contrast, is the defensible half: standby pages are already-clean cache, and dropping them costs nothing but a re-read if you happen to need that file again. No stutter, no real cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually shipped
&lt;/h2&gt;

&lt;p&gt;Given that tradeoff, I didn't want to just bolt on #3 as a silent "bigger number" toggle. Instead, Quiesce ships four separate, labeled options:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sub-option&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Flush modified list&lt;/td&gt;
&lt;td&gt;Writes dirty pages to disk so they can be freed&lt;/td&gt;
&lt;td&gt;ON&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Purge standby list&lt;/td&gt;
&lt;td&gt;Frees the cached/standby page list&lt;/td&gt;
&lt;td&gt;ON&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;System file cache&lt;/td&gt;
&lt;td&gt;Drops the kernel's cached file data&lt;/td&gt;
&lt;td&gt;OFF&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trim working sets&lt;/td&gt;
&lt;td&gt;Pages out live app memory&lt;/td&gt;
&lt;td&gt;OFF&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The two safe operations are on by default. The two that can cause real, felt stutter are explicit, off-by-default opt-ins - and when working-set trimming does run, it always skips the current foreground process and protected system processes, so whatever you're actively using never gets gutted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it actually work?
&lt;/h2&gt;

&lt;p&gt;Ran the full cleaner (not just RAM optimization) on a friend's PC that hadn't been cleaned in a long time:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;&lt;br&gt;
Total items cleaned : 229277&lt;br&gt;
[6]  Windows Update Cache      : 228364 items&lt;br&gt;
[10] RAM Optimization          : 1880 MB freed (37.1% -&amp;gt; 25.6%, -11.5%)&lt;br&gt;
     ran: trim, flush, file cache, standby [76 procs trimmed, 130 skipped]&lt;br&gt;
[11] Recycle Bin               : 5.13 GB freed&lt;br&gt;
\&lt;/code&gt;&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;7GB+ disk space reclaimed, over 200K stale update cache files gone, zero crashes across about 5 minutes of continuous operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;If a cleaner tool shows you a big "memory freed" number, ask how. Standby/cache purging is real, free cleanup. Working-set trimming is a real technique too - but it has a genuine cost, and tools that apply it silently to everything (including whatever you're actively using) are trading your experience for a better-looking number. Quiesce lets you choose which trade you're making, instead of making it for you.&lt;/p&gt;

&lt;p&gt;Source is public on &lt;a href="https://github.com/SibtainOcn/Quiesce" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; if you want to see exactly what it does before giving it Administrator rights, or grab the latest release if you just want to try it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F03ozol6gi9sl4fezt2ny.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F03ozol6gi9sl4fezt2ny.png" alt="Quiesce cleaning summary output" width="579" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>opensource</category>
      <category>go</category>
      <category>windows</category>
    </item>
  </channel>
</rss>
