Thread (5 messages) 5 messages, 4 authors, 2011-07-12

data transfer from kernel to user space

From: Greg KH <hidden>
Date: 2011-07-12 15:59:03

On Tue, Jul 12, 2011 at 12:26:35PM +0530, Amit Nagal wrote:
After all even for stream-oriented device (as in my case ) , we need
to copy data from kernel buffer to user-space buffer ,
and if copy can be avoided via any mechanism , it will be much faster  .
Have you really measured your data rates and determined that the copy is
slowing you down a lot?  If so, how much?

And how would you get data that you are copying from a streaming device
(what type is it), into userspace without doing a copy?  DMA is the only
way that it can be done, would that work for you?

What driver are you using?  What type of device?  And again, have you
measured things to really determine that this is the slow point?
Usually it's the data speed coming in to the device itself that is the
slowest part, and you can't do anything about that in the kernel.

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help