From owner-freebsd-current@FreeBSD.ORG Sat Mar 22 07:31:51 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2C23106566C for ; Sat, 22 Mar 2008 07:31:51 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id B2BFD8FC13 for ; Sat, 22 Mar 2008 07:31:51 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.64.3]) by phk.freebsd.dk (Postfix) with ESMTP id E77D817104; Sat, 22 Mar 2008 07:31:49 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m2M7VmcE009429; Sat, 22 Mar 2008 07:31:48 GMT (envelope-from phk@critter.freebsd.dk) To: Julian Elischer From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 21 Mar 2008 18:53:06 MST." <47E46682.4020403@elischer.org> Date: Sat, 22 Mar 2008 07:31:47 +0000 Message-ID: <9428.1206171107@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Barney Cordoba , current@freebsd.org Subject: Re: kvm_read() vs ioctl performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Mar 2008 07:31:51 -0000 In message <47E46682.4020403@elischer.org>, Julian Elischer writes: >>> tried a shared memory page? >> >> No, but I built a test and kvm_read is 70 times >> faster, in >> case anyone is interested. The shared memory approach is much better than that, you should go that way. Look at the adlink driver for an example. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.