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

Issue 206453003: Move Preload() code to MappedFile (Closed)

Created:
6 years, 9 months ago by Daniel Bratell
Modified:
6 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, Jens Widell, fs
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move Preload() code to MappedFile To heat up the file system caches we load the disk cache index into RAM when starting the browser. To make it more obvious what we're doing, move that to a method named Preload(). BUG=None R=rvargas@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260844

Patch Set 1 #

Patch Set 2 : New attempt #

Total comments: 3

Patch Set 3 : Rebased #

Patch Set 4 : Just keeping the code cleanup. #

Total comments: 1

Patch Set 5 : Reworded comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M net/disk_cache/blockfile/backend_impl.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M net/disk_cache/blockfile/block_files.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/disk_cache/blockfile/mapped_file.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/blockfile/mapped_file.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Daniel Bratell
Looking at memory usage I stumbled upon some code in the disk cache that read ...
6 years, 9 months ago (2014-03-20 14:48:43 UTC) #1
gavinp
Daniel, This upload seems broken (click on the view side by side links). Could you ...
6 years, 9 months ago (2014-03-20 16:11:50 UTC) #2
Daniel Bratell
I will try. I kept getting strange errors every upload. Then I thought they had ...
6 years, 9 months ago (2014-03-20 16:19:11 UTC) #3
Daniel Bratell
On 2014/03/20 16:19:11, Daniel Bratell wrote: > I will try. I kept getting strange errors ...
6 years, 9 months ago (2014-03-20 16:24:59 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/206453003/diff/20001/net/disk_cache/blockfile/mapped_file.cc File net/disk_cache/blockfile/mapped_file.cc (right): https://codereview.chromium.org/206453003/diff/20001/net/disk_cache/blockfile/mapped_file.cc#newcode40 net/disk_cache/blockfile/mapped_file.cc:40: static const size_t kPreloadBufferSize = 16384; The files have ...
6 years, 9 months ago (2014-03-20 19:05:18 UTC) #5
gavinp
Please update the description to say "BUG=None" if you haven't created a tracking bug for ...
6 years, 9 months ago (2014-03-21 10:20:24 UTC) #6
gavinp
Whoops, I said the four letter word in my last comment. I'm going to write ...
6 years, 9 months ago (2014-03-21 10:21:11 UTC) #7
gavinp
On 2014/03/21 10:21:11, gavinp wrote: > Whoops, I said the four letter word in my ...
6 years, 9 months ago (2014-03-21 10:21:20 UTC) #8
gavinp
OK not lgtm is the magic phrase.
6 years, 9 months ago (2014-03-21 10:21:43 UTC) #9
Daniel Bratell
On 2014/03/20 19:05:18, rvargas wrote: > https://codereview.chromium.org/206453003/diff/20001/net/disk_cache/blockfile/mapped_file.cc > File net/disk_cache/blockfile/mapped_file.cc (right): > > https://codereview.chromium.org/206453003/diff/20001/net/disk_cache/blockfile/mapped_file.cc#newcode40 > ...
6 years, 9 months ago (2014-03-21 10:22:41 UTC) #10
rvargas (doing something else)
On 2014/03/21 10:22:41, Daniel Bratell wrote: > On 2014/03/20 19:05:18, rvargas wrote: > > > ...
6 years, 9 months ago (2014-03-21 18:06:58 UTC) #11
Daniel Bratell
Removed the buffer shrinkage so left is just the code cleanup. Worth doing? Please take ...
6 years, 8 months ago (2014-03-31 16:17:02 UTC) #12
rvargas (doing something else)
lgtm https://codereview.chromium.org/206453003/diff/60001/net/disk_cache/blockfile/mapped_file.h File net/disk_cache/blockfile/mapped_file.h (right): https://codereview.chromium.org/206453003/diff/60001/net/disk_cache/blockfile/mapped_file.h#newcode49 net/disk_cache/blockfile/mapped_file.h:49: // Heats up the file cache and make ...
6 years, 8 months ago (2014-03-31 22:50:11 UTC) #13
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 8 months ago (2014-04-01 08:57:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/206453003/80001
6 years, 8 months ago (2014-04-01 08:59:06 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 11:37:17 UTC) #16
Message was sent while issue was closed.
Change committed as 260844

Powered by Google App Engine
This is Rietveld 408576698