-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathananicy.schema.json
More file actions
101 lines (101 loc) · 2.72 KB
/
Copy pathananicy.schema.json
File metadata and controls
101 lines (101 loc) · 2.72 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Ananicy Type",
"description": "Schema for Ananicy type files.",
"type": "object",
"additionalProperties": false,
"properties": {
"nice": {
"type": "integer",
"minimum": -20,
"maximum": 19,
"description": "nice level"
},
"latency_nice": {
"type": "integer",
"minimum": -20,
"maximum": 19,
"description": "latency_nice level"
},
"ionice": {
"type": "integer",
"minimum": 0,
"maximum": 7,
"description": "ionice level"
},
"sched": {
"type": "string",
"description": "Scheduling policy",
"enum": [
"fifo",
"rr",
"normal",
"batch",
"idle"
]
},
"rtprio": {
"type": "integer",
"minimum": 0,
"maximum": 99,
"description": "Static priority of a process. Only relevant if the actual scheduling policy of a process is a realtime one, i.e. fifo, rr or deadline."
},
"ioclass": {
"type": "string",
"enum": [
"best-effort",
"realtime",
"idle",
"none"
],
"description": "Define the IO scheduling policy."
},
"oom_score_adj": {
"type": "integer",
"minimum": -1000,
"maximum": 1000,
"description": "Adjust the Out Of Memory killer score of a process. Negative value decrease the score of the process, making it less likely to be killed if available memory gets very low."
},
"cpuset": {
"oneOf": [
{
"type": "string",
"enum": [
"big-cores",
"little-cores",
"turbo-cores",
"performance-cores",
"efficiency-cores",
"all-cores",
"x3d-cache",
"x3d-frequency"
]
},
{
"type": "string",
"pattern": "^\\d+-\\d+$",
"examples": ["0-7"]
},
{
"type": "string",
"pattern": "^(\\d+(-\\d+)?)[^,]?+$",
"examples": ["0,2,4", "0-3,8-11"]
},
{
"type": "string",
"pattern": "^(llc|node)-[\\d]+$",
"examples": ["llc-1", "node-0"]
}
],
"description": "Pin the process to the specified CPU cores using Linux cpuset notation."
},
"cgroup": {
"type": "string",
"description": "Put the process in the specified cgroup. This can be any cgroup, including those created outside ananicy-cpp."
},
"type": {
"type": "string",
"description": "Set the type of the rule. All options defined in the type will be used as if written explicitly in the rule, although you can override each option if needed."
}
}
}