The patch titled grab swap token reordered has been added to the -mm tree. Its filename is grab-swap-token-reordered.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: grab swap token reordered From: Ashwin Chaugule <ashwin.chaugule@xxxxxxxxxxxx> Make sure the contention for the token happens _before_ any read-in and kicks the swap-token algo only when the VM is under pressure. Signed-off-by: Ashwin Chaugule <ashwin.chaugule@xxxxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/filemap.c | 1 - mm/memory.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff -puN mm/filemap.c~grab-swap-token-reordered mm/filemap.c --- a/mm/filemap.c~grab-swap-token-reordered +++ a/mm/filemap.c @@ -1457,7 +1457,6 @@ no_cached_page: * effect. */ error = page_cache_read(file, pgoff); - grab_swap_token(); /* * The page we want has now been added to the page cache. diff -puN mm/memory.c~grab-swap-token-reordered mm/memory.c --- a/mm/memory.c~grab-swap-token-reordered +++ a/mm/memory.c @@ -1990,6 +1990,7 @@ static int do_swap_page(struct mm_struct delayacct_set_flag(DELAYACCT_PF_SWAPIN); page = lookup_swap_cache(entry); if (!page) { + grab_swap_token(); /* Contend for token _before_ read-in */ swapin_readahead(entry, address, vma); page = read_swap_cache_async(entry, vma, address); if (!page) { @@ -2007,7 +2008,6 @@ static int do_swap_page(struct mm_struct /* Had to read the page from swap area: Major fault */ ret = VM_FAULT_MAJOR; count_vm_event(PGMAJFAULT); - grab_swap_token(); } delayacct_clear_flag(DELAYACCT_PF_SWAPIN); _ Patches currently in -mm which might be from ashwin.chaugule@xxxxxxxxxxxx are grab-swap-token-reordered.patch new-scheme-to-preempt-swap-token.patch swap-token-try-to-grab-swap-token-before-the-vm-selects-pages-for-eviction.patch swap-token-new-scheme-to-preempt-token.patch swap-token-new-scheme-to-preempt-token-tidy.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html