[PATCH 4/6] readahead: kconfig option READAHEAD_SMOOTH_AGING

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make the kconfig option READAHEAD_SMOOTH_AGING depend on
READAHEAD_ALLOW_OVERHEADS, and turned off by default.

Signed-off-by: Wu Fengguang <[email protected]>
---


--- linux-2.6.17-mm2.orig/mm/Kconfig
+++ linux-2.6.17-mm2/mm/Kconfig
@@ -216,6 +216,14 @@ config DEBUG_READAHEAD
 	  Say N for production servers.
 
 config READAHEAD_SMOOTH_AGING
-	def_bool n if NUMA
-	default y if !NUMA
-	depends on ADAPTIVE_READAHEAD
+	bool "Fine grained readahead aging"
+	default n
+	depends on READAHEAD_ALLOW_OVERHEADS && !NUMA
+	help
+	  Enable fine grained, mooth accounting of readahead aging.
+
+	  It can help servers which meet the following two conditions:
+	  	- have large number of concurrent readers
+		- have the danger of readahead thrashing(i.e. memory tight)
+
+	  This feature is only available on non-NUMA systems.

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux