1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
#
# Cgroups configuration file example
#
# CPU resource restriction configuration
# - shares: CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
# - quotas: CPU hardcap limit (in usecs). Allowed cpu time in a given period.
# - period: CPU period to be used for hardcapping (in usecs).
# - realtimeRuntime: how much time realtime scheduling may use (in usecs).
# - realtimePeriod: CPU period to be used for realtime scheduling (in usecs).
# - cpus: CPUs to use within the cpuset. Default is to use any CPU available.
# - mems: list of memory nodes in the cpuset. Default is to use any available memory node
[cpu]
# shares = 512
# quotas = 0
# period = 0
# realtimeRuntime = 0
# realtimePeriod = 0
cpus = "0"
mems = "0"
shares = 1024
# Memory restriction configuration
# - limit: memory limit (in bytes).
# - reservation: memory reservation or soft_limit (in bytes).
# - swap: total memory limit (memory + swap).
# - kernel: kernel memory limit (in bytes).
# - kernelTCP: kernel memory limit for tcp (in bytes)
# - swappiness: how aggressive the kernel will swap memory pages.
# - disableOOMKiller: disableOOMKiller disables the OOM killer for out of memory conditions
# [memory]
# limit = 1073741824
# reservation = 2147483648
# swap = 1073741824
# kernel = 268435456
# kernelTCP = 268435456
# swappiness = 0
# disableOOMKiller = false
# Devices configures the device whitelist.
# - allow: allow or deny.
# - type: device type, block, char, etc.
# - major: device's major number.
# - minor: device's minor number.
# - access: cgroup access permissions format, rwm.
[[devices]]
access = "rwm"
allow = true
major = 0
minor = 0
type = "a"
# BlockIO restriction configuration
# [blockIO]
# Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only
# leafWeight = 10
# Specifies per cgroup weight
# weight = 10
# Weight per cgroup per device, can override BlkioWeight
# - major is the device's major number.
# - minor is the device's minor number.
# - weight is the bandwidth rate for the device.
# - leafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
# [[blockIO.weightDevice]]
# major = 7
# minor = 0
# weight = 10
# leafWeight = 10
# IO read rate limit per cgroup per device, bytes per second
# - major is the device's major number.
# - minor is the device's minor number.
# - rate is the IO rate limit per cgroup per device
# [[blockIO.throttleReadBpsDevice]]
# major = 7
# minor = 0
# rate = 100
# IO write rate limit per cgroup per device, bytes per second
# [[blockIO.throttleWriteBpsDevice]]
# major = 7
# minor = 0
# rate = 100
# IO read rate limit per cgroup per device, IO per second
# [[blockIO.throttleReadIOPSDevice]]
# major = 7
# minor = 0
# rate = 100
# IO write rate limit per cgroup per device, IO per second
# [[blockIO.throttleWriteIOPSDevice]]
# major = 7
# minor = 0
# rate = 100
# Hugetlb limit (in bytes)
# - pagesize: the hugepage size
# - limit: the limit of "hugepagesize" hugetlb usage
# [[hugepageLimits]]
# limit = 9223372036854771712
# pageSize = "16MB"
# Network restriction configuration
# [network]
# classID =
# [[network.priorities]]
# name = "eth0"
# priority = 1
# Task resource restriction configuration.
[pids]
limit = 1024
# Rdma resource restriction configuration.
# Limits are a set of key value pairs that define RDMA resource limits,
# where the key is device name and value is resource limits.
# [rdma]
# [[rdma.resOne]]
# hcaHandles = 0
# hcaObjects = 0
|