blob: 5a090c5b60a8fab8710f5dee731bedb4c68ccf26 [file] [log] [blame]
Suren Baghdasaryan503cf842018-10-17 16:42:47 -07001{
2 "Attributes": [
3 {
4 "Name": "LowCapacityCPUs",
5 "Controller": "cpuset",
6 "File": "background/cpus"
7 },
8 {
9 "Name": "HighCapacityCPUs",
10 "Controller": "cpuset",
11 "File": "foreground/cpus"
12 },
13 {
14 "Name": "MaxCapacityCPUs",
15 "Controller": "cpuset",
16 "File": "top-app/cpus"
17 },
18
19 {
20 "Name": "MemLimit",
21 "Controller": "memory",
22 "File": "memory.limit_in_bytes"
23 },
24 {
25 "Name": "MemSoftLimit",
26 "Controller": "memory",
27 "File": "memory.soft_limit_in_bytes"
28 },
29 {
30 "Name": "MemSwappiness",
31 "Controller": "memory",
32 "File": "memory.swappiness"
33 },
34 {
35 "Name": "STuneBoost",
36 "Controller": "schedtune",
37 "File": "schedtune.boost"
38 },
39 {
40 "Name": "STunePreferIdle",
41 "Controller": "schedtune",
42 "File": "schedtune.prefer_idle"
43 },
44 {
45 "Name": "UClampMin",
46 "Controller": "cpu",
47 "File": "cpu.util.min"
48 },
49 {
50 "Name": "UClampMax",
51 "Controller": "cpu",
52 "File": "cpu.util.max"
53 }
54 ],
55
56 "Profiles": [
57 {
58 "Name": "HighEnergySaving",
59 "Actions" : [
60 {
61 "Name" : "JoinCgroup",
62 "Params" :
63 {
64 "Controller": "schedtune",
65 "Path": "background"
66 }
67 }
68 ]
69 },
70 {
71 "Name": "NormalPerformance",
72 "Actions" : [
73 {
74 "Name" : "JoinCgroup",
75 "Params" :
76 {
77 "Controller": "schedtune",
78 "Path": ""
79 }
80 }
81 ]
82 },
83 {
84 "Name": "HighPerformance",
85 "Actions" : [
86 {
87 "Name" : "JoinCgroup",
88 "Params" :
89 {
90 "Controller": "schedtune",
91 "Path": "foreground"
92 }
93 }
94 ]
95 },
96 {
97 "Name": "MaxPerformance",
98 "Actions" : [
99 {
100 "Name" : "JoinCgroup",
101 "Params" :
102 {
103 "Controller": "schedtune",
104 "Path": "top-app"
105 }
106 }
107 ]
108 },
109 {
110 "Name": "RealtimePerformance",
111 "Actions" : [
112 {
113 "Name" : "JoinCgroup",
114 "Params" :
115 {
116 "Controller": "schedtune",
117 "Path": "rt"
118 }
119 }
120 ]
121 },
122
123 {
124 "Name": "CpuPolicySpread",
125 "Actions" : [
126 {
127 "Name" : "SetAttribute",
128 "Params" :
129 {
130 "Name" : "STunePreferIdle",
131 "Value" : "1"
132 }
133 }
134 ]
135 },
136 {
137 "Name": "CpuPolicyPack",
138 "Actions" : [
139 {
140 "Name" : "SetAttribute",
141 "Params" :
142 {
143 "Name" : "STunePreferIdle",
144 "Value" : "0"
145 }
146 }
147 ]
148 },
149
150 {
151 "Name": "VrKernelCapacity",
152 "Actions" : [
153 {
154 "Name" : "JoinCgroup",
155 "Params" :
156 {
157 "Controller": "cpuset",
158 "Path": ""
159 }
160 }
161 ]
162 },
163 {
164 "Name": "VrServiceCapacityLow",
165 "Actions" : [
166 {
167 "Name" : "JoinCgroup",
168 "Params" :
169 {
170 "Controller": "cpuset",
171 "Path": "system/background"
172 }
173 }
174 ]
175 },
176 {
177 "Name": "VrServiceCapacityNormal",
178 "Actions" : [
179 {
180 "Name" : "JoinCgroup",
181 "Params" :
182 {
183 "Controller": "cpuset",
184 "Path": "system"
185 }
186 }
187 ]
188 },
189 {
190 "Name": "VrServiceCapacityHigh",
191 "Actions" : [
192 {
193 "Name" : "JoinCgroup",
194 "Params" :
195 {
196 "Controller": "cpuset",
197 "Path": "system/performance"
198 }
199 }
200 ]
201 },
202 {
203 "Name": "VrProcessCapacityLow",
204 "Actions" : [
205 {
206 "Name" : "JoinCgroup",
207 "Params" :
208 {
209 "Controller": "cpuset",
210 "Path": "application/background"
211 }
212 }
213 ]
214 },
215 {
216 "Name": "VrProcessCapacityNormal",
217 "Actions" : [
218 {
219 "Name" : "JoinCgroup",
220 "Params" :
221 {
222 "Controller": "cpuset",
223 "Path": "application"
224 }
225 }
226 ]
227 },
228 {
229 "Name": "VrProcessCapacityHigh",
230 "Actions" : [
231 {
232 "Name" : "JoinCgroup",
233 "Params" :
234 {
235 "Controller": "cpuset",
236 "Path": "application/performance"
237 }
238 }
239 ]
240 },
241
242 {
243 "Name": "ProcessCapacityLow",
244 "Actions" : [
245 {
246 "Name" : "JoinCgroup",
247 "Params" :
248 {
249 "Controller": "cpuset",
250 "Path": "background"
251 }
252 }
253 ]
254 },
255 {
256 "Name": "ProcessCapacityNormal",
257 "Actions" : [
258 {
259 "Name" : "JoinCgroup",
260 "Params" :
261 {
262 "Controller": "cpuset",
263 "Path": ""
264 }
265 }
266 ]
267 },
268 {
269 "Name": "ProcessCapacityHigh",
270 "Actions" : [
271 {
272 "Name" : "JoinCgroup",
273 "Params" :
274 {
275 "Controller": "cpuset",
276 "Path": "foreground"
277 }
278 }
279 ]
280 },
281 {
282 "Name": "ProcessCapacityMax",
283 "Actions" : [
284 {
285 "Name" : "JoinCgroup",
286 "Params" :
287 {
288 "Controller": "cpuset",
289 "Path": "top-app"
290 }
291 }
292 ]
293 },
294
295 {
296 "Name": "ServiceCapacityLow",
297 "Actions" : [
298 {
299 "Name" : "JoinCgroup",
300 "Params" :
301 {
302 "Controller": "cpuset",
303 "Path": "system-background"
304 }
305 }
306 ]
307 },
308 {
309 "Name": "ServiceCapacityRestricted",
310 "Actions" : [
311 {
312 "Name" : "JoinCgroup",
313 "Params" :
314 {
315 "Controller": "cpuset",
316 "Path": "restricted"
317 }
318 }
319 ]
320 },
321
322 {
323 "Name": "CameraServiceCapacity",
324 "Actions" : [
325 {
326 "Name" : "JoinCgroup",
327 "Params" :
328 {
329 "Controller": "cpuset",
330 "Path": "camera-daemon"
331 }
332 }
333 ]
334 },
335
336 {
337 "Name": "TimerSlackHigh",
338 "Actions" : [
339 {
340 "Name" : "SetTimerSlack",
341 "Params" :
342 {
343 "Slack": "40000000"
344 }
345 }
346 ]
347 },
348 {
349 "Name": "TimerSlackNormal",
350 "Actions" : [
351 {
352 "Name" : "SetTimerSlack",
353 "Params" :
354 {
355 "Slack": "50000"
356 }
357 }
358 ]
359 },
360
361 {
362 "Name": "PerfBoost",
363 "Actions" : [
364 {
365 "Name" : "SetClamps",
366 "Params" :
367 {
368 "Boost" : "50%",
369 "Clamp" : "0"
370 }
371 }
372 ]
373 },
374 {
375 "Name": "PerfClamp",
376 "Actions" : [
377 {
378 "Name" : "SetClamps",
379 "Params" :
380 {
381 "Boost" : "0",
382 "Clamp" : "30%"
383 }
384 }
385 ]
386 },
387
388 {
389 "Name": "LowMemoryUsage",
390 "Actions" : [
391 {
392 "Name" : "SetAttribute",
393 "Params" :
394 {
395 "Name" : "MemSoftLimit",
396 "Value" : "16MB"
397 }
398 },
399 {
400 "Name" : "SetAttribute",
401 "Params" :
402 {
403 "Name" : "MemSwappiness",
404 "Value" : "150"
405
406 }
407 }
408 ]
409 },
410 {
411 "Name": "HighMemoryUsage",
412 "Actions" : [
413 {
414 "Name" : "SetAttribute",
415 "Params" :
416 {
417 "Name" : "MemSoftLimit",
418 "Value" : "512MB"
419 }
420 },
421 {
422 "Name" : "SetAttribute",
423 "Params" :
424 {
425 "Name" : "MemSwappiness",
426 "Value" : "100"
427 }
428 }
429 ]
430 },
431 {
432 "Name": "SystemMemoryProcess",
433 "Actions" : [
434 {
435 "Name" : "JoinCgroup",
436 "Params" :
437 {
438 "Controller": "memory",
439 "Path": "system"
440 }
441 }
442 ]
443 }
444 ]
445}