[lkml]   [2001]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] fork() failing
   From: Marcelo Tosatti <>
Date: Thu, 18 Oct 2001 15:04:15 -0200 (BRST)

As you know, we currently allow 1-order allocations to fail easily.

However, there is one special case of 1-order allocations which cannot
fail: fork.

Here is the tested patch against pre4.

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.
Why not just put something into the GFP flag bits
which distinguishes between high order allocations which
are "critical" and others which are "don't try too hard".

BTW, such a scheme could be useful for page cache pre-fetching.
If you use a high order allocation, it is more likely that all
of the pages in that prefetch will fit into the same kernel TLB
mapping. We could use a GFP_NONCRITICAL for something like this.

Franks a lot,
David S. Miller
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:08    [W:0.043 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site