Re: [PATCH] fork() failing

Linus Torvalds (torvalds@transmeta.com)
Thu, 18 Oct 2001 12:50:52 -0700 (PDT)


On Thu, 18 Oct 2001, David S. Miller wrote:
>
> There are also some platforms using 1-order allocations
> for page tables as well.
>
> But I don't know if I agree with this special casing.

Well, it's not really any _new_ special casing - we've always had the
special case for order-0, the patch just expands it to order-1 too.

That said, I think a separate flag saying "don't try too hard", which can
be used for all orders, including 0 and 1, and just says that "ok, we want
you to balance things, but if this allocation fails that's not a big
deal".

So the flag would just always be implicit in allocations of higher orders,
because big orders are basically impossible to guarantee..

Linus

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