- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for availableMemory (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/handler-api.go
// but still, no need to interpret more return 0 } if limit >= 100*humanize.TiByte { // No limit set, or unreasonably high. Ignore 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" { // Honor cgroup limits if set. limit := cgroupMemLimit()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.4K bytes - Click Count (0) -
cmd/common-main.go
ctxt.CertsDir = ctx.String("certs-dir") ctxt.certsDirSet = true case ctx.GlobalIsSet("certs-dir"): ctxt.CertsDir = ctx.GlobalString("certs-dir") ctxt.certsDirSet = true } memAvailable := availableMemory() if ctx.IsSet("memlimit") || ctx.GlobalIsSet("memlimit") { memlimit := ctx.String("memlimit") if memlimit == "" { memlimit = ctx.GlobalString("memlimit") }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3)