Skip to content

Comments

Io ring implementation#1

Open
chengguizi wants to merge 2 commits intomainfrom
io_ring_implementation
Open

Io ring implementation#1
chengguizi wants to merge 2 commits intomainfrom
io_ring_implementation

Conversation

@chengguizi
Copy link

No description provided.

@chengguizi
Copy link
Author

image

@chengguizi
Copy link
Author

no compression, have to do mcap recover (due to padding, only at last)

// FileWriter ///////////////////////////////////////////////////////////////////
#ifdef ALIGNED_WRITE
constexpr size_t BUFFER_SIZE = 140 * 1024 * 1024;
constexpr size_t IORING_BUFF_SIZE = 100 * 1024 * 1024;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

submit constant size, currently 100MB

std::cerr << "io_uring_get_sqe failed\n";
return false;
}
io_uring_prep_write(sqe, 0, buf,IORING_BUFF_SIZE, offset);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io_uring_prep_write

io_uring_prep_write_fixed - by right should be zero copy. but we have speed issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants