Skip to contentSkip to conversation

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

DISCUSSION Chuck Ebbert 1 participant 1 message Dec 22, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · On Tue, 21 Dec 2004 at 11:56:07 -0800 Christoph Lameter wrote:
include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800 renamed from include/asm-i386/page.h 2004-12-17 14:40:16.000000000 -0800 +1 -0
@@ -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
 

include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800 line 33

Quoted 4 lines
include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800 renamed from include/asm-i386/page.h 2004-12-17 14:40:16.000000000 -0800 +1 -0
@@ -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 - - - - - - - - - - - - -^

include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800 line 36

Quoted 3 lines
include/asm-i386/page.h 2004-12-21 10:19:37.000000000 -0800 renamed from include/asm-i386/page.h 2004-12-17 14:40:16.000000000 -0800 +0 -0
 #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