Skip to content

feat: io_uring-based batch reads for LocalFileSystem#684

Closed
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:io-uring-get-ranges
Closed

feat: io_uring-based batch reads for LocalFileSystem#684
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:io-uring-get-ranges

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

Summary

  • Adds an io_uring feature flag (linux-only, optional) that uses io_uring to batch all range reads in get_ranges into a single syscall
  • Instead of N separate pread calls, submits N IORING_OP_READ SQEs and calls submit_and_wait once — the kernel can then optimize I/O scheduling and reorder for disk locality
  • Falls back to the existing sequential read_range loop when the feature is not enabled

Test plan

  • cargo check passes without the feature (macOS/non-linux)
  • cargo check --features io_uring on Linux
  • cargo test --features io_uring on Linux — existing get_range/get_ranges tests exercise the new path
  • Benchmark with multiple small ranges on a large file to measure syscall reduction

🤖 Generated with Claude Code

Use io_uring to submit all range reads as a single batch syscall instead
of N separate pread calls, allowing the kernel to optimize I/O scheduling.
Gated behind the `io_uring` feature flag (linux-only).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dandandan added a commit to Dandandan/arrow-datafusion that referenced this pull request Apr 6, 2026
Use Dandandan/arrow-rs-object-store#io-uring-get-ranges via
[patch.crates-io] to test io_uring-based batch reads for
LocalFileSystem (apache/arrow-rs-object-store#684).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dandandan added a commit to Dandandan/arrow-datafusion that referenced this pull request Apr 6, 2026
Use Dandandan/arrow-rs-object-store#io-uring-get-ranges via
[patch.crates-io] to test io_uring-based batch reads for
LocalFileSystem (apache/arrow-rs-object-store#684).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Dandandan Dandandan closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant