I took the liberty of cc'ing this to the list.  This patch fixes a severe 
swap thrashing problem that was introduced by the use-once patch in 2.4.8.  I 
explained the details elsewhere.  Other than the swap problem (which was just 
an oversight, not a design error) the use-once strategy seems to be working 
fine.  My own anecdotal evidence: before, dpkg --config -a on this box was 
effectively a DoS, now I barely notice it while I'm running other 
applications.
There should be a similar hole in pagemap_nopage affecting memmapped files, 
but nobody has reported it yet.  I presume this is because it's a lot harder 
to trigger.  I'll supply a patch after I've looked at it a little more.
--- ../2.4.9.clean/mm/memory.c	Mon Aug 13 19:16:41 2001
+++ ./mm/memory.c	Sun Aug 19 21:35:26 2001
@@ -1119,6 +1119,7 @@
 			 */
 			return pte_same(*page_table, orig_pte) ? -1 : 1;
 		}
+		SetPageReferenced(page);
 	}
 
 	/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/