Re: lazy_buddy-2.5.25-1

William Lee Irwin III (wli@holomorphy.com)
Wed, 10 Jul 2002 21:49:56 -0700


On Wed, Jul 10, 2002 at 01:59:17AM -0700, William Lee Irwin III wrote:
> This patch implements deferred coalescing for the Linux page-level
> allocator, or the lazy buddy algorithm. This appears to reduce the
> allocator overhead in some AF_UNIX and local TCP connection scenarios
> according to LMbench (hopefully I can follow up with numbers soon).
> This is a simple forward port of the 2.5.23-based version decoupled
> from some of the cleanups previously bundled with it.

Ugh, forward port breakage. Ran into this in a different patch but
realized it was broken here too. Sorry folks. You'll need this on
top of the prior post.

Cheers,
Bill

===== mm/page_alloc.c 1.125 vs edited =====
--- 1.125/mm/page_alloc.c Tue Jul 9 14:50:43 2002
+++ edited/mm/page_alloc.c Wed Jul 10 20:33:03 2002
@@ -312,7 +312,6 @@

if (bad_range(zone, page))
BUG();
- prep_new_page(page);
return page;
}
curr_order++;
@@ -394,7 +393,7 @@
page = buddy_alloc(zone, order);
if (unlikely(!page))
goto out;
- set_page_count(page, 1);
+ prep_new_page(page);
area->active++;
zone->free_pages -= 1UL << order;
out:
-
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/