Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanGetProcessLimits ¶ added in v0.5.0
CanGetProcessLimits returns a boolean to signify if it can return limits, and a warning message if it cannot.
Types ¶
type File ¶
type File interface { // Write bytes to the file descriptor. Write(p []byte) (int, error) // Sync fsyncs the file descriptor ensuring all writes have made it to disk. Sync() error // Close the file descriptor. Close() error }
File is the interface implemented by *os.File.
type ProcessLimits ¶
type ProcessLimits struct { NoFileCurr uint64 // RLIMIT_NOFILE Current NoFileMax uint64 // RLIMIT_NOFILE Max VMMaxMapCount int64 // corresponds to /proc/sys/vm/max_map_count VMSwappiness int64 // corresponds to /proc/sys/vm/swappiness }
ProcessLimits captures the different process limits.
func GetProcessLimits ¶
func GetProcessLimits() (ProcessLimits, error)
GetProcessLimits returns the known process limits.
Click to show internal directories.
Click to hide internal directories.