~/talk

I/O in Rust: the whole story

Talkat EuroRust 2024 · 2024-10-10..10-11· [rust]
slides:none on file

Rust file reads often end up as blocking syscalls for files (std::fs read or Tokio spawning blocking threads), while networking uses multiplexing (poll/select via mio/Tokio). Linux offers true async with io_uring submission and completion queues, but it is low‑level and unsafe to use directly. DMA has been the disk mode for ~40 years. Tokio defaults to blocking for files, tokio-uring exists for real async and works but adds significant complexity and unsafe plumbing.

AI-written summary · about

  1. 0:00I/O in Rust intro
  2. 1:04Hardware I/O devices
  3. 3:57Interrupts and DMA
  4. 7:07OS I/O interfaces
  5. 12:04Blocking vs non-blocking I/O
  6. 18:17Synchronous I/O in Rust
  7. 20:03Async I/O with Tokio
  8. 23:14Async networking with Tokio
  9. 25:04Async I/O challenges in Linux
  10. 26:10io_uring modern async I/O
  11. 28:37Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.