On Monday 06 February 2006 19:45, Christoph Lameter wrote:
> On Mon, 6 Feb 2006, Andi Kleen wrote:
>
> > > If node 0 is exhausted then you have an OOM situation.
> >
> > No - it could just need to free some cleanable pages first. That's
> > a long way before going OOM.
>
> Then node 0 still has memory available. So you suspect zone_reclaim?
Either zone reclaim or the first entry in the zonelist is ok, but it's
not correctly terminated or something like that so it causes
problems when the kernel looks for the second (just speculating here,
i don't know if that is the problem)
> > > > but with a full free local node that code path is never triggered)
> > >
> > > Wamt me to test the OOM path for mbind?
> > I already know it oopses - someone else reported that. If you feel
> > motivated feel free to fix.
>
> We also have a minor issue with huge pages. If the pools are exhausted
> then the kernel will terminate the application with Bus Error.
That is what prereservation was supposed to prevent. I remember there
were endless discussions when this all was originally implemented long
ago (in the version that never got merged).
Basically there were two approaches:
- Do strict overcommit checking at mmap with prereservation (that was
what the old Intel/SGI patch did)
- The hackish way I implemented in SLES9: just check at mmap time
if there are enough pages but don't prereserve anything. That was
more a 80% solution with races, but seemed to fix the problem well enough
that people in the field didn't really complain. The advantage was that
it was much simpler code.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]