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

Issue 2807433002: SimpleCache: synchronously reply on reads from idle if data is in memory.

Created:
3 years, 8 months ago by Maks Orlovich
Modified:
3 years, 2 months ago
Reviewers:
pasko
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

This includes stream 0 all the time, and stream 1 if available from a prefetch. This change does regress some zero-length-read type cases from non-idle being sync to reduce code duplication, which may be worth reconsidering and undoing. This also includes a microbenchmark to measure some of our bookkeeping overhead, which is also improved a bit by this, but it's not the sort of numbers (order of half a microseconds) to get overly excited about. BUG=293014

Patch Set 1 #

Patch Set 2 : git cl try #

Patch Set 3 : Benchmark for simple reads; meant to help evaluate any changes to early dispatch logic in general. #

Total comments: 1

Patch Set 4 : Experimental: upload a bit of an alternative approach for discussion #

Total comments: 2

Patch Set 5 : Resurrect it, and update for the preread changes. #

Patch Set 6 : A bunch of refactors and cleanups. A buggy bunch I want to read a combined diff for to help spot th… #

Patch Set 7 : Fix a couple of silly mistakes, restore some comments at proper spots #

Patch Set 8 : Use the proper limit for the barrier. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -83 lines) Patch
M net/disk_cache/disk_cache_perftest.cc View 1 2 3 4 5 6 7 3 chunks +85 lines, -0 lines 0 comments Download
M net/disk_cache/entry_unittest.cc View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 2 chunks +13 lines, -12 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 6 8 chunks +57 lines, -64 lines 0 comments Download

Messages

Total messages: 50 (30 generated)
Maks Orlovich
On 2017/04/06 19:37:14, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
3 years, 8 months ago (2017-04-06 20:22:47 UTC) #5
Maks Orlovich
> > Right. Needs some of the range changing that's only really done in > ...
3 years, 8 months ago (2017-04-06 20:47:23 UTC) #8
Maks Orlovich
Come to think of it, might also not produce one netlog entry, and change the ...
3 years, 8 months ago (2017-04-07 15:33:30 UTC) #17
pasko
Avoiding a delay from a posttask sounds handy, and it happens every time the entry ...
3 years, 8 months ago (2017-04-07 16:13:39 UTC) #18
Maks Orlovich
On 2017/04/07 16:13:39, pasko wrote: > Avoiding a delay from a posttask sounds handy, and ...
3 years, 8 months ago (2017-04-07 16:35:17 UTC) #19
Maks Orlovich
A side thought: it came up during the talk that HttpCache* might start accessing headers ...
3 years, 8 months ago (2017-04-07 19:21:50 UTC) #22
pasko
On 2017/04/07 19:21:50, Maks Orlovich wrote: > A side thought: it came up during the ...
3 years, 8 months ago (2017-04-12 14:23:57 UTC) #27
Maks Orlovich
> I can only see something breaking if it writes the new version of headers ...
3 years, 8 months ago (2017-04-12 14:38:41 UTC) #28
Maks Orlovich
https://codereview.chromium.org/2807433002/diff/60001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://codereview.chromium.org/2807433002/diff/60001/net/disk_cache/simple/simple_entry_impl.cc#oldcode837 net/disk_cache/simple/simple_entry_impl.cc:837: RecordReadResult(cache_type_, READ_RESULT_BAD_STATE); I should probably double-check the condition for ...
3 years, 8 months ago (2017-04-12 14:55:49 UTC) #29
Maks Orlovich
3 years, 8 months ago (2017-04-12 14:55:55 UTC) #30
pasko
On 2017/04/12 14:38:41, Maks Orlovich wrote: > > I can only see something breaking if ...
3 years, 8 months ago (2017-04-12 15:15:13 UTC) #31
Maks Orlovich
> Since the all entry ops are queued, this can only happen after a browser ...
3 years, 8 months ago (2017-04-12 15:28:05 UTC) #32
pasko
On 2017/04/12 15:28:05, Maks Orlovich wrote: > > Since the all entry ops are queued, ...
3 years, 8 months ago (2017-04-12 16:12:40 UTC) #33
pasko
https://codereview.chromium.org/2807433002/diff/60001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://codereview.chromium.org/2807433002/diff/60001/net/disk_cache/simple/simple_entry_impl.cc#oldcode837 net/disk_cache/simple/simple_entry_impl.cc:837: RecordReadResult(cache_type_, READ_RESULT_BAD_STATE); On 2017/04/12 14:55:49, Maks Orlovich wrote: > ...
3 years, 8 months ago (2017-04-12 16:12:51 UTC) #34
Maks Orlovich
> I am lost a little now. I thought we are talking about a potential ...
3 years, 8 months ago (2017-04-12 16:49:54 UTC) #35
pasko
On 2017/04/12 16:49:54, Maks Orlovich wrote: > > OK, I see no issues with the ...
3 years, 8 months ago (2017-04-13 12:25:47 UTC) #36
Maks Orlovich
> My threshold of useful CPU time savings on IO thread is 5ms for a ...
3 years, 8 months ago (2017-04-13 13:16:26 UTC) #37
pasko
On 2017/04/13 13:16:26, Maks Orlovich wrote: > > My threshold of useful CPU time savings ...
3 years, 8 months ago (2017-04-13 13:58:20 UTC) #38
Maks Orlovich
FYI: Josh expressed interest in having reads return synchronously when discussing the prefetch change, so ...
3 years, 3 months ago (2017-09-22 14:51:11 UTC) #43
Maks Orlovich
3 years, 2 months ago (2017-09-25 17:00:11 UTC) #50
On 2017/09/22 14:51:11, Maks Orlovich wrote:
> FYI: Josh expressed interest in having reads return synchronously when
> discussing the prefetch change, so I'll be reviving this, but looks like it'll
> need to be re-uploaded to the new review system.

Moved to:
https://chromium-review.googlesource.com/#/c/chromium/src/+/682139

Powered by Google App Engine
This is Rietveld 408576698