All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about using zero-copy for disk I/O in Xen.
@ 2007-02-26 23:17 Liang Yang
  2007-02-27 12:05 ` Mark Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Liang Yang @ 2007-02-26 23:17 UTC (permalink / raw)
  To: xen-devel, xen-users

Hello,

I have an impression the zero-copy technology is frequently tied up with 
network I/O. Recently I found people in Xen community start talking 
zero-copy for disk I/O as well (e.g. scsi front-end/back-end driver and 
blktap in Xen). So is there any difference for zero-copy between disk I/O 
and network I/O? O_DIRECT can be used to eliminate the kernel buffer copy, 
isn't it counted as part of zero-copy for disk I/O?

Thanks,

Liang

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

* Re: Question about using zero-copy for disk I/O in Xen.
  2007-02-26 23:17 Question about using zero-copy for disk I/O in Xen Liang Yang
@ 2007-02-27 12:05 ` Mark Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Williamson @ 2007-02-27 12:05 UTC (permalink / raw)
  To: xen-devel; +Cc: Liang Yang

> I have an impression the zero-copy technology is frequently tied up with
> network I/O. Recently I found people in Xen community start talking
> zero-copy for disk I/O as well (e.g. scsi front-end/back-end driver and
> blktap in Xen). So is there any difference for zero-copy between disk I/O
> and network I/O? O_DIRECT can be used to eliminate the kernel buffer copy,
> isn't it counted as part of zero-copy for disk I/O?


I don't have the context for the discussions you saw (were they on the mailing 
list?  I may have missed them...) but I suspect they were referring to the 
fact that there is no copy in the disk -> dom0 -> guest path.  This is 
because dom0 does disk DMA direct to domU pages.  The guest may still perform 
a copy in order to move data between its buffer cache and userspace.

When people talk about network IO being zero copy in a more general case (i.e. 
not just Xen-specific) it tends to refer to the need to copy data on its way 
to the userspace consumers.

Cheers,
Mark

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

end of thread, other threads:[~2007-02-27 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 23:17 Question about using zero-copy for disk I/O in Xen Liang Yang
2007-02-27 12:05 ` Mark Williamson

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.