Skip to main content

API

interactor_native_configuration

Declaration
typedef struct interactor_native_configuration
{
uint16_t buffers_count;
uint32_t buffer_size;
size_t ring_size;
int ring_flags;
uint32_t cqe_wait_count;
uint32_t cqe_peek_count;
uint64_t cqe_wait_timeout_millis;
size_t quota_size;
size_t preallocation_size;
size_t slab_size;
} interactor_native_configuration_t;

Parameters

NameTypeDescriptionDefaults
buffers_countintMax buffers that available in buffers pool4096
buffer_sizeintMax buffer size that available in buffers pool4096
ring_sizeintSize of io_uring16384
ring_flagsintFlags of io_uring0
cqe_peek_countintHow many cqes should be taken on each loop iteration1024
cqe_wait_countintHow many cqes should be waited on each loop iteration1
cqe_wait_timeoutDurationHow long cqes should be waited on each loop iterationmilliseconds: 1
slab_sizeintUsed for payload and data pools see64 * 1024
preallocation_sizeintUsed for payload and data pools see64 * 1024
quota_sizeintUsed for payload and data pools see16 * 1024 * 1024