Re: Increase page fault rate by prezeroing V1 [1/3]: Introduce __GFP_ZERO

From: Chuck Ebbert
Date: Tue Dec 21 2004 - 20:44:12 EST


On Tue, 21 Dec 2004 at 11:56:07 -0800 Christoph Lameter wrote:

> --- linux-2.6.9.orig/include/asm-i386/page.h 2004-12-17 14:40:16.000000000 -0800
> +++ linux-2.6.9/include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800
> @@ -20,6 +20,7 @@
>
> #define clear_page(page) mmx_clear_page((void *)(page))
> #define copy_page(to,from) mmx_copy_page(to,from)
> +#define zero_page(page, order) mmx_zero_page(page, order)
>
> #else
>
> @@ -29,6 +30,7 @@
> */
>
> #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
> +#define zero_page(page, ordeR) memset((void *)(page), 0, PAGE_SIZE << order)

Oops - - - - - - - - - - - - -^

> #define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
>
> #endif

--
Please take it as a sign of my infinite respect for you,
that I insist on you doing all the work.
-- Rusty Russell
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/