From: greenhal (@greenhal) <noreply+greenhal@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #766: High LWLock Contention During Concurrent HNSW Index Scans
Date: Fri, 21 Feb 2025 16:12:20 +0000
Message-ID: <gh-pgvector-pgvector-766-c2674964741@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-766@github.com>
References: <gh-pgvector-pgvector-766@github.com>
I've made a few attempts to reproduce this. I can replicate the high LWLock:LockManager waits, but only with CPU Saturation. LWLock waits are worse when you have high efc, low efs and a small dimension (I tested with the bigann dataset, 10m records, dimensions 128). I curious why are you using such a large efc when you are only using efs of >= 10. A smaller efc would provide a faster index build and should provide close to the same recall.
FYI, my most reset test was on a r5.8xlarge, pg 17.3.