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

Issue 52833002: Purge unpinned ashmem before parsing /proc/$pid/smaps. (Closed)

Created:
7 years, 1 month ago by Philippe
Modified:
7 years, 1 month ago
Reviewers:
craigdh, bulach, tonyg, frankf, digit1
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org, klobag.chromium
Visibility:
Public.

Description

Purge unpinned ashmem before parsing /proc/$pid/smaps. This will help stabilize memory measurements so that memory regressions can't be hidden when unpinned ashmem gets purged by the kernel. BUG=311633 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235115

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address Digit and Tony's comments #

Total comments: 4

Patch Set 3 : Address Frank and Marcus' comments #

Patch Set 4 : Remove BuildTypeIsSet() #

Total comments: 2

Patch Set 5 : Address Marcus' comments #

Total comments: 2

Patch Set 6 : Address Frank's comments #

Patch Set 7 : Update documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -7 lines) Patch
M build/android/pylib/android_commands.py View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
A build/android/pylib/utils/host_path_finder.py View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/ashmem/ashmem.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/ashmem/ashmem-dev.c View 1 chunk +10 lines, -0 lines 0 comments Download
M tools/android/android_tools.gyp View 1 chunk +2 lines, -1 line 0 comments Download
A tools/android/purge_ashmem/purge_ashmem.c View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A + tools/android/purge_ashmem/purge_ashmem.gyp View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M tools/bisect-perf-regression.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A tools/telemetry/bin/prebuilt/android/purge_ashmem.sha1 View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/adb_commands.py View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Philippe
https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1424 build/android/pylib/android_commands.py:1424: if constants.BuildTypeIsSet(): FYI, this condition is not always met ...
7 years, 1 month ago (2013-10-30 17:18:20 UTC) #1
craigdh
+marcus as I believe he requested the arbitrary build directories. https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1424 ...
7 years, 1 month ago (2013-10-31 00:10:12 UTC) #2
Philippe
On 2013/10/31 00:10:12, craigdh wrote: > +marcus as I believe he requested the arbitrary build ...
7 years, 1 month ago (2013-10-31 09:02:13 UTC) #3
tonyg
https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1481 build/android/pylib/android_commands.py:1481: self._PurgeUnpinnedAshmem() Telemetry calls GetMemoryUsageForPid, and before we introduce this ...
7 years, 1 month ago (2013-11-03 05:05:18 UTC) #4
digit1
lgtm (for the third_party/ashmem changes) :)
7 years, 1 month ago (2013-11-04 14:15:46 UTC) #5
digit1
https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1445 build/android/pylib/android_commands.py:1445: build_type = 'Debug' I'm ok with self-detection, but if ...
7 years, 1 month ago (2013-11-04 14:15:55 UTC) #6
Philippe
Thanks David! Marcus and Tony: PTAL :) https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1424 build/android/pylib/android_commands.py:1424: if constants.BuildTypeIsSet(): ...
7 years, 1 month ago (2013-11-04 14:45:54 UTC) #7
frankf
https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/1/build/android/pylib/android_commands.py#newcode1413 build/android/pylib/android_commands.py:1413: def _GetExistingHostOutputPath(file_name): If you decide to keep this, it ...
7 years, 1 month ago (2013-11-04 18:17:05 UTC) #8
bulach
thanks pliard! some general comments below.. https://codereview.chromium.org/52833002/diff/90001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/90001/build/android/pylib/android_commands.py#newcode1413 build/android/pylib/android_commands.py:1413: def _GetExistingHostOutputPath(file_name): perhaps ...
7 years, 1 month ago (2013-11-04 20:22:06 UTC) #9
Philippe
Thanks guys! https://codereview.chromium.org/52833002/diff/90001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/90001/build/android/pylib/android_commands.py#newcode1413 build/android/pylib/android_commands.py:1413: def _GetExistingHostOutputPath(file_name): On 2013/11/04 20:22:06, bulach wrote: ...
7 years, 1 month ago (2013-11-05 09:22:13 UTC) #10
bulach
lgtm, thanks! I have one suggestion below: https://codereview.chromium.org/52833002/diff/280001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/280001/build/android/pylib/android_commands.py#newcode1415 build/android/pylib/android_commands.py:1415: def _PurgeUnpinnedAshmem(self): ...
7 years, 1 month ago (2013-11-05 16:25:14 UTC) #11
Philippe
Thanks Marcus! I'm now waiting for Frank and Tony. https://codereview.chromium.org/52833002/diff/280001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/280001/build/android/pylib/android_commands.py#newcode1415 build/android/pylib/android_commands.py:1415: ...
7 years, 1 month ago (2013-11-05 16:37:41 UTC) #12
frankf
https://codereview.chromium.org/52833002/diff/330001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/52833002/diff/330001/build/android/pylib/android_commands.py#newcode1426 build/android/pylib/android_commands.py:1426: logging.error('Could not purge ashmem. Measurement might be unstable.') Generally, ...
7 years, 1 month ago (2013-11-05 19:22:56 UTC) #13
Philippe
Thanks Frank! https://chromiumcodereview.appspot.com/52833002/diff/330001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://chromiumcodereview.appspot.com/52833002/diff/330001/build/android/pylib/android_commands.py#newcode1426 build/android/pylib/android_commands.py:1426: logging.error('Could not purge ashmem. Measurement might be ...
7 years, 1 month ago (2013-11-06 16:51:08 UTC) #14
Philippe
On 2013/11/06 16:51:08, Philippe wrote: > Thanks Frank! > > https://chromiumcodereview.appspot.com/52833002/diff/330001/build/android/pylib/android_commands.py > File build/android/pylib/android_commands.py (right): ...
7 years, 1 month ago (2013-11-06 18:34:39 UTC) #15
frankf
lgtm, Thanks.
7 years, 1 month ago (2013-11-06 19:04:52 UTC) #16
tonyg
lgtm But a could we also update a couple of other places in this patch. ...
7 years, 1 month ago (2013-11-06 19:21:22 UTC) #17
Philippe
On 2013/11/06 19:21:22, tonyg wrote: > lgtm > > But a could we also update ...
7 years, 1 month ago (2013-11-13 17:26:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/52833002/480001
7 years, 1 month ago (2013-11-13 17:26:56 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, components_unittests, content_browsertests, ...
7 years, 1 month ago (2013-11-13 17:42:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/52833002/480001
7 years, 1 month ago (2013-11-14 10:12:41 UTC) #21
commit-bot: I haz the power
7 years, 1 month ago (2013-11-14 11:00:32 UTC) #22
Message was sent while issue was closed.
Change committed as 235115

Powered by Google App Engine
This is Rietveld 408576698