summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-03-02 11:15:28 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-02 11:15:28 -0800
commitdb3c6b8c0d3cde8323f962bb285d7735f698a363 (patch)
tree8d8ca4c022e1c8726fe0e51f69b0dc17f38bd0b1
parentdddfc119e2aeb1927f50533e11ac375fc9b2a3b9 (diff)
parentb7f2736e789bb6f3a09970bf924c56b5bc44b69a (diff)
downloadframeworks_base-db3c6b8c0d3cde8323f962bb285d7735f698a363.zip
frameworks_base-db3c6b8c0d3cde8323f962bb285d7735f698a363.tar.gz
frameworks_base-db3c6b8c0d3cde8323f962bb285d7735f698a363.tar.bz2
Merge "Adjust WAL checkpoint interval."
-rwxr-xr-xcore/res/res/values/config.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 8e5b509..bd0e798 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -665,9 +665,15 @@
Choices are: FULL, NORMAL, OFF. -->
<string name="db_sync_mode">FULL</string>
- <!-- The Write-Ahead Log auto-checkpoint interval in database pages.
- The log is checkpointed automatically whenever it exceeds this many pages. -->
- <integer name="db_wal_autocheckpoint">1</integer>
+ <!-- The Write-Ahead Log auto-checkpoint interval in database pages (typically 1 to 4KB).
+ The log is checkpointed automatically whenever it exceeds this many pages.
+ When a database is reopened, its journal mode is set back to the default
+ journal mode, which may cause a checkpoint operation to occur. Checkpoints
+ can also happen at other times when transactions are committed.
+ The bigger the WAL file, the longer a checkpoint operation takes, so we try
+ to keep the WAL file relatively small to avoid long delays.
+ The size of the WAL file is also constrained by 'db_journal_size_limit'. -->
+ <integer name="db_wal_autocheckpoint">100</integer>
<!-- Max space (in MB) allocated to DownloadManager to store the downloaded
files if they are to be stored in DownloadManager's data dir,