LWN: Comments on "Tracking actual memory utilization" https://lwn.net/Articles/642202/ This is a special feed containing comments posted to the individual LWN article titled "Tracking actual memory utilization". en-us Sat, 18 Oct 2025 11:01:49 +0000 Sat, 18 Oct 2025 11:01:49 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Tracking actual memory utilization https://lwn.net/Articles/642955/ https://lwn.net/Articles/642955/ jzbiciak <P>I can confirm that ARM (at least as of v7, using LPAE) has an Accessed Flag (AF) in the page table entry. (I've only ever worked directly with LPAE; I've avoided the horror show that is ARM's 32-bit page table format.) When LPAE is enabled, you can set the MMU to automatically manage the AF, or to fault on access to a page that has AF=0 so that software can set the flag and do whatever other bookkeeping it desires.</P> <P>When you configure the ARM hardware to automatically set AF, then this all happens silently in the background. If you configure the ARM hardware to fault when AF=0, then clearing AF is effectively removes access to the page. You take a page fault on accessing it.</P> <P>I haven't gotten into the guts of how Linux uses flags such as these when the hardware offers them. For example, when LPAE is in use, does ARM Linux configure the MMU to manage AF in hardware or software?</P> Sat, 02 May 2015 08:40:17 +0000 Tracking actual memory utilization https://lwn.net/Articles/642835/ https://lwn.net/Articles/642835/ etienne <div class="FormattedComment"> <font class="QuotedText">&gt; How is this different than the software dirty bit in /proc/pid/pagemap?</font><br> <p> dirty bit means page written, accessed bit means page read...<br> </div> Fri, 01 May 2015 12:35:46 +0000 Tracking actual memory utilization https://lwn.net/Articles/642828/ https://lwn.net/Articles/642828/ cov <div class="FormattedComment"> How is this different than the software dirty bit in /proc/pid/pagemap?<br> </div> Fri, 01 May 2015 11:42:42 +0000 Tracking actual memory utilization https://lwn.net/Articles/642822/ https://lwn.net/Articles/642822/ etienne <div class="FormattedComment"> <font class="QuotedText">&gt; That action will make the page inaccessible (much like the normal kernel usage tracking does) so that a fault will result whenever a process tries to read or write that page</font><br> <p> I believe Intel/AMD processor have an "accessed" bit for each page so that you would not need to make the page inaccessible (and save the exception CPU time to swap it back to accessible, all being done in hardware).<br> I believe ARM do not have that "accessed" bit.<br> </div> Fri, 01 May 2015 11:23:28 +0000