pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
Date: Mon, 06 Oct 2025 19:53:50 +0000
Message-ID: <gh-pgvector-pgvector-906-c3373734274@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-906@github.com>
References: <gh-pgvector-pgvector-906@github.com>

Hi @SunnyBo0302, there's [a branch](https://github.com/pgvector/pgvector/compare/hnsw-read-stream) for this for HNSW. However, I saw a significant regression in performance with `io_method = worker` (the default for Postgres 18) on Linux when the data doesn't fit into shared buffers, and no difference in performance in the other scenarios that were tested:

1. x86-64 and aarch64
2. pg17 and pg18 (with different io_methods)
3. NAS and local storage
4. cold and warm page cache
5. data fits and doesn't fit in shared buffers

I'd expect async I/O to be especially beneficial for HNSW, so I'm not sure why that isn't the case here (and welcome any contributions to address it).


view thread (7+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-906-c3373734274@github.com>
Permalink:  ../gh-pgvector-pgvector-906-c3373734274@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox