Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Issue 2243363002: IndexedDB: Limit the size of a leveldb write buffer to minimize disk space. (Closed)

Created:
4 years, 4 months ago by cmumford
Modified:
4 years, 4 months ago
Reviewers:
michaeln
CC:
chromium-reviews, jam, jsbell+idb_chromium.org, darin-cc_chromium.org, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a Cr-Commit-Position: refs/heads/master@{#412671}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Eliminated overloaded WriteBufferSize. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -0 lines) Patch
M content/browser/indexed_db/leveldb/leveldb_database.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium_unittest.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
cmumford
4 years, 4 months ago (2016-08-15 18:59:36 UTC) #2
cmumford
Switching reviewers to michaeln.
4 years, 4 months ago (2016-08-15 20:28:28 UTC) #4
michaeln
lgtm! https://codereview.chromium.org/2243363002/diff/1/third_party/leveldatabase/env_chromium_unittest.cc File third_party/leveldatabase/env_chromium_unittest.cc (right): https://codereview.chromium.org/2243363002/diff/1/third_party/leveldatabase/env_chromium_unittest.cc#newcode30 third_party/leveldatabase/env_chromium_unittest.cc:30: extern size_t WriteBufferSize(int64_t disk_space); Is including env_chromium.h not ...
4 years, 4 months ago (2016-08-16 00:28:06 UTC) #5
cmumford
https://codereview.chromium.org/2243363002/diff/1/third_party/leveldatabase/env_chromium_unittest.cc File third_party/leveldatabase/env_chromium_unittest.cc (right): https://codereview.chromium.org/2243363002/diff/1/third_party/leveldatabase/env_chromium_unittest.cc#newcode30 third_party/leveldatabase/env_chromium_unittest.cc:30: extern size_t WriteBufferSize(int64_t disk_space); On 2016/08/16 00:28:05, michaeln wrote: ...
4 years, 4 months ago (2016-08-16 00:54:26 UTC) #6
michaeln
oh, the hidden overload is sneaky https://codereview.chromium.org/2243363002/diff/1/content/browser/indexed_db/leveldb/leveldb_database.cc File content/browser/indexed_db/leveldb/leveldb_database.cc (right): https://codereview.chromium.org/2243363002/diff/1/content/browser/indexed_db/leveldb/leveldb_database.cc#newcode129 content/browser/indexed_db/leveldb/leveldb_database.cc:129: options.write_buffer_size = leveldb_env::WriteBufferSize(path); ...
4 years, 4 months ago (2016-08-16 19:41:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2243363002/20001
4 years, 4 months ago (2016-08-17 21:54:54 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 22:34:42 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 22:38:02 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/edb3be685d259c8a42dfaeb1b87f7a32707dc28a
Cr-Commit-Position: refs/heads/master@{#412671}

Powered by Google App Engine
This is Rietveld 408576698