|
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" swap_usage_monitored="true" low_swap_threshold="15000" good_swap_threshold="25000" 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 |
|
112 <!--CWRTWidget.exe --> |
|
113 <close_app uid="200267C0" priority="100" sync_mode="check"> <!-- Ovi Widget UI --> |
|
114 <app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority> |
|
115 <app_close_idle_priority idle_time="43200" priority="30"></app_close_idle_priority> |
|
116 </close_app> |
|
117 <!--CWRTWidget.exe End --> |
|
118 <!--CWRTWidget2.exe --> |
|
119 <close_app uid="200267D6" priority="80" sync_mode="check"> |
|
120 <app_close_idle_priority idle_time="900" priority="50"></app_close_idle_priority> |
|
121 <app_close_idle_priority idle_time="43200" priority="30"></app_close_idle_priority> |
|
122 </close_app> |
|
123 <!--CWRTWidget2.exe End --> |
|
124 <!-- Widget UI plugin handles the closing of widgets. Widget UI application is not closed. |
|
125 --> |
|
126 <close_app uid="10282822" priority="NEVER_CLOSE" sync_mode="check"> </close_app> <!-- Widget UI --> |
|
127 <close_app uid="101f4cd2" priority="NEVER_CLOSE" sync_mode="continue"> |
|
128 <app_close_idle_priority idle_time="15" priority="60"></app_close_idle_priority> |
|
129 <foreground_app_priority if_foreground_app_id="10207218" priority="NEVER_CLOSE"></foreground_app_priority> <!-- Fast swap --> |
|
130 </close_app> <!-- Matrix UI --> |
|
131 <close_app uid="10207a89" priority="NEVER_CLOSE" sync_mode="check"> |
|
132 <app_close_idle_priority idle_time="43200" priority="20"></app_close_idle_priority> |
|
133 </close_app> <!-- Radio --> |
|
134 </app_close_settings> |
|
135 <!-- The priority of executing each system plugin is defined here. |
|
136 System plugin is a plugin, which priority is not related to any application. |
|
137 --> |
|
138 <system_plugin_settings> |
|
139 <!-- The uid DEFAULT_PLUGIN refers to all plugins, which priority is not specificly |
|
140 defined in the conf file. |
|
141 --> |
|
142 <system_plugin uid="DEFAULT_PLUGIN" priority="10" sync_mode="continue"></system_plugin> |
|
143 <system_plugin uid="10207140" priority="10" sync_mode="continue"></system_plugin> <!-- AKNSKINSOOMPLUGIN --> |
|
144 <system_plugin uid="10281fe6" priority="10" sync_mode="continue"></system_plugin> <!-- AKNICONOOMPLUGIN --> |
|
145 <system_plugin uid="10282e4f" priority="10" sync_mode="continue"></system_plugin> <!-- TFXSRVOOMPLUGIN --> |
|
146 <system_plugin uid="2001b2c6" priority="10" sync_mode="continue"></system_plugin> <!-- MDSOOMPLUGIN --> |
|
147 </system_plugin_settings> |
|
148 <!-- The priority of executing each application plugin is defined here. |
|
149 Application plugin is a plugin, which priority depends on the target application. |
|
150 The target application must be defined for each application plugin. |
|
151 By default all plugins are system plugins unless specifically defined as application |
|
152 plugin in this section. |
|
153 --> |
|
154 <app_plugin_settings> |
|
155 <app_plugin uid="10281f93" target_app_id="10008d39" priority="30" wait="100" sync_mode="check"> <!-- WEBENGINEMEMORYPLUGIN, target app Browser --> |
|
156 <plugin_foreground_app_priority target_app_id="10008d39" priority="100"></plugin_foreground_app_priority> |
|
157 </app_plugin> |
|
158 |
|
159 <!-- Widget memory plugin has very long plugin wait time because we don't want to unnecessarily |
|
160 close any other applications after closing it. We call Widget memory plugin only if |
|
161 Widget UI application is running in the background. |
|
162 --> |
|
163 <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 --> |
|
164 <plugin_foreground_app_priority target_app_id="10282822" priority="NEVER_CLOSE"></plugin_foreground_app_priority> <!-- target app Widget UI --> |
|
165 </app_plugin> |
|
166 <!--CWRTWidget.exe - Plugin --> |
|
167 |
|
168 <app_plugin uid="200267D3" target_app_id="200267C0" priority="70" wait="3500" sync_mode="check" call_if_target_app_not_running="false"> |
|
169 <plugin_foreground_app_priority target_app_id="200267C0" priority="NEVER_CLOSE"></plugin_foreground_app_priority> |
|
170 </app_plugin> |
|
171 |
|
172 <!--CWRTWidget.exe - Plugin End--> |
|
173 <!--CWRTWidget2.exe - Plugin --> |
|
174 |
|
175 <app_plugin uid="200267DB" target_app_id="200267D6" priority="50" wait="3500" sync_mode="check" call_if_target_app_not_running="false"> |
|
176 <plugin_foreground_app_priority target_app_id="200267D6" priority="NEVER_CLOSE"></plugin_foreground_app_priority> |
|
177 </app_plugin> |
|
178 |
|
179 <!--CWRTWidget2.exe - Plugin End--> |
|
180 </app_plugin_settings> |
|
181 </oom_config> |