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