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

Issue 1793943002: Use sysctlbyname() to get kernel page size. (Closed)

Created:
4 years, 9 months ago by pkl (ping after 24h if needed)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use sysctlbyname() to get kernel page size. This allows enabling of COUNT_RESIDENT_BYTES_SUPPORTED tests. It is also possible to change iOS' implementation of base::GetPageSize() implementation to use sysctlbyname() instead of getpagesize(), but since it is only the use of mincore() that requires the use of kernel page size, it is better to have a smaller change than a more invasive change to base::GetPageSize(). I'm concerned that changing GetPageSize() to return 4KB (what sysctlbyname returns) instead of 16KB (what getpagesize returns) may have some unknown side effects. BUG=542671 Committed: https://crrev.com/0b19e32e90d7affe4fcee8b2613392a1c20fdf0d Cr-Commit-Position: refs/heads/master@{#381475}

Patch Set 1 #

Patch Set 2 : Added GetKernelPageSize #

Patch Set 3 : renamed to GetSystemPageSize #

Total comments: 4

Patch Set 4 : addressed primiano's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M base/trace_event/process_memory_dump.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 3 2 chunks +24 lines, -1 line 0 comments Download
M base/trace_event/process_memory_dump_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
pkl (ping after 24h if needed)
Hi, Primiano, This fixes the test for iOS. The breakage was because iOS platform returns ...
4 years, 9 months ago (2016-03-13 03:26:42 UTC) #3
Primiano Tucci (use gerrit)
Many thanks for the investigation. All this is ... fun :) I agree it's safer ...
4 years, 9 months ago (2016-03-15 15:50:49 UTC) #4
pkl (ping after 24h if needed)
Thank you for reviewing. Submitting. https://codereview.chromium.org/1793943002/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1793943002/diff/40001/base/trace_event/process_memory_dump.cc#newcode56 base/trace_event/process_memory_dump.cc:56: int status = sysctlbyname("vm.pagesize", ...
4 years, 9 months ago (2016-03-16 14:24:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1793943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1793943002/60001
4 years, 9 months ago (2016-03-16 14:24:39 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/118121)
4 years, 9 months ago (2016-03-16 15:29:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1793943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1793943002/60001
4 years, 9 months ago (2016-03-16 16:09:10 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-16 16:57:40 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 16:59:49 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0b19e32e90d7affe4fcee8b2613392a1c20fdf0d
Cr-Commit-Position: refs/heads/master@{#381475}

Powered by Google App Engine
This is Rietveld 408576698