flamenco/pkg/oomscore/oomscore_nonlinux.go
Sybren A. Stüvel e2bca9ad61 Worker: add configuration for Linux out-of-memory killer
Add a Worker configuration option to configure the Linux out-of-memory
behaviour. Add `oom_score_adjust=500` to `flamenco-worker.yaml` to increase
the chance that Blender gets killed when the machine runs out of memory,
instead of Flamenco Worker itself.
2024-04-15 17:21:11 +02:00

20 lines
263 B
Go

//go:build !linux
package oomscore
const (
available = false
)
func getOOMScore() (int, error) {
return 0, ErrNotImplemented
}
func getOOMScoreAdj() (int, error) {
return 0, ErrNotImplemented
}
func setOOMScoreAdj(int) error {
return ErrNotImplemented
}