Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 11:46:10 -0800
From:      Bharma Ji <bharmaji@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   How to pin a userland page in memory(avoid copyin and copyout)
Message-ID:  <67beabb0601301146h6c5034fao998bf573f1e89613@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi
I am trying to explore the option avoiding copyin and copyout when mode
switches from user to kernel and vice versa. One way to achieve this, as I
understand, is to make the memory address (which contain the data to be
copied) non pageable. Then just pass the addresses to the kernel and the
data will be used directly from the userland page. Is there already some
example code / standard way to do this?

Also is there any way one can determine the amount of time / performance hi=
t
(CPU %)that happening on a given process due to the copyin and copyout. I
want to understand how much performance gain one can gain if I am able to
remove copyin/copyout.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67beabb0601301146h6c5034fao998bf573f1e89613>