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

Issue 511383003: Adding proper GetUsedMemoryInPercent calculation (Closed)

Created:
6 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding proper GetUsedMemoryInPercent calculation This should be the memory pressure calculation as it is performed by the kernel today. As discussed this is done to experiment with a more detailed resource management algorithm. Once this we have a satisfying solution this can be moved back. BUG=381212 TEST=none (for this equation) Committed: https://crrev.com/4ce9865875145e9ab3947b9bfc2b543347883a9b Cr-Commit-Position: refs/heads/master@{#292779}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed #

Total comments: 8

Patch Set 3 : addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -7 lines) Patch
M athena/resource_manager/delegate/resource_manager_delegate.cc View 1 2 1 chunk +33 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Mr4D (OOO till 08-26)
skuhne@chromium.org changed reviewers: + semenzato@chromium.org
6 years, 3 months ago (2014-08-28 21:24:07 UTC) #1
Mr4D (OOO till 08-26)
Please have a look!
6 years, 3 months ago (2014-08-28 21:24:17 UTC) #2
Luigi Semenzato
Looks good, but may need a few fixes. Thanks! https://codereview.chromium.org/511383003/diff/1/athena/resource_manager/delegate/resource_manager_delegate.cc File athena/resource_manager/delegate/resource_manager_delegate.cc (right): https://codereview.chromium.org/511383003/diff/1/athena/resource_manager/delegate/resource_manager_delegate.cc#newcode30 athena/resource_manager/delegate/resource_manager_delegate.cc:30: ...
6 years, 3 months ago (2014-08-29 15:37:36 UTC) #3
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/511383003/diff/1/athena/resource_manager/delegate/resource_manager_delegate.cc File athena/resource_manager/delegate/resource_manager_delegate.cc (right): https://codereview.chromium.org/511383003/diff/1/athena/resource_manager/delegate/resource_manager_delegate.cc#newcode30 athena/resource_manager/delegate/resource_manager_delegate.cc:30: if (base::GetSystemMemoryInfo(&info) && info.total > ...
6 years, 3 months ago (2014-08-29 16:45:47 UTC) #4
Luigi Semenzato
LGTM, however I don't know if I have LGTM privileges for this Chromium code. Thanks! ...
6 years, 3 months ago (2014-08-29 18:42:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/511383003/20001
6 years, 3 months ago (2014-08-29 22:00:00 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-08-29 22:00:02 UTC) #9
Mr4D (OOO till 08-26)
Jun, can you do a review (apparently it is not good enough to have Luigi ...
6 years, 3 months ago (2014-08-29 22:25:25 UTC) #11
Jun Mukai
https://codereview.chromium.org/511383003/diff/20001/athena/resource_manager/delegate/resource_manager_delegate.cc File athena/resource_manager/delegate/resource_manager_delegate.cc (right): https://codereview.chromium.org/511383003/diff/20001/athena/resource_manager/delegate/resource_manager_delegate.cc#newcode29 athena/resource_manager/delegate/resource_manager_delegate.cc:29: if (base::GetSystemMemoryInfo(&info)) { Early exit like if(!base::GetSystemMemoryInfo(&info)) { LOG(WARNING) ...
6 years, 3 months ago (2014-08-29 22:59:33 UTC) #12
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/511383003/diff/20001/athena/resource_manager/delegate/resource_manager_delegate.cc File athena/resource_manager/delegate/resource_manager_delegate.cc (right): https://codereview.chromium.org/511383003/diff/20001/athena/resource_manager/delegate/resource_manager_delegate.cc#newcode29 athena/resource_manager/delegate/resource_manager_delegate.cc:29: if (base::GetSystemMemoryInfo(&info)) { On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 23:44:03 UTC) #13
Jun Mukai
lgtm
6 years, 3 months ago (2014-08-30 00:32:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/511383003/40001
6 years, 3 months ago (2014-08-30 00:35:47 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as fbd31111d255884492668eb6ee52efb3a3ba8abd
6 years, 3 months ago (2014-08-30 06:18:12 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:13:59 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ce9865875145e9ab3947b9bfc2b543347883a9b
Cr-Commit-Position: refs/heads/master@{#292779}

Powered by Google App Engine
This is Rietveld 408576698