Re:Core to Core Latency Data on Large Systems
by RedlineTriad on Wednesday November 08, 2023 @05:00AM
(#38188463)
There is also another thread-per-core implementation by ByteDance (TikTok) for Rust called Monoio with benchmarks[0] comparing it to Tokio and Glommio.
[0] https://github.com/bytedance/monoio/blob/master/docs/en/benc...
Re:Core to Core Latency Data on Large Systems
by sapiogram on Wednesday November 08, 2023 @06:36AM
(#38189048)
Does thread per core necessarily imply message passing? I don't see why the two need to be related.
Re:Core to Core Latency Data on Large Systems
by yencabulator on Wednesday November 08, 2023 @01:19PM
(#38194576)
The thread-per-core manifesto has a goal of not sharing data between cores, and thus the communication inside the process becomes message passing, handing off ownership of a chunk of data to the recipient core. This lack of sharing is what enables the performance (no locks etc needed, outside of the message passing).
This is a good watch (first half is pure background, second half talks about the motivation): https://www.youtube.com/watch?v=PbgTyCSDPrs
Real world examples are scylladb and Redpanda, both built on the seastar framework (C++ https://seastar.io/message-passing/).
And for rust there is glommio https://www.datadoghq.com/blog/engineering/introducing-glomm...