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": "LowMemoryUsage", 335 "Actions": [ 336 { 337 "Name": "SetAttribute", 338 "Params": 339 { 340 "Name": "MemSoftLimit", 341 "Value": "16MB" 342 } 343 }, 344 { 345 "Name": "SetAttribute", 346 "Params": 347 { 348 "Name": "MemSwappiness", 349 "Value": "150" 350 351 } 352 } 353 ] 354 }, 355 { 356 "Name": "HighMemoryUsage", 357 "Actions": [ 358 { 359 "Name": "SetAttribute", 360 "Params": 361 { 362 "Name": "MemSoftLimit", 363 "Value": "512MB" 364 } 365 }, 366 { 367 "Name": "SetAttribute", 368 "Params": 369 { 370 "Name": "MemSwappiness", 371 "Value": "100" 372 } 373 } 374 ] 375 }, 376 { 377 "Name": "SystemMemoryProcess", 378 "Actions": [ 379 { 380 "Name": "JoinCgroup", 381 "Params": 382 { 383 "Controller": "memory", 384 "Path": "system" 385 } 386 } 387 ] 388 } 389 ], 390 391 "AggregateProfiles": [ 392 { 393 "Name": "SCHED_SP_DEFAULT", 394 "Profiles": [ "TimerSlackNormal" ] 395 }, 396 { 397 "Name": "SCHED_SP_BACKGROUND", 398 "Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ] 399 }, 400 { 401 "Name": "SCHED_SP_FOREGROUND", 402 "Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ] 403 }, 404 { 405 "Name": "SCHED_SP_TOP_APP", 406 "Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ] 407 }, 408 { 409 "Name": "SCHED_SP_RT_APP", 410 "Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ] 411 }, 412 { 413 "Name": "CPUSET_SP_DEFAULT", 414 "Profiles": [ "TimerSlackNormal" ] 415 }, 416 { 417 "Name": "CPUSET_SP_BACKGROUND", 418 "Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ] 419 }, 420 { 421 "Name": "CPUSET_SP_FOREGROUND", 422 "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ] 423 }, 424 { 425 "Name": "CPUSET_SP_TOP_APP", 426 "Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ] 427 }, 428 { 429 "Name": "CPUSET_SP_SYSTEM", 430 "Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ] 431 }, 432 { 433 "Name": "CPUSET_SP_RESTRICTED", 434 "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ] 435 } 436 ] 437} 438