go-ethereum/internal/memlimit
Sina M d93dda49c8
internal/memlimit: respect cgroup memory cap (#34947)
Currently geth ignores the docker `--memory` directive and doesn't
adjust its cache size downward when necessary, potentially running into
OOM.

while gopsutil has functions like `docker/CgroupMem()` they are rather
for reading cgroup memory limit of a container from the host.
2026-06-12 13:31:15 +02:00
..
probe.go internal/memlimit: respect cgroup memory cap (#34947) 2026-06-12 13:31:15 +02:00
probe_linux.go internal/memlimit: respect cgroup memory cap (#34947) 2026-06-12 13:31:15 +02:00
probe_linux_test.go internal/memlimit: respect cgroup memory cap (#34947) 2026-06-12 13:31:15 +02:00
probe_other.go internal/memlimit: respect cgroup memory cap (#34947) 2026-06-12 13:31:15 +02:00
probe_test.go internal/memlimit: respect cgroup memory cap (#34947) 2026-06-12 13:31:15 +02:00