From owner-freebsd-current@FreeBSD.ORG Fri Mar 21 18:42:30 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 97087106566C for ; Fri, 21 Mar 2008 18:42:30 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outJ.internet-mail-service.net (outJ.internet-mail-service.net [216.240.47.233]) by mx1.freebsd.org (Postfix) with ESMTP id 7A9A28FC13 for ; Fri, 21 Mar 2008 18:42:30 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 21 Mar 2008 11:42:38 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 4B76D2D6018; Fri, 21 Mar 2008 11:42:29 -0700 (PDT) Message-ID: <47E40196.6060703@elischer.org> Date: Fri, 21 Mar 2008 11:42:30 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Barney Cordoba References: <454731.813.qm@web63913.mail.re1.yahoo.com> In-Reply-To: <454731.813.qm@web63913.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Fri, 21 Mar 2008 18:42:30 -0000 Barney Cordoba wrote: > I have an app which reads stats from the kernel > periodically, and there can be a lot of iterations, > sometimes 20,000 or more. I'm thinking of converting > from an ioctl method to kvm_read(). KVM is certainly > simpler, but its not clear what overhead is involved, > since kvm_read() likely has to call the kernel also. > > Does anyone have a handle on the difference in > overhead, assuming that the ioctl call is to a module > which does nothing more than copy the data and return? tried a shared memory page? > > Thanks, > > barney > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"