Documentation ¶
Index ¶
Constants ¶
View Source
const OOMScoreMaxKillable = -999
OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer
Variables ¶
This section is empty.
Functions ¶
func CreateUnixSocket ¶
CreateUnixSocket creates a unix socket and returns the listener
func GetLocalListener ¶
GetLocalListener returns a listerner out of a unix socket.
func GetOpenFds ¶
GetOpenFds returns the number of open fds for the process provided by pid
func SetOOMScore ¶
SetOOMScore sets the oom score for the provided pid
Types ¶
Click to show internal directories.
Click to hide internal directories.