New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 637847 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Tune Indexed DB cache size for very small storage partitions

Project Member Reported by cmumford@chromium.org, Aug 15 2016

Issue description

Some 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.
 
Cc: halliwell@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, 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

Status: Fixed (was: Assigned)

Sign in to add a comment