sysresmonitoring/oommonitor/data/oomconfig.xml
branchRCL_3
changeset 1 0fdb7f6b0309
child 7 fc3225a0ab43
equal deleted inserted replaced
0:2e3d3ce01487 1:0fdb7f6b0309
       
     1 <!--
       
     2  Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  All rights reserved.
       
     4  This component and the accompanying materials are made available
       
     5  under the terms of the License "Eclipse Public License v1.0"
       
     6  which accompanies this distribution, and is available
       
     7  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 
       
     9  Initial Contributors:
       
    10  Nokia Corporation - initial contribution.
       
    11 
       
    12  Contributors:
       
    13 
       
    14  Description:
       
    15 
       
    16 -->
       
    17 
       
    18 
       
    19 <!-- This is the configuration file for the new OOM Monitor. This configuration file
       
    20 defines an OOM policy where RAM is released in the following order.
       
    21 
       
    22 1. Empty server caches (skin server cache, icon server cache, MDS cache, TFX server cache)
       
    23 2. Close applications that have not been used for more than 12 hours (including Browser and high priority applications)
       
    24 3. If Browser is in the background, empty Browser cache and close unused windows 
       
    25 4. Close always-on applications in the following order: Clock, Calendar, Messaging,  Contacts, Logs, Camera
       
    26 5. Close applications that have not been used for more than 15 minutes (including Browser but excluding high priority applications)
       
    27 6. Close Matrix UI if it has not been used for more than 15 seconds and continue closing WRT widgets immediately.
       
    28 7. Close WRT widgets
       
    29 8. Close other background applications that have been used within 15 minutes except Browser and high priority applications
       
    30 9. Close high priority applications
       
    31 10. If Browser is in the foreground, empty Browser cache and close unused windows 
       
    32 11. Close Browser in the background when it has been used within 15 minutes
       
    33 -->
       
    34 <oom_config>
       
    35 
       
    36 <!-- 	Low RAM and good RAM thresholds are defined here in kilobytes.
       
    37 	The max_app_close_batch indicates how many applications can be closed in parallel.
       
    38 	The value 1 means that applications are not closed in parallel.
       
    39 	default_wait_after_plugin defines how long is waited (in milliseconds) after
       
    40 	an OOM plugin is called and before the free RAM is checked to determine if more
       
    41 	actions are needed. This value is meaningful only when "check" or "estimate" sync mode is
       
    42 	used with plugins.
       
    43 -->
       
    44 	<global_settings low_ram_threshold="3637" good_ram_threshold="4900" max_app_close_batch="3" default_wait_after_plugin="10" max_app_exit_time="2000">
       
    45 	</global_settings>
       
    46 
       
    47 <!--	Application specific low RAM and good RAM thresholds are defined here. The higher values of
       
    48 the low and good thresholds are defined to avoid OOM errors with these applications when the default
       
    49 threshold values are used.
       
    50 -->
       
    51 	<app_specific_thresholds>
       
    52 		<app uid="10008d39" low_ram_threshold="8637" good_ram_threshold="9900"></app> <!-- Browser -->
       
    53 		<app uid="20001f63" low_ram_threshold="4637" good_ram_threshold="5900"></app> <!-- Maps -->
       
    54 		<app uid="101f857a" low_ram_threshold="5637" good_ram_threshold="6900"></app> <!-- camera -->
       
    55 		<app uid="10282822" low_ram_threshold="5637" good_ram_threshold="6900"></app> <!-- Widget UI -->
       
    56 		<app uid="200009ee" low_ram_threshold="8637" good_ram_threshold="9900"></app> <!-- Photos -->
       
    57 		<app uid="20007b39" low_ram_threshold="10637" good_ram_threshold="11900"></app> <!-- NGage -->
       
    58 	</app_specific_thresholds>
       
    59 
       
    60 <!--	The priority of closing each application is defined here.
       
    61 -->
       
    62 	<app_close_settings>
       
    63 
       
    64 <!--		The uid DEFAULT_APP refers to all applications, which priority is not specifically
       
    65 		defined in the conf file.
       
    66 -->
       
    67 		<close_app uid="DEFAULT_APP" priority="80" sync_mode="check">
       
    68 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
    69 			<app_close_idle_priority idle_time="43200" priority="20"></app_close_idle_priority>
       
    70 		</close_app>
       
    71 <!--		The uid BUSY_APP refers to applications, which have set the OOM priority BUSY
       
    72 		by using the OOM Monitor API SetOomPriority(). The priority NEVER_CLOSE
       
    73 		means that the application is not closed at all.
       
    74 -->
       
    75 		<close_app uid="BUSY_APP" priority="NEVER_CLOSE" sync_mode="check"></close_app>
       
    76 
       
    77 <!--		The uid HIGH_PRIORITY_APP refers to applications, which have set the OOM priority HIGH
       
    78 		by using the OOM Monitor API SetOomPriority().
       
    79 -->
       
    80 		<close_app uid="HIGH_PRIORITY_APP" priority="90" sync_mode="check">
       
    81 			<app_close_idle_priority idle_time="43200" priority="20"></app_close_idle_priority>
       
    82 		</close_app>
       
    83 		<close_app uid="10005903" priority="80" sync_mode="check"> <!-- Clock -->
       
    84 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
    85 			<app_close_idle_priority idle_time="43200" priority="40"></app_close_idle_priority>
       
    86 		</close_app>
       
    87 		<close_app uid="10005901" priority="80" sync_mode="check"> <!-- Calendar -->
       
    88 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
    89 			<app_close_idle_priority idle_time="43200" priority="41"></app_close_idle_priority>
       
    90 		</close_app>
       
    91 		<close_app uid="100058c5" priority="80" sync_mode="check">  <!-- Messaging -->
       
    92 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
    93 			<app_close_idle_priority idle_time="43200" priority="42"></app_close_idle_priority>
       
    94 		</close_app>
       
    95 		<close_app uid="101f4cce" priority="80" sync_mode="check"> <!-- Contacts -->
       
    96 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
    97 			<app_close_idle_priority idle_time="43200" priority="43"></app_close_idle_priority>
       
    98 		</close_app>
       
    99 		<close_app uid="101f4cd5" priority="80" sync_mode="check"> <!-- Logs -->
       
   100 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
   101 			<app_close_idle_priority idle_time="43200" priority="44"></app_close_idle_priority>
       
   102 		</close_app>
       
   103 		<close_app uid="101f857a" priority="80" sync_mode="check"> <!-- Camcorder -->
       
   104 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
   105 			<app_close_idle_priority idle_time="43200" priority="45"></app_close_idle_priority>
       
   106 		</close_app>
       
   107 		<close_app uid="10008d39" priority="110" sync_mode="check"> <!-- Browser -->
       
   108 			<app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority>
       
   109 			<app_close_idle_priority idle_time="43200" priority="20"></app_close_idle_priority>
       
   110 		</close_app>
       
   111 <!--		Widget UI plugin handles the closing of widgets. Widget UI application is not closed.
       
   112 -->
       
   113 		<close_app uid="10282822" priority="NEVER_CLOSE" sync_mode="check"> </close_app> <!-- Widget UI --> 
       
   114 		<close_app uid="101f4cd2" priority="NEVER_CLOSE" sync_mode="continue">
       
   115 			<app_close_idle_priority idle_time="15" priority="60"></app_close_idle_priority>
       
   116 			<foreground_app_priority if_foreground_app_id="10207218" priority="NEVER_CLOSE"></foreground_app_priority> <!-- Fast swap --> 
       
   117 		</close_app> <!-- Matrix UI -->
       
   118 		<close_app uid="10207a89" priority="NEVER_CLOSE" sync_mode="check">
       
   119 			<app_close_idle_priority idle_time="43200" priority="20"></app_close_idle_priority>
       
   120 		</close_app> <!-- Radio -->
       
   121 	</app_close_settings>
       
   122 <!--	The priority of executing each system plugin is defined here.
       
   123 	System plugin is a plugin, which priority is not related to any application.
       
   124 -->
       
   125 	<system_plugin_settings>
       
   126 <!--		The uid DEFAULT_PLUGIN refers to all plugins, which priority is not specificly
       
   127 		defined in the conf file.
       
   128 -->
       
   129 		<system_plugin uid="DEFAULT_PLUGIN" priority="10" sync_mode="continue"></system_plugin>
       
   130 		<system_plugin uid="10207140" priority="10" sync_mode="continue"></system_plugin> <!-- AKNSKINSOOMPLUGIN -->
       
   131 		<system_plugin uid="10281fe6" priority="10" sync_mode="continue"></system_plugin> <!-- AKNICONOOMPLUGIN -->
       
   132 		<system_plugin uid="10282e4f" priority="10" sync_mode="continue"></system_plugin> <!-- TFXSRVOOMPLUGIN -->
       
   133 		<system_plugin uid="2001b2c6" priority="10" sync_mode="continue"></system_plugin> <!-- MDSOOMPLUGIN -->
       
   134 	</system_plugin_settings>
       
   135 <!--	The priority of executing each application plugin is defined here.
       
   136 	Application plugin is a plugin, which priority depends on the target application.
       
   137 	The target application must be defined for each application plugin.
       
   138 	By default all plugins are system plugins unless specifically defined as application
       
   139 	plugin in this section.
       
   140 -->
       
   141 	<app_plugin_settings>
       
   142 		<app_plugin uid="10281f93" target_app_id="10008d39" priority="30" wait="100" sync_mode="check"> <!-- WEBENGINEMEMORYPLUGIN, target app Browser -->
       
   143 			<plugin_foreground_app_priority target_app_id="10008d39" priority="100"></plugin_foreground_app_priority>
       
   144 		</app_plugin>
       
   145 
       
   146 <!--	Widget memory plugin has very long plugin wait time because we don't want to unnecessarily
       
   147 	close any other applications after closing it. We call Widget memory plugin only if
       
   148 	Widget UI application is running in the background.
       
   149 -->
       
   150 		<app_plugin uid="10282855" target_app_id="10282822" priority="70" wait="3500" sync_mode="check" call_if_target_app_not_running="false"> <!-- WIDGETMEMORYPLUGIN, target app Widget UI -->
       
   151 			<plugin_foreground_app_priority target_app_id="10282822" priority="NEVER_CLOSE"></plugin_foreground_app_priority> <!-- target app Widget UI -->
       
   152 		</app_plugin>
       
   153 	</app_plugin_settings>
       
   154 </oom_config>