All of lore.kernel.org
 help / color / mirror / Atom feed
* idea: user to user pipe copy
@ 2004-04-22 22:56 Mark Borgerding
  2004-04-23 11:46 ` Mark Borgerding
  2004-04-23 14:29 ` Jamie Lokier
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Borgerding @ 2004-04-22 22:56 UTC (permalink / raw)
  To: linux-fsdevel

Would someone tell me why this
a) won't work?
b) shouldn't be done?
c) is the dumbest idea since Microsoft Bob?


Currently, piped data gets copied from user space to a kernel buffer 
then back out to user space. 

This happens regardless of whether there is already a reader who is 
blocked on that fd.

Instead ...

Why not keep track of blocked read()s on a pipe fd?

When the writer writes something to the pipe, data could be copied 
directly from one user process to another, rather than
calling copy_from_user then copy_to_user. 

This alleged speed increase would benefit all blocking pipes & fifos, 
roughly half the time (i.e. whenever the read happens before the write).

-- Mark Borgerding


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-23 20:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 22:56 idea: user to user pipe copy Mark Borgerding
2004-04-23 11:46 ` Mark Borgerding
2004-04-23 14:29 ` Jamie Lokier
2004-04-23 16:27   ` Bryan Henderson
2004-04-23 19:26     ` Mark Borgerding
2004-04-23 20:40       ` Bryan Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.