mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
921da495d2
Memory swappiness option takes 0-100, and helps to tune swappiness behavior per container. For example, When a lower value of swappiness is chosen the container will see minimum major faults. When no value is specified for memory-swappiness in docker UI, it is inherited from parent cgroup. (generally 60 unless it is changed). Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
25 lines
554 B
Go
25 lines
554 B
Go
package sysinfo
|
|
|
|
// SysInfo stores information about which features a kernel supports.
|
|
// TODO Windows: Factor out platform specific capabilities.
|
|
type SysInfo struct {
|
|
AppArmor bool
|
|
*cgroupMemInfo
|
|
*cgroupCpuInfo
|
|
IPv4ForwardingDisabled bool
|
|
BridgeNfCallIptablesDisabled bool
|
|
BridgeNfCallIp6tablesDisabled bool
|
|
CgroupDevicesEnabled bool
|
|
}
|
|
|
|
type cgroupMemInfo struct {
|
|
MemoryLimit bool
|
|
SwapLimit bool
|
|
OomKillDisable bool
|
|
MemorySwappiness bool
|
|
}
|
|
|
|
type cgroupCpuInfo struct {
|
|
CpuCfsPeriod bool
|
|
CpuCfsQuota bool
|
|
}
|