- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for availableMemory (0.18 sec)
-
cmd/handler-api.go
// integer (2^63-1), rounded down to multiples of 4096 (2^12), // the most common page size on x86 systems - for cgroup_limits. return 0 } return limit } func availableMemory() (available uint64) { available = 2048 * blockSizeV2 * 2 // Default to 4 GiB when we can't find the limits. if runtime.GOOS == "linux" { // Useful in container mode limit := cgroupMemLimit() if limit > 0 {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 20:08:20 GMT 2024 - 10K bytes - Viewed (0) -
cmd/erasure-server-pool.go
n := uint64(1024) // single node single/multiple drives set this to 1024 entries if globalIsDistErasure { n = 2048 } // Avoid allocating more than half of the available memory if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN { n = maxN } if globalIsCICD || strconv.IntSize == 32 { n = 256 // 256MiB for CI/CD environments is sufficient or on 32bit platforms. }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 20:08:20 GMT 2024 - 80.5K bytes - Viewed (0)