mirror of https://github.com/minio/minio.git
Reduce MemProfileRate (#8814)
Enabling the memory profiling has a significant impact on performance. Reduce the profiling rate by 2 orders of magnitude. It is still 128x smaller than default so it should be plenty.
This commit is contained in:
parent
30922148fb
commit
d8660b30cc
|
@ -252,7 +252,7 @@ func startProfiler(profilerType string) (minioProfiler, error) {
|
|||
}
|
||||
case "mem":
|
||||
old := runtime.MemProfileRate
|
||||
runtime.MemProfileRate = 1
|
||||
runtime.MemProfileRate = 4096
|
||||
prof.stopFn = func() ([]byte, error) {
|
||||
var buf bytes.Buffer
|
||||
runtime.MemProfileRate = old
|
||||
|
|
Loading…
Reference in New Issue