pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: vitonsky (@vitonsky) <noreply+vitonsky@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #822: HNSW index creation is stuck on dozens millions entries
Date: Tue, 15 Apr 2025 09:55:35 +0000
Message-ID: <gh-pgvector-pgvector-822-c2804496218@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-822@github.com>
References: <gh-pgvector-pgvector-822@github.com>

@ankane i tried with no `LOCAL`

```
SET maintenance_work_mem = '80GB';
SET max_parallel_maintenance_workers = 11;
```

and i faced with this problem again. Progress is stuck on `57.6`. Now is 6 hours since last update of this value. It looks a progress will not changes anymore.

Last notifications is

```
NOTICE:  hnsw graph no longer fits into maintenance_work_mem after 22880331 tuples
DETAIL:  Building will take significantly more time.
HINT:  Increase maintenance_work_mem to speed up builds.
```

I run this command on server with next config if it does matter

```
fsync = off
full_page_writes = off
```

I can't increase RAM anymore since it is out of RAM budged for current DB.

---

Why progress may stuck?

According to notice it is expected that `Building will take significantly more time` but not "Building will dead-locked"

view thread (9+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-822-c2804496218@github.com>
Permalink:  ../gh-pgvector-pgvector-822-c2804496218@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