From 56b0cc4b4ad126fc894addc1efb00093b073e318 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 1 Jun 2007 17:34:09 +0000 Subject: dont request zeroed memory when we allocate data regions for buffers. this moves memset from the 20th most expensive function in the kernel to the 331st when doing heavy io. ok tedu@ thib@ pedro@ beck@ art@ --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 15af121f996..572873eb5ed 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.92 2007/05/29 21:34:43 art Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.93 2007/06/01 17:34:08 dlg Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -274,7 +274,7 @@ buf_get(size_t size) bp = pool_get(&bufpool, PR_WAITOK); - data = (void *)uvm_km_zalloc(buf_map, qs); + data = (void *)uvm_km_alloc(buf_map, qs); if (data == NULL) { pool_put(&bufpool, bp); return (NULL); -- cgit v1.2.3