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

Issue 7708020: Trying again to land OOM priority manager changes. (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, darin-cc_chromium.org, jam, agl, brettw-cc_chromium.org
Visibility:
Public.

Description

Trying again to land OOM priority manager changes. First landing failed because of an obscure problem with building linux_shared. This change passes the linux_shared trybot (and linux and linux_chromeos trybots). 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. Original review: http://codereview.chromium.org/7671033/ 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=97888

Patch Set 1 #

Patch Set 2 : Moving switch closer to use location #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -95 lines) Patch
M base/process_util.h View 1 10 chunks +22 lines, -17 lines 1 comment Download
M base/process_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/process_util_linux.cc View 2 chunks +34 lines, -9 lines 0 comments Download
M chrome/app/chrome_main.cc View 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 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 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 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 chunks +24 lines, -13 lines 0 comments Download
M sandbox/linux/suid/process_util.h View 1 chunk +8 lines, -5 lines 0 comments Download
M sandbox/linux/suid/process_util_linux.c View 3 chunks +23 lines, -7 lines 0 comments Download
M sandbox/linux/suid/sandbox.c View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Greg Spencer (Chromium)
Sending to steven and brettw because they were the original reviewers. Only the part highlighted ...
9 years, 4 months ago (2011-08-22 23:28:47 UTC) #1
brettw
If you want stuff in .cc files to be exported from base.lib, you'll need to ...
9 years, 4 months ago (2011-08-22 23:40:45 UTC) #2
Greg Spencer (Chromium)
On 2011/08/22 23:40:45, brettw wrote: > If you want stuff in .cc files to be ...
9 years, 4 months ago (2011-08-22 23:43:12 UTC) #3
brettw
That's fine. LGTM rubberstamp.
9 years, 4 months ago (2011-08-22 23:49:21 UTC) #4
stevenjb
9 years, 4 months ago (2011-08-22 23:56:55 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698