PhotonLibOS
Our great sponsors
PhotonLibOS | liburing | |
---|---|---|
6 | 27 | |
792 | 2,589 | |
4.3% | - | |
9.4 | 9.6 | |
4 days ago | 3 days ago | |
C++ | C | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PhotonLibOS
-
Coroutine made DPDK dev easy
So, we try to use Photon coroutine lib to simplify the development of DPDK applications with the new concurrency model, and provide more functionalities, such as lock, timer and file I/O. First of all, we need to choose a userspace network protocol stack. After investigation, we have chosen Tencent's open source F-Stack project, which has ported the entire FreeBSD 11.0 network protocol stack on top of DPDK. It also has made some code cuts, providing a set of POSIX APIs, such as socket, epoll, kqueue, etc. Of course, its epoll is also simulated by kqueue, since it is essentially FreeBSD.
-
200 lines of code to rewrite the 600'000 lines RocksDB into a coroutine programx
Finally, the PhotonLibOS project is open sourced at https://github.com/alibaba/PhotonLibOS. If you are interested in C++ coroutines and high-performance IO, welcome to have a try.
- A performance review of io_uring vs. epoll for standard/streamed socket traffic
-
C++ Show and Tell - September 2022
Photon (https://github.com/alibaba/PhotonLibOS) is a coroutine lib, and it just released v0.3.
- C++ Show and Tell - July 2022
-
I was thinking of submitting a proposal to make std::coroutine_handle<void> convertible to void (*)() and was looking for feedback.
the fastest coroutine library by the year of 2022, https://github.com/alibaba/PhotonLibOS
liburing
-
Io Uring
I've tinkered around with io_uring on and off for the last couple years. But I think it's really becoming quite cool (not that it wasn't cool before... :)). This was a really interesting post on what's new https://github.com/axboe/liburing/wiki/io_uring-and-networki.... The combination of ring-mapped buffers and multi-shot operations has some really interesting applications for high-performance networking. Hoping over the next year or two we can start to see really bleeding edge networking perf without having to resort to using DPDK :)
-
Why you should use io_uring for network I/O
Thought I was doing something wrong at first, but after looking at examples and code, I just wasn't able to reach the epoll numbers. Looking on the Github page, there a few issues there with people who found the same thing, with their own examples. #1, #2
-
Use io_uring for network I/O
To address my own silly questions, yes, one should use the new fixed buffers described in this document: https://github.com/axboe/liburing/wiki/io_uring-and-networki...
-
The fastest rm command and one of the fastest cp commands
We're working on this! https://github.com/axboe/liburing/issues/830
- axboe / liburing
-
io_uring and networking in 2023
Link: https://github.com/axboe/liburing/wiki/io_uring-and-networking-in-2023
What are some alternatives?
libfiber - The high performance c/c++ coroutine library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI
tokio-uring - An io_uring backed runtime for Rust
concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
libevent - Event notification library
libgo - Go-style concurrency in C++11
libuv - Cross-platform asynchronous I/O
coost - A tiny boost library in C++11.
io_uring-echo-server - io_uring echo server
tolc - A bindings compiler for C++
linux-aio - How to use the Linux AIO feature
f-stack - F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
go - The Go programming language