The patch titled throttle writers of shared mappings has been added to the -mm tree. Its filename is throttle-writers-of-shared-mappings.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Now that we can detect writers of shared mappings, throttle them. Avoids OOM by surprise. Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Cc: Hugh Dickins <hugh@xxxxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/memory.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -puN mm/memory.c~throttle-writers-of-shared-mappings mm/memory.c --- devel/mm/memory.c~throttle-writers-of-shared-mappings 2006-05-11 02:21:57.000000000 -0700 +++ devel-akpm/mm/memory.c 2006-05-11 02:21:57.000000000 -0700 @@ -49,6 +49,7 @@ #include <linux/module.h> #include <linux/init.h> #include <linux/backing-dev.h> +#include <linux/writeback.h> #include <asm/pgalloc.h> #include <asm/uaccess.h> @@ -2163,8 +2164,11 @@ retry: unlock: pte_unmap_unlock(page_table, ptl); if (dirty_page) { + struct address_space *mapping = page_mapping(dirty_page); set_page_dirty(dirty_page); put_page(dirty_page); + if (mapping) + balance_dirty_pages_ratelimited_nr(mapping, 1); } return ret; oom: @@ -2284,8 +2288,11 @@ static inline int handle_pte_fault(struc unlock: pte_unmap_unlock(pte, ptl); if (dirty_page) { + struct address_space *mapping = page_mapping(dirty_page); set_page_dirty(dirty_page); put_page(dirty_page); + if (mapping) + balance_dirty_pages_ratelimited_nr(mapping, 1); } return VM_FAULT_MINOR; } _ Patches currently in -mm which might be from a.p.zijlstra@xxxxxxxxx are buglet-in-radix_tree_tag_set.patch tracking-dirty-pages-in-shared-mappings-v4.patch tracking-dirty-pages-in-shared-mappings-v4-fix.patch throttle-writers-of-shared-mappings.patch throttle-writers-of-shared-mappings-tidy.patch optimize-follow_pages.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