kvm_read() vs ioctl performance
barney_cordoba at yahoo.com
Fri Mar 21 15:36:26 PDT 2008
--- Julian Elischer <julian at elischer.org> wrote:
> Barney Cordoba wrote:
> > I have an app which reads stats from the kernel
> > periodically, and there can be a lot of
> > sometimes 20,000 or more. I'm thinking of
> > from an ioctl method to kvm_read(). KVM is
> > simpler, but its not clear what overhead is
> > since kvm_read() likely has to call the kernel
> > Does anyone have a handle on the difference in
> > overhead, assuming that the ioctl call is to a
> > which does nothing more than copy the data and
> tried a shared memory page?
No, but I built a test and kvm_read is 70 times
case anyone is interested.
Never miss a thing. Make Yahoo your home page.
More information about the freebsd-current