feat: io_uring-based file I/O for search hot path
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- linux, rust
- 领域
- backend, performance, search
调研方向
首先跟踪 Quickwit 的搜索热路径,以及 Tokio 的 blocking-thread-pool 为读取 posting lists 和 doc store segments 而执行的文件读取。比较 issue 中描述的 compio 和 tokio-uring 方法,然后确定较旧的 Linux 内核和非 Linux 平台如何回退到标准 I/O。完成的要求是确定一致同意的实现路径,并获得高并发下的吞吐量和延迟测量结果。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
Quickwit's file I/O goes through Tokio's blocking thread pool because epoll does not support file descriptors. Under high query concurrency, each posting list fetch is a blocking read() dispatched to a thread, adding scheduling overhead and capping throughput. At sustained high QPS this becomes the dominant bottleneck.
Describe the solution you'd like
Use io_uring for file I/O in the search hot path. io_uring eliminates the syscall round-trip via a shared ring buffer between userspace and the kernel. For random-read workloads on NVMe (posting lists, doc store segments) benchmarks consistently show 40-60% latency reduction and 2x+ throughput at high concurrency.
Two implementation paths:
- compio -- async runtime built on
io_uring, composable with existing futures. Requires replacing Tokio file I/O in the search path. - tokio-uring -- narrower scope, drop-in for Tokio's file ops.
Minimum kernel requirement: Linux 5.19. Can fall back to standard I/O on older kernels or non-Linux platforms.
Describe alternatives you've considered
Increasing the Tokio blocking thread pool size reduces contention but does not eliminate the syscall overhead or the context-switch cost per I/O operation.
Additional context
Apache Iggy (https://github.com/apache/iggy) runs its entire I/O stack on io_uring via compio (thread-per-core, shared-nothing). Their production experience serves as a reference implementation for this approach in a Rust async codebase.
- 主要语言
- Rust
- 星标
- 11.8k
- 派生
- 628
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 50
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quickwit-oss/quickwit 的其他 Issue
-
area:otel documentation
难度 2/5 1-3 小时 新手友好度 68/100
quickwit-oss/quickwit#6686 ·
维护者通常 1 天内回复
-
Add some examples of requests in the REST API reference docs可能已有人在做 @Cunninger 于 88 天前认领。 未关闭enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
quickwit-oss/quickwit#4266 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 65/100
quickwit-oss/quickwit#3872 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 65/100
quickwit-oss/quickwit#3666 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
quickwit-oss/quickwit#2769 ·
维护者通常 1 天内回复
查看 quickwit-oss/quickwit 的全部 Issue
相似的 Issue
-
p2 ready-mac
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
quickwit-oss/tantivy#3299 ·
维护者通常 1 天内回复
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-on未关闭
难度 2/5 1-3 小时 新手友好度 70/100
vercel-labs/agent-browser#2797 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
witchesofthehill/manabrew#1309 ·
维护者通常 1 天内回复
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 82/100
userFRM/egui-charts#4494 ·
维护者通常 1 天内回复