The Linux 6.11 kernel introduces RWF_DONTCACHE support for block devices, a targeted I/O optimization that allows applications to bypass the page cache on a per-request basis. By shifting cache control from the file descriptor level to individual operations, the update removes the rigid memory alignment and buffer constraints historically tied to O_DIRECT, giving infrastructure teams a more flexible path to high-throughput storage performance.

Legacy direct I/O implementations have long forced developers to enforce strict memory alignment and fixed buffer sizes to prevent cache pollution. This requirement often necessitated significant application refactoring just to handle large, sequential data streams. RWF_DONTCACHE eliminates that friction. Engineers can now tag specific I/O requests to skip the cache entirely, routing single-pass datasets straight to storage while leaving frequently accessed metadata and smaller files in RAM. This hybrid approach preserves memory bandwidth and prevents cache thrashing across mixed workloads.

The feature is natively integrated with the io_uring asynchronous I/O framework, enabling the kernel to dynamically toggle cache behavior mid-operation. This tight coupling ensures software pathways keep pace with modern PCIe 5.0 and CXL storage architectures, preventing driver overhead from becoming a throughput bottleneck. For MLOps and HPC environments, the optimization means training datasets, model checkpoints, and enterprise backup streams can be processed without saturating system memory or triggering costly eviction cycles.

As the kernel release approaches general availability, DevOps and infrastructure teams should audit their storage stacks to identify single-pass, high-throughput workloads suited for RWF_DONTCACHE. Before deploying to production, organizations must establish a staging benchmark protocol to quantify latency improvements, verify mixed read/write compatibility, and test interactions with existing filesystem drivers. Early validation in pre-production environments will help teams measure memory footprint reductions and ensure stable integration before rolling out the upgrade across live clusters.

RWF_DONTCACHE represents a strategic shift toward workload-aware storage management, replacing the binary choice between fully buffered and fully direct I/O with a configurable middle ground. By enabling fine-grained cache control without requiring core application rewrites, the feature reduces operational complexity for teams managing AI training pipelines and enterprise data infrastructure. Real-world benchmarking and community feedback will be critical to refining the implementation ahead of the stable release.


Linux 6.11 核心為區塊裝置引入 RWF_DONTCACHE 支援。此項針對性的 I/O 優化允許應用程式逐個請求繞過 page cache。透過將快取控制由檔案描述符層級轉移至個別操作,是次更新移除了以往與 O_DIRECT 綁定的嚴格記憶體對齊與 buffer 限制,為基礎設施團隊提供更靈活的路徑,以實現高吞吐量的儲存效能。

傳統的 direct I/O 實作長期以來迫使開發人員遵守嚴格的記憶體對齊與固定 buffer 大小規範,以防止 cache pollution。此要求往往需要對應用程式進行大幅 refactoring,才能處理大型連續數據串流。RWF_DONTCACHE 消除了此一障礙。工程師現在可標記特定的 I/O 請求以完全跳過快取,將單次處理的數據集直接寫入儲存裝置,同時將頻繁存取的 metadata 與較小檔案保留於 RAM。此混合方法能保留記憶體頻寬,並防止在混合 workloads 中出現 cache thrashing。

此功能與 io_uring 非同步 I/O 框架原生整合,使核心能在操作中途動態切換快取行為。此緊密耦合確保軟件路徑能跟上現代 PCIe 5.0 與 CXL 儲存架構的步伐,避免驅動程式開銷成為吞吐量瓶頸。對於 MLOps 與 HPC 環境而言,此優化代表訓練數據集、模型檢查點及企業備份串流可在不耗盡系統記憶體或觸發高昂 eviction cycles 的情況下進行處理。

隨著核心版本接近正式發布,DevOps 與基礎設施團隊應審計其儲存堆疊,以識別適合 RWF_DONTCACHE 的單次處理、高吞吐量 workloads。在部署至 production 前,機構必須建立 staging benchmark 協議,以量化 latency 改善幅度、驗證混合讀寫相容性,並測試與現有檔案系統驅動程式的互動。在預發環境中進行早期驗證,將有助團隊評估記憶體佔用量的減少情況,並在將升級推展至 live clusters 前確保穩定整合。

RWF_DONTCACHE 代表儲存管理向 workload-aware 模式的戰略轉變,以可配置的中間方案取代全快取與全 direct I/O 的二元選擇。透過在不需重寫核心應用程式的前提下實現精細快取控制,此功能降低了管理 AI 訓練 pipeline 與企業數據基礎設施團隊的 operational complexity。實際環境 benchmarking 與社群回饋將對完善實作至關重要,以迎接穩定版本發布。

新聞來源 / Original News Source