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

Issue 2682163002: [ResourceScheduler] Yield after starting several requests (Closed)

Created:
3 years, 10 months ago by jkarlin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ResourceScheduler] Yield after starting several requests This CL periodically yields the ResourceScheduler after starting several requests. This gives existing IO tasks (such as active network requests) a chance to run between network starts. This should result in less jank and more interleaved network request tasks. BUG=655585 Review-Url: https://codereview.chromium.org/2682163002 Cr-Commit-Position: refs/heads/master@{#449895} Committed: https://chromium.googlesource.com/chromium/src/+/1a8d5f3805dbae5242cf7dce14df3807344dae37

Patch Set 1 #

Patch Set 2 : Default to 5 #

Patch Set 3 : Nits #

Patch Set 4 : New trigger #

Patch Set 5 : Bug fixes #

Patch Set 6 : Nits #

Patch Set 7 : Test nits #

Total comments: 15

Patch Set 8 : Address comments from PS7 #

Total comments: 2

Patch Set 9 : Fix variable name #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -4 lines) Patch
M content/browser/loader/resource_scheduler.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 7 8 11 chunks +77 lines, -4 lines 1 comment Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 4 chunks +89 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 60 (38 generated)
jkarlin
csharrison@ PTAL at everything, thanks!
3 years, 10 months ago (2017-02-08 17:29:58 UTC) #3
Charlie Harrison
Can you make it so tests use this mode by default?
3 years, 10 months ago (2017-02-08 18:10:42 UTC) #9
jkarlin
On 2017/02/08 18:10:42, Charlie Harrison wrote: > Can you make it so tests use this ...
3 years, 10 months ago (2017-02-09 18:27:34 UTC) #27
Charlie Harrison
Generally looks good. I'm thinking of a way to rename "ResumeAfterYielding" to be a bit ...
3 years, 10 months ago (2017-02-09 19:08:05 UTC) #28
jkarlin
Thanks! PTAL. https://codereview.chromium.org/2682163002/diff/200001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2682163002/diff/200001/content/browser/loader/resource_scheduler.cc#newcode75 content/browser/loader/resource_scheduler.cc:75: START_YIELDED, On 2017/02/09 19:08:04, Charlie Harrison wrote: ...
3 years, 10 months ago (2017-02-09 19:48:13 UTC) #32
Charlie Harrison
+kinuko FYI, this is an approach we are trying to get rid of some task ...
3 years, 10 months ago (2017-02-09 20:43:29 UTC) #34
jkarlin
isherman@chromium.org: Please review changes in testing/variations/ Thanks!
3 years, 10 months ago (2017-02-09 20:49:02 UTC) #36
jkarlin
Thanks! https://codereview.chromium.org/2682163002/diff/220001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2682163002/diff/220001/content/browser/loader/resource_scheduler.cc#newcode762 content/browser/loader/resource_scheduler.cc:762: bool yieldedRequests = On 2017/02/09 20:43:29, Charlie Harrison ...
3 years, 10 months ago (2017-02-09 20:51:21 UTC) #39
jkarlin
Thanks!
3 years, 10 months ago (2017-02-09 20:51:22 UTC) #40
kinuko
On 2017/02/09 20:43:29, Charlie Harrison wrote: > +kinuko FYI, this is an approach we are ...
3 years, 10 months ago (2017-02-10 01:01:24 UTC) #43
Ilya Sherman
testing/variations lgtm
3 years, 10 months ago (2017-02-10 19:50:56 UTC) #44
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/2682163002/240001
3 years, 10 months ago (2017-02-12 19:11:43 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:240001) as https://chromium.googlesource.com/chromium/src/+/1a8d5f3805dbae5242cf7dce14df3807344dae37
3 years, 10 months ago (2017-02-12 20:14:09 UTC) #50
Sergiy Byelozyorov
On 2017/02/12 20:14:09, commit-bot: I haz the power wrote: > Committed patchset #9 (id:240001) as ...
3 years, 10 months ago (2017-02-13 14:55:19 UTC) #51
Sergiy Byelozyorov
On 2017/02/13 14:55:19, Sergiy Byelozyorov wrote: > On 2017/02/12 20:14:09, commit-bot: I haz the power ...
3 years, 10 months ago (2017-02-13 15:55:01 UTC) #52
jkarlin
On 2017/02/13 15:55:01, Sergiy Byelozyorov wrote: > On 2017/02/13 14:55:19, Sergiy Byelozyorov wrote: > > ...
3 years, 10 months ago (2017-02-13 19:23:18 UTC) #53
Sergiy Byelozyorov
On 2017/02/13 19:23:18, jkarlin wrote: > On 2017/02/13 15:55:01, Sergiy Byelozyorov wrote: > > On ...
3 years, 10 months ago (2017-02-16 14:10:54 UTC) #54
mtomasz
On 2017/02/16 14:10:54, Sergiy Byelozyorov wrote: > On 2017/02/13 19:23:18, jkarlin wrote: > > On ...
3 years, 10 months ago (2017-02-21 06:11:34 UTC) #55
mtomasz
https://codereview.chromium.org/2682163002/diff/240001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2682163002/diff/240001/content/browser/loader/resource_scheduler.cc#newcode386 content/browser/loader/resource_scheduler.cc:386: (!request->is_async() || !ShouldYieldScheduler())) { This doesn't seem right. It ...
3 years, 10 months ago (2017-02-22 03:52:03 UTC) #57
mtomasz
A revert of this CL (patchset #9 id:240001) has been created in https://codereview.chromium.org/2708323002/ by mtomasz@chromium.org. ...
3 years, 10 months ago (2017-02-22 03:52:52 UTC) #58
jkarlin
A revert of this CL (patchset #9 id:240001) has been created in https://codereview.chromium.org/2708173003/ by jkarlin@chromium.org. ...
3 years, 10 months ago (2017-02-22 15:12:47 UTC) #59
jkarlin
3 years, 10 months ago (2017-02-22 15:13:29 UTC) #60
Message was sent while issue was closed.
On 2017/02/22 15:12:47, jkarlin wrote:
> A revert of this CL (patchset #9 id:240001) has been created in
> https://codereview.chromium.org/2708173003/ by mailto:jkarlin@chromium.org.
> 
> The reason for reverting is: Adds a check for http(s) before yielding the
> scheduler..

Bah, I meant to revert the revert, not this CL.

Powered by Google App Engine
This is Rietveld 408576698