task_profiles.json 14 KB

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