pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: commit4ever (@commit4ever) <noreply+commit4ever@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #643: OOM  errors - during insertion and HNSW l1 INDEX builds  on  version "0.7.2"
Date: Thu, 15 Aug 2024 04:42:30 +0000
Message-ID: <gh-pgvector-pgvector-643@github.com> (raw)

Hi, 

Think pgvector isnt the issue nevertheless any leads would be useful. 

Setup that works:

##Ubuntu 14.9-1.pgdg20.04+1 ## on 8 cpu, 32g RAM VM.

"checkpoint_completion_target"	"0.9"	
"effective_cache_size"	"3145728"	"8kB"
"effective_io_concurrency"	"200"	
"huge_pages"	"try"	
"maintenance_work_mem"	"2097152"	"kB"
"max_connections"	"200"	
"max_parallel_workers"	"8"	
"max_parallel_workers_per_gather"	"4"	
"max_wal_size"	"8192"	"MB"
"max_worker_processes"	"8"	
"min_wal_size"	"2048"	"MB"
"random_page_cost"	"1.1"	
"shared_buffers"	"1048576"	"8kB"
"temp_buffers"	"1024"	"8kB"
"wal_buffers"	"2048"	"8kB"
"work_mem"	"10485"	"kB"

-------------------------------------
Setup that errors WITH ===> mmap(8812232704) with MAP_HUGETLB failed, huge pages disabled: Cannot allocate memory

##Ubuntu 14.13-1.pgdg22.04+1## on 24CPU , 220gb RAM + A100 80GB VM##

"checkpoint_completion_target"	"0.9"	
"effective_cache_size"	"10813440"	"8kB"
"effective_io_concurrency"	"200"	
"huge_pages"	"try"	
"maintenance_work_mem"	"2097152"	"kB"
"max_connections"	"200"	
"max_parallel_workers"	"12"	
"max_parallel_workers_per_gather"	"4"	
"max_wal_size"	"8192"	"MB"
"max_worker_processes"	"12"	
"min_wal_size"	"2048"	"MB"
"random_page_cost"	"1.1"	
"shared_buffers"	"3604480"	"8kB"
"temp_buffers"	"1024"	"8kB"
"wal_buffers"	"2048"	"8kB"
"work_mem"	"36044"	"kB"

----------------------------

Tried all manner of tweaks to pg config + also tried reducing the chunks size from 8096 (which works on the smaller setup) to 4096.  Nothing works and the DB shuts down when the only process is vector creations / insertions. 

Has anyone faced something similar ? 

@ankane @jkatz   any guidance would highly appreciated. 

Thanks.
Aiseei



view thread (9+ messages)  latest in thread

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