fix ram estimation for indexing (#5773)

This commit is contained in:
Alex Sharov 2022-10-18 10:19:58 +07:00 committed by GitHub
parent 64fe6708fa
commit 3aa97c57c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ func (r estimatedRamPerWorker) Workers() int {
}
const (
IndexSnapshot = estimatedRamPerWorker(2 * datasize.MB) //elias-fano index building is single-threaded
IndexSnapshot = estimatedRamPerWorker(2 * datasize.GB) //elias-fano index building is single-threaded
CompressSnapshot = estimatedRamPerWorker(1 * datasize.GB) //1-file-compression is multi-threaded
ReconstituteState = estimatedRamPerWorker(4 * datasize.GB) //state-reconstitution is multi-threaded
)