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

Issue 2731273003: Update MemoryMonitorChromeOS (Closed)

Created:
3 years, 9 months ago by bashi
Modified:
3 years, 9 months ago
Reviewers:
haraken, chrisha, Wez
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update MemoryMonitorChromeOS Current guidelines for defining critical memory state is swapping will occur in that situation. Update MemoryMonitorChromeOS to align the guidelines. - Use |available| field of base::SystemMemoryInfoKB if the OS supports it - Don't count SwapFree as free available memory BUG=696844 Review-Url: https://codereview.chromium.org/2731273003 Cr-Commit-Position: refs/heads/master@{#455970} Committed: https://chromium.googlesource.com/chromium/src/+/a2181336154c12cb49601f515cb5dace1b06b1f2

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 6

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -12 lines) Patch
M content/browser/memory/memory_monitor_chromeos.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M content/browser/memory/memory_monitor_chromeos_unittest.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
bashi
PTAL I think this makes MemoryMonitorChromeOS be consistent with other platforms. Counting unused swap as ...
3 years, 9 months ago (2017-03-07 06:59:17 UTC) #8
haraken
+wez LGTM on my side.
3 years, 9 months ago (2017-03-07 07:02:58 UTC) #10
Wez
lgtm https://codereview.chromium.org/2731273003/diff/20001/content/browser/memory/memory_monitor_chromeos.cc File content/browser/memory/memory_monitor_chromeos.cc (right): https://codereview.chromium.org/2731273003/diff/20001/content/browser/memory/memory_monitor_chromeos.cc#newcode38 content/browser/memory/memory_monitor_chromeos.cc:38: file_memory -= mem_info.dirty + kMinFileMemory; Is there a ...
3 years, 9 months ago (2017-03-08 01:59:06 UTC) #11
bashi
Thank you for review! https://codereview.chromium.org/2731273003/diff/20001/content/browser/memory/memory_monitor_chromeos.cc File content/browser/memory/memory_monitor_chromeos.cc (right): https://codereview.chromium.org/2731273003/diff/20001/content/browser/memory/memory_monitor_chromeos.cc#newcode38 content/browser/memory/memory_monitor_chromeos.cc:38: file_memory -= mem_info.dirty + kMinFileMemory; ...
3 years, 9 months ago (2017-03-10 01:59:10 UTC) #14
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/2731273003/40001
3 years, 9 months ago (2017-03-10 02:53:49 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 03:01:36 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a2181336154c12cb49601f515cb5...

Powered by Google App Engine
This is Rietveld 408576698