diff options
| author | 2023-08-28 06:59:08 +0000 | |
|---|---|---|
| committer | 2023-08-28 06:59:08 +0000 | |
| commit | e6407ec95c1c0b134866d7bd4b2d17f4b0c3bf39 (patch) | |
| tree | 4085dc4a80680a2f480e0466a984e3097f4c58b4 /vendor/github.com/KimMachineGun/automemlimit/README.md | |
| parent | [chore/frontend] Make line-height a wee little bit bigger (#2159) (diff) | |
| download | gotosocial-e6407ec95c1c0b134866d7bd4b2d17f4b0c3bf39.tar.xz | |
[chore]: Bump github.com/KimMachineGun/automemlimit from 0.2.6 to 0.3.0 (#2165)
Diffstat (limited to 'vendor/github.com/KimMachineGun/automemlimit/README.md')
| -rw-r--r-- | vendor/github.com/KimMachineGun/automemlimit/README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/KimMachineGun/automemlimit/README.md b/vendor/github.com/KimMachineGun/automemlimit/README.md index 804ee7b08..55d40a432 100644 --- a/vendor/github.com/KimMachineGun/automemlimit/README.md +++ b/vendor/github.com/KimMachineGun/automemlimit/README.md @@ -32,6 +32,11 @@ package main import "github.com/KimMachineGun/automemlimit/memlimit" func init() { + memlimit.SetGoMemLimitWithOpts( + memlimit.WithRatio(0.9), + memlimit.WithEnv(), + memlimit.WithProvider(memlimit.FromCgroup), + ) memlimit.SetGoMemLimitWithEnv() memlimit.SetGoMemLimit(0.9) memlimit.SetGoMemLimitWithProvider(memlimit.Limit(1024*1024), 0.9) |
