Re: VM, cdrom problems with 2.2.17pre13

From: Marcelo Tosatti (marcelo@conectiva.com.br)
Date: Fri Jul 21 2000 - 14:34:58 EST


On Fri, 21 Jul 2000, Adriano Nagelschmidt Rodrigues wrote:

> Hi,
>
> I'm getting
>
> VM: do_try_to_free_pages failed for ... (smbd, XFree, etc, etc)
>
> I compiled the kernel with gcc version 2.95.2, it's running on a
> Celeron (Mendocino) with 64MB RAM, 128 MB swap.
>
> This mainly happens in OOM situations (eg, a bug in a script exhausted
> the swap and crashed the machine), but today it crashed during normal
> desktop usage (just running Netscape, a huge memory hog, btw).

Maybe the machine has not really crashed, but the nasty shrink_mmap loop
is hitting you.

Could you please try the attached patch and report results?

Thanks!

--- mm/filemap.c.orig Fri Jul 21 07:18:21 2000
+++ mm/filemap.c Fri Jul 21 07:31:31 2000
@@ -179,8 +179,6 @@
                if ((gfp_mask & __GFP_DMA) && !PageDMA(page))
                        continue;
 
- count--;
-
                /*
                 * Is it a page swap page? If so, we want to
                 * drop it if it is no longer used, even if it
@@ -226,7 +224,7 @@
                        return 1;
                }
 
- } while (count > 0);
+ } while (--count > 0);
        return 0;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:17 EST