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

Issue 2151693005: [Chromecast] Use MemAvailable to compute memory pressure (Closed)

Created:
4 years, 5 months ago by halliwell
Modified:
4 years, 5 months ago
Reviewers:
wzhong, derekjchow1
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Use MemAvailable to compute memory pressure Now this has been backported to most of our kernels, it should be the most accurate way to assess memory pressure level. These threshold values should be tweaked in future based on metrics. BUG=620532 TEST=monitored MemAvailable in multiple scenarios (media playback as well as background app) Committed: https://crrev.com/be200eca4309e60f9d09739c3ff8fc92ead57c2e Cr-Commit-Position: refs/heads/master@{#405652}

Patch Set 1 #

Total comments: 4

Patch Set 2 : nits + clang format #

Total comments: 2

Patch Set 3 : float->int #

Total comments: 2

Patch Set 4 : static_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -17 lines) Patch
M chromecast/browser/cast_memory_pressure_monitor.cc View 1 2 3 2 chunks +22 lines, -17 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
halliwell
I added a bunch of info to the appendix of 'cast memory pressure handling' design ...
4 years, 5 months ago (2016-07-14 18:40:54 UTC) #3
derekjchow1
lgtm % nits https://codereview.chromium.org/2151693005/diff/1/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/1/chromecast/browser/cast_memory_pressure_monitor.cc#newcode74 chromecast/browser/cast_memory_pressure_monitor.cc:74: const float total_available = (info.available == ...
4 years, 5 months ago (2016-07-14 19:09:28 UTC) #4
halliwell
https://codereview.chromium.org/2151693005/diff/1/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/1/chromecast/browser/cast_memory_pressure_monitor.cc#newcode74 chromecast/browser/cast_memory_pressure_monitor.cc:74: const float total_available = (info.available == 0) ? On ...
4 years, 5 months ago (2016-07-14 19:29:12 UTC) #5
wzhong
https://codereview.chromium.org/2151693005/diff/20001/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/20001/chromecast/browser/cast_memory_pressure_monitor.cc#newcode74 chromecast/browser/cast_memory_pressure_monitor.cc:74: const float total_available = Why is it a float? ...
4 years, 5 months ago (2016-07-14 21:30:13 UTC) #6
halliwell
https://codereview.chromium.org/2151693005/diff/20001/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/20001/chromecast/browser/cast_memory_pressure_monitor.cc#newcode74 chromecast/browser/cast_memory_pressure_monitor.cc:74: const float total_available = On 2016/07/14 21:30:13, wzhong wrote: ...
4 years, 5 months ago (2016-07-14 23:49:50 UTC) #7
wzhong
https://codereview.chromium.org/2151693005/diff/40001/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/40001/chromecast/browser/cast_memory_pressure_monitor.cc#newcode82 chromecast/browser/cast_memory_pressure_monitor.cc:82: const float ratio = available / float(total); static_cast
4 years, 5 months ago (2016-07-14 23:55:26 UTC) #8
halliwell
https://codereview.chromium.org/2151693005/diff/40001/chromecast/browser/cast_memory_pressure_monitor.cc File chromecast/browser/cast_memory_pressure_monitor.cc (right): https://codereview.chromium.org/2151693005/diff/40001/chromecast/browser/cast_memory_pressure_monitor.cc#newcode82 chromecast/browser/cast_memory_pressure_monitor.cc:82: const float ratio = available / float(total); On 2016/07/14 ...
4 years, 5 months ago (2016-07-15 00:10:31 UTC) #9
wzhong
4 years, 5 months ago (2016-07-15 00:18:43 UTC) #10
wzhong
lgtm
4 years, 5 months ago (2016-07-15 00:18:46 UTC) #11
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/2151693005/60001
4 years, 5 months ago (2016-07-15 00:25:07 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-15 00:55:35 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 00:57:02 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/be200eca4309e60f9d09739c3ff8fc92ead57c2e
Cr-Commit-Position: refs/heads/master@{#405652}

Powered by Google App Engine
This is Rietveld 408576698