mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/netstorage: reduce mutex contention when unpacking data on a system with high number of CPU cores
This commit is contained in:
parent
1cfe3f872f
commit
05e301cfa0
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ func unpackWorker() {
|
|||
// unpackBatchSize is the maximum number of blocks that may be unpacked at once by a single goroutine.
|
||||
//
|
||||
// This batch is needed in order to reduce contention for upackWorkCh in multi-CPU system.
|
||||
var unpackBatchSize = 8 * cgroup.AvailableCPUs()
|
||||
var unpackBatchSize = 32 * cgroup.AvailableCPUs()
|
||||
|
||||
// Unpack unpacks pts to dst.
|
||||
func (pts *packedTimeseries) Unpack(tbf *tmpBlocksFile, dst *Result, tr storage.TimeRange, fetchData bool, at *auth.Token) error {
|
||||
|
|
Loading…
Reference in a new issue