1<?xml version='1.0' encoding='utf-8'?> 2<!-- Copyright (C) 2021 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<resourceOveruseConfiguration version="1.0"> 18 <componentType> SYSTEM </componentType> 19 <!-- List of safe to kill system packages. --> 20 <safeToKillPackages> 21 <package> shared:com.google.android.car.uid.kitchensink </package> 22 </safeToKillPackages> 23 24 <ioOveruseConfiguration> 25 <!-- Default thresholds in MiB for all system packages that don’t have package specific 26 thresholds or app category specific thresholds. --> 27 <componentLevelThresholds> 28 <state id="foreground_mode"> 3072 </state> 29 <state id="background_mode"> 2048 </state> 30 <state id="garage_mode"> 4096 </state> 31 </componentLevelThresholds> 32 33 <!-- Package specific thresholds. --> 34 <!-- Kitchensink app tests package warning/killing on overuse and requires less threshold so it 35 can test the implementation with less amount of writes. However, it shouldn't be killed 36 often when running other tests.--> 37 <packageSpecificThresholds> 38 <perStateThreshold id="shared:com.google.android.car.uid.kitchensink"> 39 <state id="foreground_mode"> 512 </state> 40 <state id="background_mode"> 512 </state> 41 <state id="garage_mode"> 512 </state> 42 </perStateThreshold> 43 </packageSpecificThresholds> 44 45 <!-- List of system-wide disk I/O overuse alert thresholds. --> 46 <systemWideThresholds> 47 <!-- 1GiB written in 30 seconds --> 48 <alertThreshold> 49 <param id="duration_seconds"> 30 </param> 50 <param id="written_bytes_per_second"> 35791394 </param> 51 </alertThreshold> 52 <!-- 500MiB written in 10 seconds --> 53 <alertThreshold> 54 <param id="duration_seconds"> 10 </param> 55 <param id="written_bytes_per_second"> 52428800 </param> 56 </alertThreshold> 57 </systemWideThresholds> 58 </ioOveruseConfiguration> 59</resourceOveruseConfiguration> 60