Mfio – Completion I/O for Rust
1–10 of 14 posts
Re: Mfio – Completion I/O for Rust
#2Re: Mfio – Completion I/O for Rust
#3Re: Mfio – Completion I/O for Rust
#4Re: Mfio – Completion I/O for Rust
#5The associated video has quite a cool intro [0], however after that it’s fairly slow and lack details, apart from perf and cross platform characteristics (which are cool). [0]: https://www.youtube.com/watch?v=EBAC1KcjR28
Re: Mfio – Completion I/O for Rust
#6Re: Mfio – Completion I/O for Rust
#7I've always wondered why completion i/o systems require you to hand them a buffer rather than a buffer pool. Handing them a buffer means that you are keeping a huge amount of memory allocated when you have a huge number of connections.
Re: Mfio – Completion I/O for Rust
#8The associated video has quite a cool intro [0], however after that it’s fairly slow and lack details, apart from perf and cross platform characteristics (which are cool). [0]: https://www.youtube.com/watch?v=EBAC1KcjR28
Am I missing something or is it is significantly slower than std library.
If you do any non-sequential processing, let's say a database, then you can see standard library show its weaknesses - feeding the operating system with multiple requests becomes more efficient than waiting for each request to finish in the synchronous std case.
Re: Mfio – Completion I/O for Rust
#9I've always wondered why completion i/o systems require you to hand them a buffer rather than a buffer pool. Handing them a buffer means that you are keeping a huge amount of memory allocated when you have a huge number of connections.
The difficulty comes from APIs ability to expose that buffer pool nicely. I am on the lookout to model this better, but no clear solution that does not make assumptions about the backend at play.
For now, however, with careful design you can skip the allocated buffers and supply a stack reference. So long as you have assurances the stack wont move (Rust's pinning guarantee), you should be able to pass that reference to the io system without problems. Not saying this results in zero copies being made - the backend usually has strict alignment requirements and alike, but hey, we at least get rid of one allocation!
Re: Mfio – Completion I/O for Rust
#10The log scale charts make it seem like the performance is all the same. It would be nice to see relative performance in a table or chart.