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