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

Issue 7671033: Changing OOM range to 0, 1000 and tweaking OOM algorithm. (Closed)

Created:
9 years, 4 months ago by Greg Spencer (Chromium)
Modified:
9 years, 4 months ago
Reviewers:
stevenjb, brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, agl, jam, brettw-cc_chromium.org
Visibility:
Public.

Description

Changing OOM range to 0, 1000 and tweaking OOM algorithm. With this change, we now use the newer oom_score_adj file (with fallback to oom_adj when on a system that doesn't support it) so that we can take advantage of a finer range ([0, 1000] instead of [0, 15]). Also tweaked the OOM priority manager to prioritize things in a slightly different order, preferring (even more) not to kill tabs that the user has currently selected. BUG=chromium-os:18421, chromium:65009 TEST=Ran on device, observed OOM adj values, forced OOM conditions to watch kills. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97724

Patch Set 1 #

Total comments: 16

Patch Set 2 : Review changes. #

Total comments: 7

Patch Set 3 : More review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -94 lines) Patch
M base/process_util.h View 1 10 chunks +26 lines, -17 lines 0 comments Download
M base/process_util.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M base/process_util_linux.cc View 1 2 chunks +34 lines, -9 lines 0 comments Download
M chrome/app/chrome_main.cc View 1 2 4 chunks +31 lines, -16 lines 0 comments Download
M chrome/browser/oom_priority_manager.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/oom_priority_manager.cc View 1 6 chunks +31 lines, -22 lines 0 comments Download
M chrome/browser/ui/browser_list.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/zygote_host_linux.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/zygote_host_linux.cc View 1 2 1 chunk +19 lines, -12 lines 0 comments Download
M sandbox/linux/suid/process_util.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M sandbox/linux/suid/process_util_linux.c View 1 3 chunks +23 lines, -7 lines 0 comments Download
M sandbox/linux/suid/sandbox.c View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Greg Spencer (Chromium)
9 years, 4 months ago (2011-08-18 00:02:50 UTC) #1
stevenjb
http://codereview.chromium.org/7671033/diff/1/base/process_util_linux.cc File base/process_util_linux.cc (right): http://codereview.chromium.org/7671033/diff/1/base/process_util_linux.cc#newcode737 base/process_util_linux.cc:737: if (score < 0 || score > 1000) bit: ...
9 years, 4 months ago (2011-08-18 00:20:06 UTC) #2
Greg Spencer (Chromium)
PTAL, thanks! http://codereview.chromium.org/7671033/diff/1/base/process_util_linux.cc File base/process_util_linux.cc (right): http://codereview.chromium.org/7671033/diff/1/base/process_util_linux.cc#newcode737 base/process_util_linux.cc:737: if (score < 0 || score > ...
9 years, 4 months ago (2011-08-18 23:10:50 UTC) #3
Greg Spencer (Chromium)
Adding Darin and Brett for OWNERS review in both content/browser and base, since they both ...
9 years, 4 months ago (2011-08-18 23:18:38 UTC) #4
stevenjb
http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc#newcode182 chrome/app/chrome_main.cc:182: const int kPluginScore = 100; Really, I'm not trying ...
9 years, 4 months ago (2011-08-18 23:31:05 UTC) #5
Greg Spencer (Chromium)
http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc#newcode182 chrome/app/chrome_main.cc:182: const int kPluginScore = 100; On 2011/08/18 23:31:05, Steven ...
9 years, 4 months ago (2011-08-18 23:59:32 UTC) #6
stevenjb
LGTM http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/7671033/diff/22/chrome/app/chrome_main.cc#newcode182 chrome/app/chrome_main.cc:182: const int kPluginScore = 100; On 2011/08/18 23:59:32, ...
9 years, 4 months ago (2011-08-19 17:25:30 UTC) #7
Greg Spencer (Chromium)
On 2011/08/19 17:25:30, Steven Bennetts wrote: > > (So, you're OK with a "- 100", ...
9 years, 4 months ago (2011-08-19 18:11:06 UTC) #8
Greg Spencer (Chromium)
Darin or Brett, just need an OWNERS review now.
9 years, 4 months ago (2011-08-19 22:11:35 UTC) #9
brettw
9 years, 4 months ago (2011-08-21 16:12:22 UTC) #10
LGTM rubberstamp for my parts.

Please only list one owner reviewer to avoid spamming people.

Powered by Google App Engine
This is Rietveld 408576698