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

Issue 2247433002: TabManager: Set OOM scores via a new debugd interface on ChromeOS. (Closed)

Created:
4 years, 4 months ago by cylee1
Modified:
4 years, 3 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TabManager: Set OOM scores via a new debugd interface on ChromeOS. Setting OOM scores generally requires root permission. In the past it's done 1. For Chrome processes: via a SUID binary chrome-sandbox. 2. For Andorid processes: Send scores to Android via IPC. Android handles the rest. Now a new method is added to debugd dbus interface on ChromeOS to handle OOM score settings. https://chromium-review.googlesource.com/#/c/366154/ So we can set OOM score settings in the unified way on ChromeOS. BUG=b:30193036 TEST=minnie Committed: https://crrev.com/2af9aaceb40213973d0c989de413d0505afefbce Cr-Commit-Position: refs/heads/master@{#414693}

Patch Set 1 #

Total comments: 16

Patch Set 2 : stop posting to file thread. remove lock. #

Patch Set 3 #

Total comments: 10

Patch Set 4 : review comments #

Patch Set 5 : minor change: pass score as int32_t to match the receiver side #

Patch Set 6 : fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -186 lines) Patch
M chrome/browser/memory/tab_manager_delegate_chromeos.h View 1 2 3 4 5 8 chunks +7 lines, -26 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 1 2 3 4 5 14 chunks +102 lines, -152 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -5 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.h View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.cc View 1 2 3 4 5 6 chunks +38 lines, -3 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
cylee1
Hi Chris, PTAL since George seems to be OOO?
4 years, 4 months ago (2016-08-12 17:34:39 UTC) #4
stevenjb
chromeos/dbus/ lgtm
4 years, 4 months ago (2016-08-12 23:30:18 UTC) #7
hashimoto
https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode779 chrome/browser/memory/tab_manager_delegate_chromeos.cc:779: chromeos::DBusThreadManager::Get()->GetDebugDaemonClient()->SetOomScoreAdj( D-Bus clients are not thread-safe. They must be ...
4 years, 4 months ago (2016-08-15 03:54:23 UTC) #8
Georges Khalil
Just a couple of nits. https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode87 chrome/browser/memory/tab_manager_delegate_chromeos.cc:87: if (!success || output ...
4 years, 4 months ago (2016-08-15 18:47:54 UTC) #9
cylee1
https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2247433002/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode87 chrome/browser/memory/tab_manager_delegate_chromeos.cc:87: if (!success || output != "") { On 2016/08/15 ...
4 years, 4 months ago (2016-08-16 19:47:11 UTC) #10
hashimoto
chromeos/dbus lgtm https://codereview.chromium.org/2247433002/diff/40001/chromeos/dbus/fake_debug_daemon_client.cc File chromeos/dbus/fake_debug_daemon_client.cc (right): https://codereview.chromium.org/2247433002/diff/40001/chromeos/dbus/fake_debug_daemon_client.cc#newcode203 chromeos/dbus/fake_debug_daemon_client.cc:203: const std::map<int, int>& scores, Please use the ...
4 years, 4 months ago (2016-08-17 02:48:47 UTC) #11
Georges Khalil
lgtm % nits. https://codereview.chromium.org/2247433002/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2247433002/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode189 chrome/browser/memory/tab_manager_delegate_chromeos.cc:189: // Checks whether the containing instance ...
4 years, 4 months ago (2016-08-18 16:20:46 UTC) #12
cylee1
Thanks to Georges for the quick review when in vacation ! https://codereview.chromium.org/2247433002/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): ...
4 years, 4 months ago (2016-08-18 22:16:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247433002/80001
4 years, 4 months ago (2016-08-24 22:22:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/252288) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-24 22:40:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247433002/80001
4 years, 3 months ago (2016-08-25 19:13:00 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/225059)
4 years, 3 months ago (2016-08-25 20:11:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247433002/100001
4 years, 3 months ago (2016-08-26 12:20:25 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-26 13:04:48 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 13:06:20 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2af9aaceb40213973d0c989de413d0505afefbce
Cr-Commit-Position: refs/heads/master@{#414693}

Powered by Google App Engine
This is Rietveld 408576698