# \[$\] The kernel from a PostgreSQL point of view

DevFeed: [\[$\] The kernel from a PostgreSQL point of view](<https://devfeed.tech/articles/the-kernel-from-a-postgresql-point-of-view-62119.md>)

Original publisher: [Read original article](<https://lwn.net/Articles/1096827/>)

Author: corbet

Published: 2026-09-29T15:42:30Z

Content type: news

Language: en

Sources: [LWN.net](<https://devfeed.tech/sources/lwn-net.md>)

Topics: [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [io\_uring](<https://devfeed.tech/topics/io-uring.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [atomic](<https://devfeed.tech/tags/atomic.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [cache](<https://devfeed.tech/tags/cache.md>), [copy-on-write](<https://devfeed.tech/tags/copy-on-write.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [database](<https://devfeed.tech/tags/database.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [performance](<https://devfeed.tech/tags/performance.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>)

## AI overview

PostgreSQL's evolving I/O and threading plans both depend on Linux kernel behavior, and closer collaboration could help address problems that affect more than the database. PostgreSQL is moving toward threads and asynchronous I/O; Freund has experimented with io_uring but found worker threads can perform well, while direct I/O is expected to remain optional because tuning it alongside other applications is difficult. The article highlights kernel gains in writeback and reclaim, alongside issues including scalability cliffs tied partly to CPU idle states, slow or unsuitable futex options, limited control-group out-of-memory handling, fragmentation from fallocate-based checkpoint reservations, and io_uring memory and buffer constraints. PostgreSQL testing could expose kernel regressions and improve real-world benchmarks, but developers face barriers such as unfamiliarity with kernel practices and limited organizational connections.

## Source excerpt

Andres Freund has a few claims to fame, but chief among them is his many years of work to improve the performance of the PostgreSQL relational database management system. That work requires working with -- or around -- many Linux kernel features and behaviors. He put in an appearance at the 2026 edition of Kernel Recipes to talk about his experience working with the kernel project, how the kernel could better support applications like PostgreSQL, and some interesting developments in the PostgreSQL world.