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
Name | Type | Description | Defaults |
---|---|---|---|
buffers_count | int | Max buffers that available in buffers pool | 4096 |
buffer_size | int | Max buffer size that available in buffers pool | 4096 |
ring_size | int | Size of io_uring | 16384 |
ring_flags | int | Flags of io_uring | 0 |
cqe_peek_count | int | How many cqes should be taken on each loop iteration | 1024 |
cqe_wait_count | int | How many cqes should be waited on each loop iteration | 1 |
cqe_wait_timeout | Duration | How long cqes should be waited on each loop iteration | milliseconds: 1 |
slab_size | int | Used for payload and data pools see | 64 * 1024 |
preallocation_size | int | Used for payload and data pools see | 64 * 1024 |
quota_size | int | Used for payload and data pools see | 16 * 1024 * 1024 |