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

Issue 1619713007: Make text section 2MB aligned for hugepages. (Closed)

Created:
4 years, 11 months ago by yunlian
Modified:
4 years, 10 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, satorux1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make text section 2MB aligned for hugepages. If we do not use the option '-Wl,--section-start=.text=2001000' at link time, the performance gain on hugepages is gone. This is probably because the original text section is not 2MB aligned and the after mremap, the hugepage is not preserved. BUG=chromium:569963 TEST=The performance gain is back on micro benchmarks. Committed: https://crrev.com/1384534a94e6324d74906f0cbc1e707606c063f2 Cr-Commit-Position: refs/heads/master@{#373673}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M chromeos/hugepage_text/hugepage_text.cc View 1 2 3 4 5 6 3 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 53 (21 generated)
kenchen
https://codereview.chromium.org/1619713007/diff/1/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/1/chromeos/hugepage_text/hugepage_text.cc#newcode176 chromeos/hugepage_text/hugepage_text.cc:176: size_t head_gap = (kHpageSize - (size_t)addr % kHpageSize) % ...
4 years, 11 months ago (2016-01-22 22:19:42 UTC) #4
yunlian
https://codereview.chromium.org/1619713007/diff/1/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/1/chromeos/hugepage_text/hugepage_text.cc#newcode176 chromeos/hugepage_text/hugepage_text.cc:176: size_t head_gap = (kHpageSize - (size_t)addr % kHpageSize) % ...
4 years, 11 months ago (2016-01-22 22:27:00 UTC) #5
kenchen
lgtm
4 years, 11 months ago (2016-01-22 22:36:06 UTC) #6
yunlian
lgtm
4 years, 10 months ago (2016-01-26 22:46:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619713007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619713007/20001
4 years, 10 months ago (2016-01-26 22:47:47 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 10 months ago (2016-01-26 22:47:48 UTC) #11
Han Shen
lgtm
4 years, 10 months ago (2016-01-27 18:24:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619713007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619713007/20001
4 years, 10 months ago (2016-01-27 19:07:32 UTC) #14
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 10 months ago (2016-01-27 19:07:35 UTC) #16
yunlian
Can some one approve this for me? I got lgtm from the owner of the ...
4 years, 10 months ago (2016-02-01 16:37:03 UTC) #19
Daniel Erat
please get approval from someone in the chromeos/hugepage_text/OWNERS file rather than chromeos/OWNERS: yunlian@chromium.org llozano@chromium.org shenhan@chromium.org ...
4 years, 10 months ago (2016-02-01 16:46:16 UTC) #21
Daniel Erat
On 2016/02/01 16:46:16, Daniel Erat wrote: > please get approval from someone in the chromeos/hugepage_text/OWNERS ...
4 years, 10 months ago (2016-02-01 16:47:04 UTC) #22
yunlian
https://codereview.chromium.org/1619713007/diff/20001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/20001/chromeos/hugepage_text/hugepage_text.cc#newcode176 chromeos/hugepage_text/hugepage_text.cc:176: size_t head_gap = (kHpageSize - (size_t)vaddr % kHpageSize) % ...
4 years, 10 months ago (2016-02-01 17:31:56 UTC) #23
yunlian
On 2016/02/01 17:31:56, yunlian wrote: > https://codereview.chromium.org/1619713007/diff/20001/chromeos/hugepage_text/hugepage_text.cc > File chromeos/hugepage_text/hugepage_text.cc (right): > > https://codereview.chromium.org/1619713007/diff/20001/chromeos/hugepage_text/hugepage_text.cc#newcode176 > ...
4 years, 10 months ago (2016-02-03 19:47:19 UTC) #25
rickyz (no longer on Chrome)
lgtm https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if ((reinterpret_cast<intptr_t>(vaddr) & ~kHpageMask) == 0 && You ...
4 years, 10 months ago (2016-02-03 21:01:31 UTC) #26
yunlian
https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if ((reinterpret_cast<intptr_t>(vaddr) & ~kHpageMask) == 0 && On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 21:21:51 UTC) #27
rickyz (no longer on Chrome)
https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if ((reinterpret_cast<intptr_t>(vaddr) & ~kHpageMask) == 0 && On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 21:28:24 UTC) #28
yunlian
https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/40001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if ((reinterpret_cast<intptr_t>(vaddr) & ~kHpageMask) == 0 && On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 21:34:57 UTC) #29
rickyz (no longer on Chrome)
https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if (DCHECK_EQ(0, reinterpret_cast<uintptr_t>(vaddr) & ~kHpageMask) && Er sorry, what ...
4 years, 10 months ago (2016-02-03 23:10:09 UTC) #30
yunlian
https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc File chromeos/hugepage_text/hugepage_text.cc (right): https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc#newcode129 chromeos/hugepage_text/hugepage_text.cc:129: if (DCHECK_EQ(0, reinterpret_cast<uintptr_t>(vaddr) & ~kHpageMask) && On 2016/02/03 23:10:09, ...
4 years, 10 months ago (2016-02-03 23:14:45 UTC) #31
yunlian
On 2016/02/03 23:14:45, yunlian wrote: > https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc > File chromeos/hugepage_text/hugepage_text.cc (right): > > https://codereview.chromium.org/1619713007/diff/60001/chromeos/hugepage_text/hugepage_text.cc#newcode129 > ...
4 years, 10 months ago (2016-02-04 20:36:26 UTC) #32
rickyz (no longer on Chrome)
lgtm
4 years, 10 months ago (2016-02-04 20:41:36 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619713007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619713007/80001
4 years, 10 months ago (2016-02-04 20:48:37 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/89021) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-04 21:06:16 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619713007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619713007/100001
4 years, 10 months ago (2016-02-04 21:54:24 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/120899) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-04 22:14:22 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619713007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619713007/120001
4 years, 10 months ago (2016-02-04 22:38:21 UTC) #46
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-05 00:10:15 UTC) #48
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1384534a94e6324d74906f0cbc1e707606c063f2 Cr-Commit-Position: refs/heads/master@{#373673}
4 years, 10 months ago (2016-02-05 00:11:33 UTC) #50
stevenjb
On 2016/02/05 00:11:33, commit-bot: I haz the power wrote: > Patchset 7 (id:??) landed as ...
4 years, 10 months ago (2016-02-10 16:40:02 UTC) #51
chromium-reviews
I can try to make a fix today On Wed, Feb 10, 2016 at 8:40 ...
4 years, 10 months ago (2016-02-10 16:41:05 UTC) #52
stevenjb
4 years, 10 months ago (2016-02-10 16:42:18 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1687033002/ by stevenjb@chromium.org.

The reason for reverting is: Causing failures on x86-alex, peach_pit, and
daisy_skate (render process crash in login screen).

.

Powered by Google App Engine
This is Rietveld 408576698