--- linux-2.4.23/mm/page_alloc.c.orig 2003-12-21 17:54:37.000000000 -0200 +++ linux-2.4.23/mm/page_alloc.c 2003-12-21 17:53:59.000000000 -0200 @@ -436,8 +436,10 @@ out: printk(KERN_NOTICE "__alloc_pages: %u-order allocation failed (gfp=0x%x/%i)\n", order, gfp_mask, !!(current->flags & PF_MEMALLOC)); - if (unlikely(vm_gfp_debug)) + if (unlikely(vm_gfp_debug)) { + printk(KERN_ERR "OOM: nr_swap_pages=%d", nr_swap_pages); dump_stack(); + } return NULL; }