<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Madvise on Nalar</title>
    <link>https://nalar.dev/tags/madvise/</link>
    <description>Recent content in Madvise on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 19 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/madvise/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MADV_FREE Marks Anonymous Pages for Lazy Reclaim</title>
      <link>https://nalar.dev/madv-free-marks-anonymous-pages-for-lazy-reclaim/</link>
      <pubDate>Sat, 19 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/madv-free-marks-anonymous-pages-for-lazy-reclaim/</guid>
      <description>&lt;p&gt;&lt;code&gt;MADV_FREE&lt;/code&gt; does not immediately replace a private anonymous page with zeros. It marks eligible pages as disposable, allowing Linux to reclaim them later. Until reclaim actually occurs, existing bytes can remain observable. A write before reclaim cancels the disposable state for the affected page.&lt;/p&gt;&#xA;&lt;p&gt;That timing makes &lt;code&gt;MADV_FREE&lt;/code&gt; distinct from advice that immediately changes the process-visible state of a range. It is a lazy reclamation contract: the application declares that old contents are expendable, while the kernel chooses when physical memory is recovered.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
