> > I need to allocate as much memory as possible (but not more).
> > Okay, so I use out_of_memory, right?
> Nope, out_of_memory() is about virtual memory handling,
> not at all about physical memory.
Yes, so... What happens at physical memory exhaustion? System crash?
> > But, when I looked into out_of_memory... Of course its
> > wrong. out_of_memory() contains
> > if (nr_swap_pages > 0)
> > return 0;
> > ...which is obviously wrong. It is well possible to have free
> > swap _and_ be out of memory -- eat_memory() loop gets system to
> > this state easily.
> This is because you're using out_of_memory() for something
> it was never meant for. ;)
Okay, okay. Is there any solution (in 2.4.10) in doing what I want to
-- Causalities in World Trade Center: 6453 dead inside the building, cryptography in U.S.A. and free speech in Czech Republic. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:43 EST