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": "PerfBoost", 361 "Actions": [ 362 { 363 "Name": "SetClamps", 364 "Params": 365 { 366 "Boost": "50%", 367 "Clamp": "0" 368 } 369 } 370 ] 371 }, 372 { 373 "Name": "PerfClamp", 374 "Actions": [ 375 { 376 "Name": "SetClamps", 377 "Params": 378 { 379 "Boost": "0", 380 "Clamp": "30%" 381 } 382 } 383 ] 384 }, 385 386 { 387 "Name": "LowMemoryUsage", 388 "Actions": [ 389 { 390 "Name": "SetAttribute", 391 "Params": 392 { 393 "Name": "MemSoftLimit", 394 "Value": "16MB" 395 } 396 }, 397 { 398 "Name": "SetAttribute", 399 "Params": 400 { 401 "Name": "MemSwappiness", 402 "Value": "150" 403 404 } 405 } 406 ] 407 }, 408 { 409 "Name": "HighMemoryUsage", 410 "Actions": [ 411 { 412 "Name": "SetAttribute", 413 "Params": 414 { 415 "Name": "MemSoftLimit", 416 "Value": "512MB" 417 } 418 }, 419 { 420 "Name": "SetAttribute", 421 "Params": 422 { 423 "Name": "MemSwappiness", 424 "Value": "100" 425 } 426 } 427 ] 428 }, 429 { 430 "Name": "SystemMemoryProcess", 431 "Actions": [ 432 { 433 "Name": "JoinCgroup", 434 "Params": 435 { 436 "Controller": "memory", 437 "Path": "system" 438 } 439 } 440 ] 441 } 442 ], 443 444 "AggregateProfiles": [ 445 { 446 "Name": "SCHED_SP_DEFAULT", 447 "Profiles": [ "TimerSlackNormal" ] 448 }, 449 { 450 "Name": "SCHED_SP_BACKGROUND", 451 "Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ] 452 }, 453 { 454 "Name": "SCHED_SP_FOREGROUND", 455 "Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ] 456 }, 457 { 458 "Name": "SCHED_SP_TOP_APP", 459 "Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ] 460 }, 461 { 462 "Name": "SCHED_SP_RT_APP", 463 "Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ] 464 }, 465 { 466 "Name": "CPUSET_SP_DEFAULT", 467 "Profiles": [ "TimerSlackNormal" ] 468 }, 469 { 470 "Name": "CPUSET_SP_BACKGROUND", 471 "Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ] 472 }, 473 { 474 "Name": "CPUSET_SP_FOREGROUND", 475 "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ] 476 }, 477 { 478 "Name": "CPUSET_SP_TOP_APP", 479 "Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ] 480 }, 481 { 482 "Name": "CPUSET_SP_SYSTEM", 483 "Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ] 484 }, 485 { 486 "Name": "CPUSET_SP_RESTRICTED", 487 "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ] 488 } 489 ] 490} 491