From: Rutger ter Borg <rutger@terborg.net>
To: ceph-devel@vger.kernel.org
Subject: Re: Rados and user-provided buffers
Date: Wed, 18 Sep 2013 22:31:15 +0200 [thread overview]
Message-ID: <l1d2ib$hnd$1@ger.gmane.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1309181259060.30792@cobra.newdream.net>
On 2013-09-18 22:01, Sage Weil wrote:
>
> The read-into-existing-buffer is only wired up properly for the C
> interface. For the C++ it isn't generally necessary: we allocate and read
> the data off the network,a nd pass the reference directly back to the user
> without making another copy. The 2010 thread is about similarly avoiding
> such a copy for the C API. We didn't contemplate the situation where you
> specifically want the bytes to go to a particular address via C++. If
> that's what you need, the C++ API needs to be extended, or you can just
> use the C call for that case.
>
> sage
>
Hey Sage,
my particular use case is a pager that uses Rados as a backend. Striping
of pages works identical to the striping mechanism of Ceph. Reads and
writes of multiple pages may be combined into one aio_ call with one
bufferlist. Pages are allocated by the pager.
AFAICT, the C call provides reading into a contiguous buffer, whereas I
would like to read into a bufferlist. What would need to be done to add
support for this in rados?
Thanks,
Rutger
next prev parent reply other threads:[~2013-09-18 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 19:57 Rados and user-provided buffers Rutger ter Borg
2013-09-18 20:01 ` Sage Weil
2013-09-18 20:31 ` Rutger ter Borg [this message]
2013-09-18 20:52 ` Sage Weil
2013-09-19 9:28 ` Rutger ter Borg
2013-09-19 12:39 ` Rutger ter Borg
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='l1d2ib$hnd$1@ger.gmane.org' \
--to=rutger@terborg.net \
--cc=ceph-devel@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 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.