Skip to contentSkip to conversation

VM fixes [3/4]

PATCH Andrea Arcangeli 1 participant 1 message Dec 24, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This is Con's disable_thrash_control he posted on l-k some day ago and that I already acknowledged.

mm/rmap.c +3 -0
Index: linux-2.6.10-rc3/mm/rmap.c
===================================================================
@@ -395,6 +395,9 @@ int page_referenced(struct page *page, i
 {
 	int referenced = 0;
 
+	if (!swap_token_default_timeout)
+		ignore_token = 1;
+
 	if (page_test_and_clear_young(page))
 		referenced++;
 
mm/thrash.c +4 -1
Index: linux-2.6.10-rc3/mm/thrash.c
===================================================================
@@ -19,7 +19,10 @@ unsigned long swap_token_check;
 struct mm_struct * swap_token_mm = &init_mm;
 
 #define SWAP_TOKEN_CHECK_INTERVAL (HZ * 2)
-#define SWAP_TOKEN_TIMEOUT (HZ * 300)
+#define SWAP_TOKEN_TIMEOUT	0
+/*
+ * Currently disabled; Needs further code to work at HZ * 300.
+ */
 unsigned long swap_token_default_timeout = SWAP_TOKEN_TIMEOUT;
 
 /*