From: wahajali (@wahajali) <noreply+wahajali@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #700: HNSW QPS Degradation as Index Size Grows Beyond Memory
Date: Mon, 28 Oct 2024 16:16:23 +0000
Message-ID: <gh-pgvector-pgvector-700-c2442035260@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-700@github.com>
References: <gh-pgvector-pgvector-700@github.com>
@VoVAllen This is on a managed RDS instance (db.m6i.2xlarge) with 3000 provisioned IOPS and 125 mbps throughput.
@jkatz thanks for the explanation and pointers. Between 2M and 2.5M, there is a ~50% drop in QPS, that's where the index starts to spill over shared_buffers. However, the decrease in buffer hit ratio *for index* is very minor (~0.01).
If I understand your comment correctly, does it imply that while there might not be a lot of swapping in the index, which is what the query I shared is reporting, there might be swapping in the table data? In which case, I should also measure the buffer hit ratio on the tables (via `pg_statio_user_tables`).
I will also compare the disk io usage between these two scenarios.