Skip to content

Commit 24a6609

Browse files
committed
perf(etw): Increase default max buffers
Increase ETW session default max buffes to the number of CPUs * 8.
1 parent 7fb4aa6 commit 24a6609

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/config/eventsource.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
package config
2323

2424
import (
25-
"github.com/rabbitstack/fibratus/pkg/event"
26-
"github.com/rabbitstack/fibratus/pkg/util/bitmask"
2725
"runtime"
2826
"time"
2927

28+
"github.com/rabbitstack/fibratus/pkg/event"
29+
"github.com/rabbitstack/fibratus/pkg/util/bitmask"
30+
3031
pstypes "github.com/rabbitstack/fibratus/pkg/ps/types"
3132
"github.com/spf13/viper"
3233
)
@@ -57,7 +58,7 @@ const (
5758

5859
var (
5960
defaultMinBuffers = uint32(runtime.NumCPU() * 2)
60-
defaultMaxBuffers = defaultMinBuffers + 20
61+
defaultMaxBuffers = uint32(runtime.NumCPU() * 8)
6162
defaultFlushInterval = time.Second
6263
)
6364

0 commit comments

Comments
 (0)