Struct libblobd_direct::BlobdCfg
source · pub struct BlobdCfg {
pub backing_store: BlobdCfgBackingStore,
pub expire_incomplete_objects_after_secs: u64,
pub lpage_size_pow2: u8,
pub object_tuples_area_reserved_space: u64,
pub spage_size_pow2: u8,
pub statsd: Option<Arc<StatsdClient>>,
pub uring_coop_taskrun: bool,
pub uring_defer_taskrun: bool,
pub uring_iopoll: bool,
pub uring_sqpoll: Option<u32>,
}
Fields§
§backing_store: BlobdCfgBackingStore
§expire_incomplete_objects_after_secs: u64
This must be much greater than zero.
lpage_size_pow2: u8
§object_tuples_area_reserved_space: u64
The amount of bytes per partition to reserve for storing object tuples. This can be expanded online later on, but only up to the leftmost heap allocation, so it’s worth setting this to a high value. This will be rounded up to the nearest multiple of the lpage size.
spage_size_pow2: u8
The device must support atomic writes of this size. It’s recommended to use the physical sector size, instead of the logical sector size, for better performance. On Linux, use blockdev --getpbsz /dev/my_device
to get the physical sector size.
statsd: Option<Arc<StatsdClient>>
§uring_coop_taskrun: bool
Advanced options, only change if you know what you’re doing.
uring_defer_taskrun: bool
§uring_iopoll: bool
§uring_sqpoll: Option<u32>
Implementations§
source§impl BlobdCfg
impl BlobdCfg
pub fn lpage_size(&self) -> u64
pub fn spage_size(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BlobdCfg
impl Send for BlobdCfg
impl Sync for BlobdCfg
impl Unpin for BlobdCfg
impl UnwindSafe for BlobdCfg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more