Tune Indexed DB cache size for very small storage partitions |
||
Issue descriptionSome devices, specifically Chromecast, have very small storage partitions. Some pages fail to save data to IDB's due to the limited storage space. This can be ameliorated by reducing the write buffer size (options: write_buffer_size) which also becomes the max log file size. Doing so will result in more frequent compactions (affecting performance), but improving the likelihood of successful compactions.
,
Aug 17 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/edb3be685d259c8a42dfaeb1b87f7a32707dc28a commit edb3be685d259c8a42dfaeb1b87f7a32707dc28a Author: cmumford <cmumford@chromium.org> Date: Wed Aug 17 22:34:09 2016 IndexedDB: Limit the size of a leveldb write buffer to minimize disk space. IndexedDB uses leveldb's default write buffer size of 4MB. This is usually sufficient, but for space constrained devices, like Chromecast, this can limit the amount of usable space because compaction requires double the table space plus the logfile. Limiting the write buffer size reduces the logfile size. BUG= 637847 Review-Url: https://codereview.chromium.org/2243363002 Cr-Commit-Position: refs/heads/master@{#412671} [modify] https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a/content/browser/indexed_db/leveldb/leveldb_database.cc [modify] https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a/third_party/leveldatabase/env_chromium.cc [modify] https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a/third_party/leveldatabase/env_chromium.h [modify] https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a/third_party/leveldatabase/env_chromium_unittest.cc
,
Aug 19 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by halliwell@chromium.org
, Aug 15 2016