From: Tejun Heo <htejun@gmail.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Jan Wagner <jwagner@kurp.hut.fi>, linux-kernel@vger.kernel.org
Subject: Re: support for sata7 Streaming Feature Set?
Date: Fri, 19 May 2006 08:12:55 +0900 [thread overview]
Message-ID: <446CFF77.9050008@gmail.com> (raw)
In-Reply-To: <446C9492.2040704@garzik.org>
Jeff Garzik wrote:
> Tejun Heo wrote:
>> One thing to think about before supporting streaming from/to harddisks
>> from userland is how to make data flow efficiently from userland to
>> kernel and back. But, no matter what, kernel <-> userland usually
>> involves one data copy, so I don't think making sg similarly efficient
>> would be too difficult (it might be already).
>
> Actually, the kernel usually maps userland pages, eliminating the need
> for a copy. write(2) may have copied data into that page originally,
> but mmap(2) need not have.
Yeap, to achieve high streaming rate, it would be best to have
preallocated ring buffer and ring pointers. If this high-bw streaming
thing becomes common, we can add it to sg, I guess.
--
tejun
prev parent reply other threads:[~2006-05-18 23:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 12:54 support for sata7 Streaming Feature Set? Jan Wagner
2006-05-14 7:06 ` Tejun Heo
2006-05-17 8:30 ` Jan Wagner
2006-05-17 13:40 ` Lennart Sorensen
2006-05-18 9:33 ` Jan Wagner
2006-05-18 2:16 ` Tejun Heo
2006-05-18 13:18 ` Mark Lord
2006-05-18 15:38 ` Jeff Garzik
2006-05-18 23:18 ` Tejun Heo
2006-05-19 15:16 ` Mark Lord
2006-05-18 15:36 ` Jeff Garzik
2006-05-18 23:12 ` Tejun Heo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=446CFF77.9050008@gmail.com \
--to=htejun@gmail.com \
--cc=jeff@garzik.org \
--cc=jwagner@kurp.hut.fi \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox