On 08/29/2012 03:57 AM, Rutger ter Borg wrote:
Dear list,
are Rados' IoCtx objects able to process multiple asynchronous
operations at the same time, or is it necessary to wait for an operation
to complete, before issuing a following operation?
I.e., can I do the following and expect it to work?
IoCtx ctx;
ctx.aio_read( ... read 1 ... );
ctx.aio_read( ... read 2 ... );
ctx.aio_read( ... read 3 ... );
... time passes ...
read 3 completes (e.g.)
read 1 completes
read 2 completes
TIA,
Cheers,
Rutger
Yes, all the asynchronous functions can run in parallel. An IoCtx
has little bearing on performance - it mostly just saves you from
specifying the full set of parameters (i.e. pool, snapshot id, snapshot
context, etc.) for each operation.
Are you seeing behavior that looks like the aio operations aren't being
run in parallel?
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html