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

Issue 2855943003: Reduce the in-memory blob storgae limit on Android (Closed)

Created:
3 years, 7 months ago by ssid
Modified:
3 years, 7 months ago
Reviewers:
jsbell, dmurph
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce the in-memory blob storgae limit on Android BUG=715859 Review-Url: https://codereview.chromium.org/2855943003 Cr-Commit-Position: refs/heads/master@{#469550} Committed: https://chromium.googlesource.com/chromium/src/+/81a539c78aaf463a2aeb90c10366e586f6d85ab5

Patch Set 1 #

Patch Set 2 : Make disk limt 6% #

Total comments: 1

Patch Set 3 : Prevent overflow. #

Total comments: 2

Patch Set 4 : Use page size 2.5MB #

Patch Set 5 : Fix IndexedDBBrowserTest. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -68 lines) Patch
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 3 comments Download
M content/test/data/indexeddb/blobs_use_quota.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D content/test/data/indexeddb/write_20mb_blob.html View 1 2 3 4 1 chunk +0 lines, -48 lines 0 comments Download
A + content/test/data/indexeddb/write_4mb_blob.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M storage/browser/blob/README.md View 1 3 chunks +11 lines, -11 lines 0 comments Download
M storage/browser/blob/blob_memory_controller.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M storage/common/blob_storage/blob_storage_constants.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 40 (18 generated)
ssid
+Daniel, wdyt?
3 years, 7 months ago (2017-05-02 21:32:22 UTC) #2
dmurph
On 2017/05/02 21:32:22, ssid wrote: > +Daniel, wdyt? One of the things that guided us ...
3 years, 7 months ago (2017-05-02 22:02:20 UTC) #3
dmurph
https://codereview.chromium.org/2855943003/diff/40001/storage/browser/blob/blob_memory_controller.cc File storage/browser/blob/blob_memory_controller.cc (right): https://codereview.chromium.org/2855943003/diff/40001/storage/browser/blob/blob_memory_controller.cc#newcode87 storage/browser/blob/blob_memory_controller.cc:87: static_cast<uint64_t>(6 * disk_size / 1000ll); How about doing "3ll ...
3 years, 7 months ago (2017-05-03 21:58:19 UTC) #5
dmurph
https://codereview.chromium.org/2855943003/diff/60001/storage/common/blob_storage/blob_storage_constants.h File storage/common/blob_storage/blob_storage_constants.h (right): https://codereview.chromium.org/2855943003/diff/60001/storage/common/blob_storage/blob_storage_constants.h#newcode25 storage/common/blob_storage/blob_storage_constants.h:25: constexpr uint64_t kDefaultMinPageFileSize = 1024u * 1024; Instead of ...
3 years, 7 months ago (2017-05-03 23:51:57 UTC) #8
dmurph
https://codereview.chromium.org/2855943003/diff/60001/storage/common/blob_storage/blob_storage_constants.h File storage/common/blob_storage/blob_storage_constants.h (right): https://codereview.chromium.org/2855943003/diff/60001/storage/common/blob_storage/blob_storage_constants.h#newcode25 storage/common/blob_storage/blob_storage_constants.h:25: constexpr uint64_t kDefaultMinPageFileSize = 1024u * 1024; On 2017/05/03 ...
3 years, 7 months ago (2017-05-03 23:53:14 UTC) #9
dmurph
lgtm
3 years, 7 months ago (2017-05-03 23:54:49 UTC) #10
ssid
On 2017/05/03 23:54:49, dmurph wrote: > lgtm Since i changed the value of min_page_file_size, CacheStorageBlobToDiskCacheTest.StreamLarge ...
3 years, 7 months ago (2017-05-04 00:30:00 UTC) #11
dmurph
On 2017/05/04 00:30:00, ssid wrote: > On 2017/05/03 23:54:49, dmurph wrote: > > lgtm > ...
3 years, 7 months ago (2017-05-04 00:44:02 UTC) #12
ssid
Some thoughts: scoped_async_task_scheduler_ is reset here: https://cs.chromium.org/chromium/src/content/public/test/test_browser_thread_bundle.cc?type=cs&l=59 The runloop here tries to run a callback: ...
3 years, 7 months ago (2017-05-04 00:46:53 UTC) #13
ssid
Sorry I was not able to post the symbolized stack trace because of length of ...
3 years, 7 months ago (2017-05-04 00:49:51 UTC) #14
ssid
> ...might be easier to make the memory > 2MB (so 2%) True. But I ...
3 years, 7 months ago (2017-05-04 00:51:37 UTC) #15
dmurph
On 2017/05/04 00:51:37, ssid wrote: > > ...might be easier to make the memory > ...
3 years, 7 months ago (2017-05-04 01:06:39 UTC) #16
ssid
On 2017/05/04 01:06:39, dmurph wrote: > On 2017/05/04 00:51:37, ssid wrote: > > > ...might ...
3 years, 7 months ago (2017-05-04 01:13:16 UTC) #17
ssid
Thanks for your help!
3 years, 7 months ago (2017-05-04 01:16:06 UTC) #20
dmurph
On 2017/05/04 01:16:06, ssid wrote: > Thanks for your help! Also, about 4 months ago ...
3 years, 7 months ago (2017-05-04 21:24:54 UTC) #23
ssid
More browsertest failures and I fixed the test by lowering the size of blobs that ...
3 years, 7 months ago (2017-05-04 21:39:16 UTC) #24
ssid
+jsbell for the indexed_db test fixes.
3 years, 7 months ago (2017-05-04 22:01:26 UTC) #29
jsbell
lgtm with a possible tweak, but fine as is https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexed_db/indexed_db_browsertest.cc File content/browser/indexed_db/indexed_db_browsertest.cc (right): https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexed_db/indexed_db_browsertest.cc#newcode492 content/browser/indexed_db/indexed_db_browsertest.cc:492: ...
3 years, 7 months ago (2017-05-04 22:11:37 UTC) #30
ssid
https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexed_db/indexed_db_browsertest.cc File content/browser/indexed_db/indexed_db_browsertest.cc (right): https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexed_db/indexed_db_browsertest.cc#newcode492 content/browser/indexed_db/indexed_db_browsertest.cc:492: SimpleTest(GetTestUrl("indexeddb", "write_4mb_blob.html")); On 2017/05/04 22:11:37, jsbell wrote: > If ...
3 years, 7 months ago (2017-05-05 00:34:24 UTC) #33
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/2855943003/120001
3 years, 7 months ago (2017-05-05 00:35:01 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:120001) as https://chromium.googlesource.com/chromium/src/+/81a539c78aaf463a2aeb90c10366e586f6d85ab5
3 years, 7 months ago (2017-05-05 00:42:28 UTC) #39
jsbell
3 years, 7 months ago (2017-05-05 18:53:05 UTC) #40
Message was sent while issue was closed.
https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexe...
File content/browser/indexed_db/indexed_db_browsertest.cc (right):

https://codereview.chromium.org/2855943003/diff/120001/content/browser/indexe...
content/browser/indexed_db/indexed_db_browsertest.cc:492:
SimpleTest(GetTestUrl("indexeddb", "write_4mb_blob.html"));
On 2017/05/05 00:34:23, ssid wrote:
> On 2017/05/04 22:11:37, jsbell wrote:
> > If you wanted to get fancy we could make this parameterized:
> > write_blob_mbs.html#4
> > 
> > ... and then in the script use Number(document.location.hash.substring(1)) *
> > 1024 * 1024
> 
> hm actually changing the file name causes the test unable to read the file.
> (content::GetTestFilePath does not split the name).

huh. It looked like we used that pattern elsewhere but maybe it requires more
refactoring.

Anyway, glad this is in, we can tweak it later.

\o/

Powered by Google App Engine
This is Rietveld 408576698