---
title: "Direct I/O"
description: "1 posts about Direct I/O, summarised, each linking to the original."
---

# Direct I/O
> 1 posts about Direct I/O, summarised, each linking to the original.

## Articles

### [What is direct I/O, and why does ClickHouse Managed Postgres use it for backups?](https://yomu.fyi/post/what-is-direct-i-o-and-why-does-clickhouse-managed-postgres-use-it-for.md)
- Company: [Clickhouse](https://yomu.fyi/company/clickhouse.md)
- Published: Oct 2, 2026
- Type: Explainer

A base backup reads every byte of a live database off the same NVMe drives that serve queries. Buffered reads go through the kernel page cache, evicting warm database pages and adding a kernel copy per byte. Direct I/O skips the cache, leaving Postgres’s warm data in place, but also disables kernel readahead. On a RAID0 array, small direct reads hit only one drive, so ClickHouse Managed Postgres sizes each direct read to span the whole stripe and scales the reader count to the hardware. On a 48 vCPU box with four NVMe drives and a 467 GB database, the direct I/O backup evicted nothing, cut query latency impact by about two thirds, used about 14% less CPU, and finished in 71 seconds.
