- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setMemoryLimit (0.25 sec)
-
src/runtime/debug/garbage.go
// two: KiB means 2^10 bytes, MiB means 2^20 bytes, and so on. // // SetMemoryLimit returns the previously set memory limit. // A negative input does not adjust the limit, and allows for // retrieval of the currently set memory limit. func SetMemoryLimit(limit int64) int64 { return setMemoryLimit(limit)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.9K bytes - Viewed (0) -
cmd/server-rlimit.go
humanize.IBytes(vssLimit)) } if ctx.MemLimit > 0 { maxLimit = ctx.MemLimit } if maxLimit > 0 { debug.SetMemoryLimit(int64(maxLimit)) } // Do not use RLIMIT_AS as that is not useful and at times on systems < 4Gi // this can crash the Go runtime if the value is smaller refer // - https://github.com/golang/go/issues/38010
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/metrics/doc.go
/gc/gomemlimit:bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. /gc/heap/allocs-by-size:bytes Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:43 UTC 2024 - 20K bytes - Viewed (0) -
src/runtime/extern.go
they are based on powers of two: KiB means 2^10 bytes, MiB means 2^20 bytes, and so on. The default setting is [math.MaxInt64], which effectively disables the memory limit. [runtime/debug.SetMemoryLimit] allows changing this limit at run time. The GODEBUG variable controls debugging variables within the runtime. It is a comma-separated list of name=val pairs setting these named variables:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 18.9K bytes - Viewed (0) -
src/runtime/metrics_test.go
// Run a GC cycle to get some of the stats to be non-zero. runtime.GC() // Set an arbitrary memory limit to check the metric for it limit := int64(512 * 1024 * 1024) oldLimit := debug.SetMemoryLimit(limit) defer debug.SetMemoryLimit(oldLimit) // Set a GC percent to check the metric for it gcPercent := 99 oldGCPercent := debug.SetGCPercent(gcPercent) defer debug.SetGCPercent(oldGCPercent)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0)