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