利用I/O停滞实现ANNS中的高效调度
Leveraging I/O Stalls for Efficient Scheduling in ANNS
AI总结:
本文提出LIOS框架,通过利用I/O停滞时间来提高ANNS系统的更新效率,减少搜索延迟,实验显示在插入和删除操作中分别达到2.68倍和2.18倍的加速效果。
摘要:
基于磁盘的近似最近邻搜索(ANNS)索引必须同时满足对延迟敏感的查询和高吞吐量的更新需求。我们发现超过40%的搜索线程CPU时间用于等待磁盘I/O;这些空闲周期对线程级调度不可见,但可用于其他工作。我们提出了LIOS(Leverage I/O Stall),一个在搜索侧I/O停滞窗口内执行索引更新的框架。LIOS引入了三种技术:(i)将每个更新拆分为可恢复的子任务,使其足以适应单个停滞窗口;(ii)将更新子任务的预期超时限制在给定阈值内;(iii)动态调整分配给更新的空闲时间比例,以将端到端搜索延迟劣化控制在用户指定的目标附近。我们将LIOS集成到两个更新优化的ANNS系统中,FreshDiskANN和OdinANN。LIOS在插入和删除操作中分别实现了高达2.68倍和2.18倍的加速,同时保持搜索延迟劣化接近用户指定的目标。
英文摘要:
Disk-based graph indexes for approximate nearest neighbor search (ANNS) must serve latency-sensitive queries and throughput-demanding updates concurrently. We observe that over 40% of search-thread CPU time is spent stalling on disk I/O; such idle cycles are invisible to thread-level scheduling yet available for other work. We present LIOS(Leverage I/O Stall), a framework that executes index updates inside search-side I/O stall windows. LIOS introduces three techniques: (i) splitting each update into resumable subtasks small enough to fit within a single stall window; (ii) bounding the expected overrun of update subtasks to a given threshold; and (iii) dynamically adjusting the fraction of idle time devoted to updates to drive end-to-end search latency degradation toward a user-specified target. We integrate LIOS into two update-optimized ANNS systems, FreshDiskANN and OdinANN. LIOS achieves speedups of up to 2.68$\times$ in insertion and 2.18$\times$ in deletion, with search latency degradation maintained near the user-specified target.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。