mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Reduce memory profiling rate (#17894)
Change profiling from every 4KB to every 128K, reducing the lock contention by a factor of 32.
This commit is contained in:
parent
1c5af7c31a
commit
f506117edb
@ -345,7 +345,7 @@ func getProfileData() (map[string][]byte, error) {
|
||||
}
|
||||
|
||||
func setDefaultProfilerRates() {
|
||||
runtime.MemProfileRate = 4096 // 512K -> 4K - Must be constant throughout application lifetime.
|
||||
runtime.MemProfileRate = 128 << 10 // 512KB -> 128K - Must be constant throughout application lifetime.
|
||||
runtime.SetMutexProfileFraction(0) // Disable until needed
|
||||
runtime.SetBlockProfileRate(0) // Disable until needed
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user