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

Issue 3053049: Nice automatic updates up to a point, then renice if necessary. (Closed)

Created:
10 years, 4 months ago by petkov
Modified:
9 years, 7 months ago
Reviewers:
adlr
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

Nice automatic updates up to a point, then renice if necessary. BUG=5488 TEST=unit tests, gmerged on device and completed an update successfully with two 100% CPU "nice -n -20" processes running in the background.

Patch Set 1 #

Patch Set 2 : Add comment. #

Total comments: 4

Patch Set 3 : address review comments. #

Patch Set 4 : Manage process priority through GLib timeout sources. #

Patch Set 5 : style #

Patch Set 6 : rename #

Total comments: 2

Patch Set 7 : better documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -14 lines) Patch
M update_attempter.h View 1 2 3 4 5 6 5 chunks +36 lines, -14 lines 0 comments Download
M update_attempter.cc View 1 2 3 4 5 5 chunks +78 lines, -0 lines 0 comments Download
M utils.h View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M utils.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M utils_unittest.cc View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
petkov
Take a look. The timeouts are kind of random values...
10 years, 4 months ago (2010-08-05 19:52:19 UTC) #1
adlr
http://codereview.chromium.org/3053049/diff/2001/3001 File update_attempter.cc (right): http://codereview.chromium.org/3053049/diff/2001/3001#newcode336 update_attempter.cc:336: if (priority_ >= utils::kProcessPriorityLow) { 2 things. 1. rather ...
10 years, 4 months ago (2010-08-05 23:09:53 UTC) #2
petkov
PTAL Althought the timeout/retry thing bothers me a bit -- I'm not if it's a ...
10 years, 4 months ago (2010-08-05 23:52:18 UTC) #3
adlr
LGTM
10 years, 4 months ago (2010-08-06 01:05:31 UTC) #4
petkov
PTAL I'm managing the priority through a GLib's timeout source now. Also, tested successfully with ...
10 years, 4 months ago (2010-08-09 21:29:31 UTC) #5
adlr
LGTM http://codereview.chromium.org/3053049/diff/18001/19002 File update_attempter.h (right): http://codereview.chromium.org/3053049/diff/18001/19002#newcode123 update_attempter.h:123: // high). can you describe what returning true/false ...
10 years, 4 months ago (2010-08-11 00:26:46 UTC) #6
petkov
10 years, 4 months ago (2010-08-11 20:31:56 UTC) #7
pushing...

http://codereview.chromium.org/3053049/diff/18001/19002
File update_attempter.h (right):

http://codereview.chromium.org/3053049/diff/18001/19002#newcode123
update_attempter.h:123: // high).
On 2010/08/11 00:26:46, adlr wrote:
> can you describe what returning true/false means?

Done.

Powered by Google App Engine
This is Rietveld 408576698