summaryrefslogtreecommitdiff
path: root/vendor/github.com/KimMachineGun/automemlimit/README.md
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-08-28 06:59:08 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-28 06:59:08 +0000
commite6407ec95c1c0b134866d7bd4b2d17f4b0c3bf39 (patch)
tree4085dc4a80680a2f480e0466a984e3097f4c58b4 /vendor/github.com/KimMachineGun/automemlimit/README.md
parent[chore/frontend] Make line-height a wee little bit bigger (#2159) (diff)
downloadgotosocial-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.md5
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)