Skip to content

The rdma_recv_block_type block does not actually take effect. #3301

@randomkang

Description

@randomkang

Describe the bug

When we use rdma_recv_block_type such as "huge-2MB", because the IOBuf::DEFAULT_BLOCK_SIZE is 8KB, the func "cut_into_sglist_and_iobuf" always cut 8KB for every ibv_sge.

If the max sge is 32, we only can send a maximum of 256KB(KB64) of data at a time, instead of 2MB.

To Reproduce

Expected behavior

Versions
OS:
Compiler:
brpc:
protobuf:

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions