mirror of
https://github.com/minio/minio.git
synced 2025-11-10 14:09:48 -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:
@@ -345,7 +345,7 @@ func getProfileData() (map[string][]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setDefaultProfilerRates() {
|
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.SetMutexProfileFraction(0) // Disable until needed
|
||||||
runtime.SetBlockProfileRate(0) // Disable until needed
|
runtime.SetBlockProfileRate(0) // Disable until needed
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user