|
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
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
|
Total messages: 5 (0 generated)
|