mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmselect/netstorage: reduce contention on unpackworkCh and timeseriesWorkCh for multi-CPU system by providing more capacity for these chans
This commit is contained in:
parent
ad730d8a17
commit
d20c2156e4
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ func (rss *Results) mustClose() {
|
||||||
rss.sr = nil
|
rss.sr = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var timeseriesWorkCh = make(chan *timeseriesWork, gomaxprocs)
|
var timeseriesWorkCh = make(chan *timeseriesWork, gomaxprocs*16)
|
||||||
|
|
||||||
type timeseriesWork struct {
|
type timeseriesWork struct {
|
||||||
rss *Results
|
rss *Results
|
||||||
|
@ -167,7 +167,7 @@ type packedTimeseries struct {
|
||||||
brs []storage.BlockRef
|
brs []storage.BlockRef
|
||||||
}
|
}
|
||||||
|
|
||||||
var unpackWorkCh = make(chan *unpackWork, gomaxprocs)
|
var unpackWorkCh = make(chan *unpackWork, gomaxprocs*128)
|
||||||
|
|
||||||
type unpackWork struct {
|
type unpackWork struct {
|
||||||
br storage.BlockRef
|
br storage.BlockRef
|
||||||
|
|
Loading…
Reference in a new issue