-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgvector: Set Docker RAM to 8GB and maintenance_work_mem to 4GB
During testing it has been observed that pgvector runs out of maintenance_work_mem during index build. This is due to maintenance_work_mem - the setting which controls how much RAM can be used for index build - being still at the default value of 64MB. For hnsw indxes this needs to be at least as large as the index - for example even mnist's HNSW index is ~240MB. As such, add a new argument for pgevector to allow maintenance_work_mem to be set: * --pgvector_maintenance_work_mem: Set this to a consistent, reasonable default value of 4GB. Also limit the pgvector Docker container to 8GB (and 2 cpu cores) so we have a fixed environment to allow more reproducable performance numbers.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters