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