diff -urN oldtree/mm/filemap.c newtree/mm/filemap.c --- oldtree/mm/filemap.c 2006-09-26 15:40:12.000000000 -0400 +++ newtree/mm/filemap.c 2006-09-26 15:44:34.000000000 -0400 @@ -952,7 +952,28 @@ * Sysctl which determines whether we should read from large files to the * tail of the inactive lru list. */ +/* Staircase Tunables */ +#ifdef CONFIG_STAIRCASE_SERVER +int vm_tail_largefiles __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_FILE_SERVER +int vm_tail_largefiles __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_COMPUTE_SERVER +int vm_tail_largefiles __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_GAMING +int vm_tail_largefiles __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_DESKTOP int vm_tail_largefiles __read_mostly = 1; +#endif +#ifdef CONFIG_STAIRCASE_LL_DESKTOP +int vm_tail_largefiles __read_mostly = 1; +#endif +#ifdef CONFIG_STAIRCASE_CUSTOM +int vm_tail_largefiles __read_mostly = CONFIG_VM_TAIL_LARGEFILES_SETTING; +#endif static inline int nr_mapped(void) { diff -urN oldtree/mm/page-writeback.c newtree/mm/page-writeback.c --- oldtree/mm/page-writeback.c 2006-09-26 15:31:41.000000000 -0400 +++ newtree/mm/page-writeback.c 2006-09-26 15:46:04.000000000 -0400 @@ -32,6 +32,7 @@ #include #include #include +#include /* * The maximum number of pages to writeout in a single bdflush/kupdate @@ -71,7 +72,28 @@ /* * The generator of dirty data starts writeback at this percentage */ -int vm_dirty_ratio __read_mostly; +/* E-Mission Insanity */ +#ifdef CONFIG_STAIRCASE_SERVER +int vm_dirty_ratio __read_mostly = 66; +#endif +#ifdef CONFIG_STAIRCASE_FILE_SERVER +int vm_dirty_ratio __read_mostly = 66; +#endif +#ifdef CONFIG_STAIRCASE_COMPUTE_SERVER +int vm_dirty_ratio __read_mostly = 66; +#endif +#ifdef CONFIG_STAIRCASE_GAMING +int vm_dirty_ratio __read_mostly = 66; +#endif +#ifdef CONFIG_STAIRCASE_DESKTOP +int vm_dirty_ratio __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_LL_DESKTOP +int vm_dirty_ratio __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_CUSTOM +int vm_dirty_ratio __read_mostly = CONFIG_VM_DIRTY_RATIO_SETTING; +#endif /* * The interval between `kupdate'-style writebacks, in jiffies diff -urN oldtree/mm/vmscan.c newtree/mm/vmscan.c --- oldtree/mm/vmscan.c 2006-09-26 15:40:12.000000000 -0400 +++ newtree/mm/vmscan.c 2006-09-26 15:47:30.000000000 -0400 @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -102,8 +103,36 @@ /* * From 0 .. 100. Lower means more swappy. */ +/* Staircase Tunables */ +#ifdef CONFIG_STAIRCASE_SERVER +int vm_mapped __read_mostly = 33; +int vm_hardmaplimit __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_FILE_SERVER +int vm_mapped __read_mostly = 0; +int vm_hardmaplimit __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_COMPUTE_SERVER +int vm_mapped __read_mostly = 0; +int vm_hardmaplimit __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_GAMING +int vm_mapped __read_mostly = 33; +int vm_hardmaplimit __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_DESKTOP int vm_mapped __read_mostly = 66; int vm_hardmaplimit __read_mostly = 1; +#endif +#ifdef CONFIG_STAIRCASE_LL_DESKTOP +int vm_mapped __read_mostly = 66; +int vm_hardmaplimit __read_mostly = 0; +#endif +#ifdef CONFIG_STAIRCASE_CUSTOM +int vm_mapped __read_mostly = CONFIG_VM_MAPPED_SETTING; +int vm_hardmaplimit __read_mostly = CONFIG_VM_HARDMAPLIMIT_SETTING; +#endif + long vm_total_pages __read_mostly; /* The total number of pages which the VM controls */ static LIST_HEAD(shrinker_list); Files oldtree/scripts/kconfig/mconf and newtree/scripts/kconfig/mconf differ