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