• 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      "Name": "UClampLatencySensitive",
45      "Controller": "cpu",
46      "File": "cpu.uclamp.latency_sensitive"
47    },
48    {
49      "Name": "FreezerState",
50      "Controller": "freezer",
51      "File": "cgroup.freeze"
52    }
53  ],
54
55  "Profiles": [
56    {
57      "Name": "HighEnergySaving",
58      "Actions": [
59        {
60          "Name": "JoinCgroup",
61          "Params":
62          {
63            "Controller": "cpu",
64            "Path": "background"
65          }
66        }
67      ]
68    },
69    {
70      "Name": "Frozen",
71      "Actions": [
72        {
73          "Name": "SetAttribute",
74          "Params":
75          {
76            "Name": "FreezerState",
77            "Value": "1"
78          }
79        }
80      ]
81    },
82    {
83      "Name": "Unfrozen",
84      "Actions": [
85        {
86          "Name": "SetAttribute",
87          "Params":
88          {
89            "Name": "FreezerState",
90            "Value": "0"
91          }
92        }
93      ]
94    },
95    {
96      "Name": "NormalPerformance",
97      "Actions": [
98        {
99          "Name": "JoinCgroup",
100          "Params":
101          {
102            "Controller": "cpu",
103            "Path": "system"
104          }
105        }
106      ]
107    },
108    {
109      "Name": "ServicePerformance",
110      "Actions": [
111        {
112          "Name": "JoinCgroup",
113          "Params":
114          {
115            "Controller": "cpu",
116            "Path": "system-background"
117          }
118        }
119      ]
120    },
121    {
122      "Name": "HighPerformance",
123      "Actions": [
124        {
125          "Name": "JoinCgroup",
126          "Params":
127          {
128            "Controller": "cpu",
129            "Path": "foreground"
130          }
131        }
132      ]
133    },
134    {
135      "Name": "MaxPerformance",
136      "Actions": [
137        {
138          "Name": "JoinCgroup",
139          "Params":
140          {
141            "Controller": "cpu",
142            "Path": "top-app"
143          }
144        }
145      ]
146    },
147    {
148      "Name": "RealtimePerformance",
149      "Actions": [
150        {
151          "Name": "JoinCgroup",
152          "Params":
153          {
154            "Controller": "cpu",
155            "Path": "rt"
156          }
157        }
158      ]
159    },
160    {
161      "Name": "CameraServicePerformance",
162      "Actions": [
163        {
164          "Name": "JoinCgroup",
165          "Params":
166          {
167            "Controller": "cpu",
168            "Path": "camera-daemon"
169          }
170        }
171      ]
172    },
173    {
174      "Name": "NNApiHALPerformance",
175      "Actions": [
176        {
177          "Name": "JoinCgroup",
178          "Params":
179          {
180            "Controller": "cpu",
181            "Path": "nnapi-hal"
182          }
183        }
184      ]
185    },
186
187    {
188      "Name": "CpuPolicySpread",
189      "Actions": [
190        {
191          "Name": "SetAttribute",
192          "Params":
193          {
194            "Name": "UClampLatencySensitive",
195            "Value": "1"
196          }
197        }
198      ]
199    },
200    {
201      "Name": "CpuPolicyPack",
202      "Actions": [
203        {
204          "Name": "SetAttribute",
205          "Params":
206          {
207            "Name": "UClampLatencySensitive",
208            "Value": "0"
209          }
210        }
211      ]
212    },
213
214    {
215      "Name": "VrKernelCapacity",
216      "Actions": [
217        {
218          "Name": "JoinCgroup",
219          "Params":
220          {
221            "Controller": "cpuset",
222            "Path": ""
223          }
224        }
225      ]
226    },
227    {
228      "Name": "VrServiceCapacityLow",
229      "Actions": [
230        {
231          "Name": "JoinCgroup",
232          "Params":
233          {
234            "Controller": "cpuset",
235            "Path": "system/background"
236          }
237        }
238      ]
239    },
240    {
241      "Name": "VrServiceCapacityNormal",
242      "Actions": [
243        {
244          "Name": "JoinCgroup",
245          "Params":
246          {
247            "Controller": "cpuset",
248            "Path": "system"
249          }
250        }
251      ]
252    },
253    {
254      "Name": "VrServiceCapacityHigh",
255      "Actions": [
256        {
257          "Name": "JoinCgroup",
258          "Params":
259          {
260            "Controller": "cpuset",
261            "Path": "system/performance"
262          }
263        }
264      ]
265    },
266    {
267      "Name": "VrProcessCapacityLow",
268      "Actions": [
269        {
270          "Name": "JoinCgroup",
271          "Params":
272          {
273            "Controller": "cpuset",
274            "Path": "application/background"
275          }
276        }
277      ]
278    },
279    {
280      "Name": "VrProcessCapacityNormal",
281      "Actions": [
282        {
283          "Name": "JoinCgroup",
284          "Params":
285          {
286            "Controller": "cpuset",
287            "Path": "application"
288          }
289        }
290      ]
291    },
292    {
293      "Name": "VrProcessCapacityHigh",
294      "Actions": [
295        {
296          "Name": "JoinCgroup",
297          "Params":
298          {
299            "Controller": "cpuset",
300            "Path": "application/performance"
301          }
302        }
303      ]
304    },
305
306    {
307      "Name": "ProcessCapacityLow",
308      "Actions": [
309        {
310          "Name": "JoinCgroup",
311          "Params":
312          {
313            "Controller": "cpuset",
314            "Path": "background"
315          }
316        }
317      ]
318    },
319    {
320      "Name": "ProcessCapacityNormal",
321      "Actions": [
322        {
323          "Name": "JoinCgroup",
324          "Params":
325          {
326            "Controller": "cpuset",
327            "Path": ""
328          }
329        }
330      ]
331    },
332    {
333      "Name": "ProcessCapacityHigh",
334      "Actions": [
335        {
336          "Name": "JoinCgroup",
337          "Params":
338          {
339            "Controller": "cpuset",
340            "Path": "foreground"
341          }
342        }
343      ]
344    },
345    {
346      "Name": "ProcessCapacityMax",
347      "Actions": [
348        {
349          "Name": "JoinCgroup",
350          "Params":
351          {
352            "Controller": "cpuset",
353            "Path": "top-app"
354          }
355        }
356      ]
357    },
358
359    {
360      "Name": "ServiceCapacityLow",
361      "Actions": [
362        {
363          "Name": "JoinCgroup",
364          "Params":
365          {
366            "Controller": "cpuset",
367            "Path": "system-background"
368          }
369        }
370      ]
371    },
372    {
373      "Name": "ServiceCapacityRestricted",
374      "Actions": [
375        {
376          "Name": "JoinCgroup",
377          "Params":
378          {
379            "Controller": "cpuset",
380            "Path": "restricted"
381          }
382        }
383      ]
384    },
385
386    {
387      "Name": "CameraServiceCapacity",
388      "Actions": [
389        {
390          "Name": "JoinCgroup",
391          "Params":
392          {
393            "Controller": "cpuset",
394            "Path": "camera-daemon"
395          }
396        }
397      ]
398    },
399
400    {
401      "Name": "LowIoPriority",
402      "Actions": [
403        {
404          "Name": "JoinCgroup",
405          "Params":
406          {
407            "Controller": "blkio",
408            "Path": "background"
409          }
410        }
411      ]
412    },
413    {
414      "Name": "NormalIoPriority",
415      "Actions": [
416        {
417          "Name": "JoinCgroup",
418          "Params":
419          {
420            "Controller": "blkio",
421            "Path": ""
422          }
423        }
424      ]
425    },
426    {
427      "Name": "HighIoPriority",
428      "Actions": [
429        {
430          "Name": "JoinCgroup",
431          "Params":
432          {
433            "Controller": "blkio",
434            "Path": ""
435          }
436        }
437      ]
438    },
439    {
440      "Name": "MaxIoPriority",
441      "Actions": [
442        {
443          "Name": "JoinCgroup",
444          "Params":
445          {
446            "Controller": "blkio",
447            "Path": ""
448          }
449        }
450      ]
451    },
452
453    {
454      "Name": "TimerSlackHigh",
455      "Actions": [
456        {
457          "Name": "SetTimerSlack",
458          "Params":
459          {
460            "Slack": "40000000"
461          }
462        }
463      ]
464    },
465    {
466      "Name": "TimerSlackNormal",
467      "Actions": [
468        {
469          "Name": "SetTimerSlack",
470          "Params":
471          {
472            "Slack": "50000"
473          }
474        }
475      ]
476    },
477
478    {
479      "Name": "SFMainPolicy",
480      "Actions": [
481        {
482          "Name": "JoinCgroup",
483          "Params":
484          {
485            "Controller": "cpuset",
486            "Path": "system-background"
487          }
488        }
489      ]
490    },
491    {
492      "Name": "SFRenderEnginePolicy",
493      "Actions": [
494        {
495          "Name": "JoinCgroup",
496          "Params":
497          {
498            "Controller": "cpuset",
499            "Path": "system-background"
500          }
501        }
502      ]
503    },
504
505    {
506      "Name": "PerfBoost",
507      "Actions": [
508        {
509          "Name": "SetClamps",
510          "Params":
511          {
512            "Boost": "50%",
513            "Clamp": "0"
514          }
515        }
516      ]
517    },
518    {
519      "Name": "PerfClamp",
520      "Actions": [
521        {
522          "Name": "SetClamps",
523          "Params":
524          {
525            "Boost": "0",
526            "Clamp": "30%"
527          }
528        }
529      ]
530    },
531
532    {
533      "Name": "LowMemoryUsage",
534      "Actions": [
535        {
536          "Name": "SetAttribute",
537          "Params":
538          {
539            "Name": "MemSoftLimit",
540            "Value": "16MB"
541          }
542        },
543        {
544          "Name": "SetAttribute",
545          "Params":
546          {
547            "Name": "MemSwappiness",
548            "Value": "150"
549
550          }
551        }
552      ]
553    },
554    {
555      "Name": "HighMemoryUsage",
556      "Actions": [
557        {
558          "Name": "SetAttribute",
559          "Params":
560          {
561            "Name": "MemSoftLimit",
562            "Value": "512MB"
563          }
564        },
565        {
566          "Name": "SetAttribute",
567          "Params":
568          {
569            "Name": "MemSwappiness",
570            "Value": "100"
571          }
572        }
573      ]
574    },
575    {
576      "Name": "SystemMemoryProcess",
577      "Actions": [
578        {
579          "Name": "JoinCgroup",
580          "Params":
581          {
582            "Controller": "memory",
583            "Path": "system"
584          }
585        }
586      ]
587    }
588  ],
589
590  "AggregateProfiles": [
591    {
592      "Name": "SCHED_SP_DEFAULT",
593      "Profiles": [ "TimerSlackNormal" ]
594    },
595    {
596      "Name": "SCHED_SP_BACKGROUND",
597      "Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ]
598    },
599    {
600      "Name": "SCHED_SP_FOREGROUND",
601      "Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ]
602    },
603    {
604      "Name": "SCHED_SP_TOP_APP",
605      "Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ]
606    },
607    {
608      "Name": "SCHED_SP_SYSTEM",
609      "Profiles": [ "ServicePerformance", "LowIoPriority", "TimerSlackNormal" ]
610    },
611    {
612      "Name": "SCHED_SP_RT_APP",
613      "Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ]
614    },
615    {
616      "Name": "CPUSET_SP_DEFAULT",
617      "Profiles": [ "TimerSlackNormal" ]
618    },
619    {
620      "Name": "CPUSET_SP_BACKGROUND",
621      "Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
622    },
623    {
624      "Name": "CPUSET_SP_FOREGROUND",
625      "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ]
626    },
627    {
628      "Name": "CPUSET_SP_TOP_APP",
629      "Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ]
630    },
631    {
632      "Name": "CPUSET_SP_SYSTEM",
633      "Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ]
634    },
635    {
636      "Name": "CPUSET_SP_RESTRICTED",
637      "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ]
638    },
639    {
640      "Name": "Dex2OatBootComplete",
641      "Profiles": [ "SCHED_SP_BACKGROUND" ]
642    }
643  ]
644}
645