Re: Number of ioctx per rados connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Yes, you can use multiple ioctxs with the same underlying rados connection. There's no hard limit on how many, it depends on your usage if/when a single rados connection becomes a bottleneck.

It's safe to use different ioctxs from multiple threads. IoCtxs have some local state like namespace, object locator key and snapshot that limit what you can do safely with multiple threads using the same IoCtx. librados.h has more details, but it's simplest to use a separate ioctx for each thread.

Josh


From: Michel Hollands <MHollands@xxxxxxxxxxx>
Sent: Apr 8, 2015 6:54 AM
To: ceph-users@xxxxxxxx
Subject: [ceph-users] Number of ioctx per rados connection

Hello,

This is a question about the C API for librados. Can you use multiple “IO contexts” (ioctx) per rados connection and if so how many ? Can these then be used by multiple threads ? 

Thanks in advance,

Michel
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux