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

Issue 2197753002: Move OomKillsMonitor from a single-threaded SequencedWorkerPool to a non-joinable thread. (Closed)

Created:
4 years, 4 months ago by gab
Modified:
4 years, 4 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@a0_b1_nonjoinable_thread
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move OomKillsMonitor from a single-threaded SequencedWorkerPool to a non-joinable thread. The semantics are equivalent after this CL: - SequencedWorkerPool::CONTINUE_ON_SHUTDOWN => non-joinable thread + leaky instance. - Actually, it's better than before because with lack of a Leaky lazy instance, there was a join despite the CONTINUE_ON_SHUTDOWN request [1]. - Ramping worker thread down on destruction through OomKillsMonitorHandle. [1] https://cs.chromium.org/chromium/src/base/threading/sequenced_worker_pool.cc?rcl=1469791693&l=601 BUG=622400 Committed: https://crrev.com/620b836c478741d8eec1ef5255f909e6d7e9b649 Cr-Commit-Position: refs/heads/master@{#411899}

Patch Set 1 #

Total comments: 14

Patch Set 2 : review:lhchavez #13 #

Total comments: 4

Patch Set 3 : update Dependent Patchset bit #

Patch Set 4 : use SimpleThread instead of Thread #

Total comments: 2

Patch Set 5 : nit #

Patch Set 6 : rebase dependent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -35 lines) Patch
M components/arc/metrics/arc_metrics_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/arc/metrics/arc_metrics_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/arc/metrics/oom_kills_monitor.h View 1 2 3 1 chunk +36 lines, -11 lines 0 comments Download
M components/arc/metrics/oom_kills_monitor.cc View 1 2 3 4 4 chunks +44 lines, -22 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 60 (50 generated)
gab
Luis PTAL, the goal is to get rid of usage of SequencedWorkerPool for single-threaded use ...
4 years, 4 months ago (2016-07-29 18:31:34 UTC) #12
Luis Héctor Chávez
Thanks for improving this! https://codereview.chromium.org/2197753002/diff/20001/components/arc/metrics/arc_metrics_service.cc File components/arc/metrics/arc_metrics_service.cc (right): https://codereview.chromium.org/2197753002/diff/20001/components/arc/metrics/arc_metrics_service.cc#newcode34 components/arc/metrics/arc_metrics_service.cc:34: oom_kills_monitor_handle_ = OomKillsMonitor::StartMonitoring(); Can this ...
4 years, 4 months ago (2016-07-29 21:48:45 UTC) #13
gab
Thanks, done, PTAnL https://codereview.chromium.org/2197753002/diff/20001/components/arc/metrics/arc_metrics_service.cc File components/arc/metrics/arc_metrics_service.cc (right): https://codereview.chromium.org/2197753002/diff/20001/components/arc/metrics/arc_metrics_service.cc#newcode34 components/arc/metrics/arc_metrics_service.cc:34: oom_kills_monitor_handle_ = OomKillsMonitor::StartMonitoring(); On 2016/07/29 21:48:45, ...
4 years, 4 months ago (2016-08-01 15:15:03 UTC) #16
Luis Héctor Chávez
just two nits. Will l-g-t-m once trybots are green. https://codereview.chromium.org/2197753002/diff/40001/components/arc/metrics/oom_kills_monitor.cc File components/arc/metrics/oom_kills_monitor.cc (right): https://codereview.chromium.org/2197753002/diff/40001/components/arc/metrics/oom_kills_monitor.cc#newcode160 components/arc/metrics/oom_kills_monitor.cc:160: ...
4 years, 4 months ago (2016-08-01 15:48:15 UTC) #19
gab
Luis PTAnL, actually used a CrOS build this time in light of my inability to ...
4 years, 4 months ago (2016-08-04 22:42:37 UTC) #29
Luis Héctor Chávez
lgtm with nits. Unfortunately this doesn't have unit tests, so the only way to test ...
4 years, 4 months ago (2016-08-08 14:29:33 UTC) #32
gab
Thanks done, FYI waiting on reland of https://codereview.chromium.org/2204333003 to land this if you're wondering :-). ...
4 years, 4 months ago (2016-08-09 23:05:21 UTC) #34
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/2197753002/170001
4 years, 4 months ago (2016-08-13 18:00:25 UTC) #56
commit-bot: I haz the power
Committed patchset #6 (id:170001)
4 years, 4 months ago (2016-08-13 18:38:50 UTC) #58
commit-bot: I haz the power
4 years, 4 months ago (2016-08-13 18:40:56 UTC) #60
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/620b836c478741d8eec1ef5255f909e6d7e9b649
Cr-Commit-Position: refs/heads/master@{#411899}

Powered by Google App Engine
This is Rietveld 408576698