From d8660b30cc77933e5fec07abaf918bec5e150e38 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Wed, 15 Jan 2020 01:18:45 +0100 Subject: [PATCH] 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. --- cmd/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils.go b/cmd/utils.go index c891f3fd4..e06bc8d13 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -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