Files
sing-box-extended-mirror/option/oom_killer.go
T

16 lines
592 B
Go
Raw Normal View History

2026-02-26 12:54:00 +08:00
package option
2026-02-27 13:35:58 +08:00
import (
"github.com/sagernet/sing/common/byteformats"
"github.com/sagernet/sing/common/json/badoption"
)
type OOMKillerServiceOptions struct {
2026-04-02 16:39:34 +08:00
MemoryLimit *byteformats.MemoryBytes `json:"memory_limit,omitempty"`
SafetyMargin *byteformats.MemoryBytes `json:"safety_margin,omitempty"`
MinInterval badoption.Duration `json:"min_interval,omitempty"`
MaxInterval badoption.Duration `json:"max_interval,omitempty"`
KillerDisabled bool `json:"-"`
MemoryLimitOverride uint64 `json:"-"`
2026-02-27 13:35:58 +08:00
}