From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #843: Question about the memory allocation when building hnsw index
Date: Fri, 23 May 2025 06:56:29 +0000
Message-ID: <gh-pgvector-pgvector-843-c2903459045@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-843@github.com>
References: <gh-pgvector-pgvector-843@github.com>
Hi @Ryanhya, the index build itself shouldn't use more than `maintenance_work_mem` (you'll also see memory usage from shared buffers, connections, etc.), so it's likely another issue with your setup. I'd check that `shared_buffers` and [other settings](https://github.com/pgvector/pgvector?tab=readme-ov-file#tuning) are correctly set.