Automatically set GOMEMLIMIT at 90% of available memory.

Or at the ratio specified by `AUTOMEMLIMIT`.
This commit is contained in:
Catherine
2025-09-18 03:31:51 +00:00
parent fb9f4a7c4a
commit 07a736382c
3 changed files with 21 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@ module whitequark.org/git-pages
go 1.25.0
require (
github.com/KimMachineGun/automemlimit v0.7.4
github.com/go-git/go-git/v6 v6.0.0-20250910120214-3a68d0404116
github.com/maypok86/otter/v2 v2.2.1
github.com/minio/minio-go/v7 v7.0.95
@@ -29,6 +30,7 @@ require (
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/minio/crc64nvme v1.0.2 // indirect
github.com/minio/md5-simd v1.1.2 // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
github.com/philhofer/fwd v1.2.0 // indirect
github.com/pjbgf/sha1cd v0.5.0 // indirect
github.com/rs/xid v1.6.0 // indirect