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

Issue 16023027: Lower the I/O priority of the installer when resonable. (Closed)

Created:
7 years, 6 months ago by grt (UTC plus 2)
Modified:
7 years, 6 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Lower the I/O priority of the installer when resonable. On operating systems that support it (Vista+), begin background processing mode before doing major disk I/O in the installer if it was launched below the normal process priority class. One hopes that this avoids making users' machines unresponsive while an update is being applied in the background. BUG=167622 TEST=mostly covered by "setup_unittests.exe --gtest_filter=SetupUtilTest.Adjust*", but it will also be interesting to look at verbose installer log files for an install and for a Google Update-driven update. Only the latter should contain "Entered background processing mode." Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203982

Patch Set 1 : #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : cpu comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -0 lines) Patch
M chrome/chrome_installer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/run_all_unittests.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_util_unittest.h View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 chunks +88 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
grt (UTC plus 2)
7 years, 6 months ago (2013-05-31 03:50:50 UTC) #1
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/run_all_unittests.cc File chrome/installer/setup/run_all_unittests.cc (right): https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/run_all_unittests.cc#newcode16 chrome/installer/setup/run_all_unittests.cc:16: return DoProcessPriorityAdjustment(); return here ?
7 years, 6 months ago (2013-05-31 19:09:49 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/run_all_unittests.cc File chrome/installer/setup/run_all_unittests.cc (right): https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/run_all_unittests.cc#newcode16 chrome/installer/setup/run_all_unittests.cc:16: return DoProcessPriorityAdjustment(); On 2013/05/31 19:09:49, cpu wrote: > return ...
7 years, 6 months ago (2013-06-01 01:38:33 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm I overlooked the test initially. my bad. https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/setup_main.cc#newcode644 chrome/installer/setup/setup_main.cc:644: VLOG_IF(1, ...
7 years, 6 months ago (2013-06-03 19:43:02 UTC) #4
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/16023027/diff/8001/chrome/installer/setup/setup_main.cc#newcode644 chrome/installer/setup/setup_main.cc:644: VLOG_IF(1, installer::AdjustProcessPriority()) On 2013/06/03 19:43:02, cpu wrote: > ...
7 years, 6 months ago (2013-06-03 20:13:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/16023027/17001
7 years, 6 months ago (2013-06-03 20:13:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/16023027/17001
7 years, 6 months ago (2013-06-04 02:14:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/16023027/17001
7 years, 6 months ago (2013-06-04 15:26:07 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 16:50:32 UTC) #9
Message was sent while issue was closed.
Change committed as 203982

Powered by Google App Engine
This is Rietveld 408576698