This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cgconf.yaml.example
72 lines (60 loc) · 1.62 KB
/
cgconf.yaml.example
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
path: /sys/fs/cgroup
defaults:
_tasks: root:wheel:664
_admin: root:wheel:644
# _path: root:root:755 # won't be chown/chmod'ed, if unset
freezer:
groups:
# Must be applied to root cgroup
memory.use_hierarchy: 1
# base:
# _default: true # to put all pids here initially
# cpu.shares: 1000
# blkio.weight: 1000
user.slice:
cpu:
cfs_quota_us: 1_500_000
cfs_period_us: 1_000_000
tagged:
cave:
_tasks: root:paludisbuild
_admin: root:paludisbuild
cpu:
shares: 100
cfs_quota_us: 100_000
cfs_period_us: 250_000
blkio.weight: 100
memory.soft_limit_in_bytes: 2G
desktop:
roam:
_tasks: root:users
cpu.shares: 300
blkio.weight: 300
memory.soft_limit_in_bytes: 2G
de_misc:
memory.soft_limit_in_bytes: 700M
memory.limit_in_bytes: 1500M
vm:
quasi:
misc:
cpu.shares: 200
blkio.weight: 100
memory.soft_limit_in_bytes: 1200M
memory.limit_in_bytes: 1500M
bench:
# Subdir for adhoc cgroups created by user
tmp:
# Corresponding pw_gid will be used, if "user:" is specified
# Specs like "user", ":group:770" or "::775" are all valid.
_tasks: 'fraggod:'
_admin: 'fraggod:'
_path: 'fraggod:'
# These will be initialized as dirs with proper uid/gid, but no stuff applied there
cpuacct:
memory:
blkio:
# Limits that groups in tmp/ can't transcend
cpu.shares: 500
blkio.weight: 500
memory.soft_limit_in_bytes: 300M
memory.limit_in_bytes: 500M