hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
294 stars 24 forks source link

Async IO: io_uring #383

Open hhstore opened 2 years ago

hhstore commented 2 years ago

related:

hhstore commented 2 years ago

io_uring:

ref:

Linux I/O 系统:

基于 fd 的阻塞式 I/O:read()/write()


ssize_t read(int fd, void *buf, size_t count);
ssize_t write(int fd, const void *buf, size_t count);

非阻塞 I/O:

线程池方式:

Direct I/O(数据库软件):绕过 page cache

异步 IO: AIO

新方案: io_uring

原理:

image

hhstore commented 2 years ago

io_uring 实现:

c:

go:

rust:

zig:

hhstore commented 2 years ago

1

hhstore commented 2 years ago

1

hhstore commented 2 years ago

1

hhstore commented 2 years ago

1