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

Issue 2457473003: tcmalloc: Use futex syscall in SpinLockDelay() for ARM. (Closed)

Created:
4 years, 1 month ago by fnch
Modified:
4 years ago
CC:
chromium-reviews, Dai Mikurube (NOT FULLTIME)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tcmalloc: Use futex syscall in SpinLockDelay() for ARM. SpinLockDelay() was avoiding using futex() when compiled for ARM. The alternative implementation was sleeping for 2 ms. This caused performance issues in Telemetry's SvgCubics benchmark. The score for this benchmark more than doubles when this patch is applied (scores were measured on veyron_jerry, veyron_minnie, daisy). Other benchmarks (blink_perf.bindings/post-message, blink_perf.canvas/draw-static-webgl- to-hw-accelerated-canvas-2d) benefit from this change to a lesser extent. This patch also removes a reference to futex1 in a comment in linux-syscall_support.h, as this is not a valid syscall name. Note that a similar fix was pushed in the upstream version of tcmalloc (issue-693, https://github.com/gperftools/gperftools/commit/7df7f14). BUG= Change-Id: I390ac51ed5e1b0ad021ac63eaf3bce81cdca8599 Committed: https://crrev.com/7f1336053e39737671a52ca7a265007e9024ee8a Committed: https://crrev.com/e787102a66a74471263456e204209ea6b29e2d53 Cr-Original-Commit-Position: refs/heads/master@{#432628} Cr-Commit-Position: refs/heads/master@{#437099}

Patch Set 1 #

Patch Set 2 : tcmalloc: Use futex syscall in SpinLockDelay() for ARM. #

Patch Set 3 : tcmalloc: Use futex syscall in SpinLockDelay() for ARM. #

Patch Set 4 : tcmalloc: Use futex syscall in SpinLockDelay() for ARM. #

Patch Set 5 : tcmalloc: Use futex syscall in SpinLockDelay() for ARM. #

Patch Set 6 : tcmalloc: Use futex syscall in SpinLockDelay() for ARM. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -6 lines) Patch
M third_party/tcmalloc/README.chromium View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/base/linux_syscall_support.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/tcmalloc/chromium/src/base/spinlock_linux-inl.h View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 68 (34 generated)
adenilson.cavalcanti
Kicked the bots, let's see how it goes.
4 years, 1 month ago (2016-10-27 16:03:09 UTC) #3
fnch
Rebased with master. Many of the bots failed to apply the patch with the error ...
4 years, 1 month ago (2016-10-28 13:12:20 UTC) #6
fnch
Please, have a look at this patch and let me know what you think. I'll ...
4 years, 1 month ago (2016-10-31 18:45:35 UTC) #14
fnch
ping
4 years, 1 month ago (2016-11-15 18:49:11 UTC) #15
Primiano Tucci (use gerrit)
Can you update also third_party/tcmalloc/README.chromium to mention the fact that this is bakporting 7df7f14 from ...
4 years, 1 month ago (2016-11-16 13:35:27 UTC) #21
fnch
Hi Primiano, On 16/11/16 13:35, primiano@chromium.org wrote: > Can you update also third_party/tcmalloc/README.chromium to mention ...
4 years, 1 month ago (2016-11-16 13:38:23 UTC) #22
fnch
Added line to README.chromium as suggested by Primiano.
4 years, 1 month ago (2016-11-16 14:51:18 UTC) #23
Primiano Tucci (use gerrit)
On 2016/11/16 14:51:18, fnch wrote: > Added line to README.chromium as suggested by Primiano. non-owner ...
4 years, 1 month ago (2016-11-16 16:07:09 UTC) #24
Will Harris
I'm not familiar with this code too much - so maybe a dumb question but ...
4 years, 1 month ago (2016-11-16 18:18:36 UTC) #25
fnch
The futex syscall is part of the functionality provided by the Linux kernel. It is ...
4 years, 1 month ago (2016-11-16 19:00:50 UTC) #28
Will Harris
lgtm then
4 years, 1 month ago (2016-11-16 20:29:54 UTC) #31
cavalcantii1
As the patch was lgtm-ed and all bots are green, I'm adding it to the ...
4 years, 1 month ago (2016-11-16 20:58:15 UTC) #32
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/2457473003/80001
4 years, 1 month ago (2016-11-16 20:59:33 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-16 21:11:45 UTC) #36
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/7f1336053e39737671a52ca7a265007e9024ee8a Cr-Commit-Position: refs/heads/master@{#432628}
4 years, 1 month ago (2016-11-16 21:17:15 UTC) #38
llozano
On 2016/11/16 14:51:18, fnch wrote: > Added line to README.chromium as suggested by Primiano.
4 years, 1 month ago (2016-11-18 18:59:33 UTC) #39
llozano
On 2016/11/16 21:17:15, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 1 month ago (2016-11-18 19:01:51 UTC) #40
cavalcantii1
Concerning assigning bugs, I will request edit-bug access for Matteo. Next: on the regression, I ...
4 years, 1 month ago (2016-11-18 20:16:46 UTC) #41
cavalcantii1
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2514973002/ by cavalcantii@chromium.org. ...
4 years, 1 month ago (2016-11-18 20:59:48 UTC) #42
fnch
Here is an explanation of the issue which caused this CL to be reverted. The ...
4 years, 1 month ago (2016-11-21 15:26:42 UTC) #43
Will Harris
On 2016/11/21 15:26:42, fnch wrote: > Here is an explanation of the issue which caused ...
4 years, 1 month ago (2016-11-21 17:32:46 UTC) #44
Primiano Tucci (use gerrit)
> > What are the next steps here to try and re-land this? Does the ...
4 years, 1 month ago (2016-11-21 19:22:07 UTC) #45
fnch
Hi Will, I am considering possible options. One would be to change the compilation flags ...
4 years, 1 month ago (2016-11-21 19:22:39 UTC) #46
llozano
On 2016/11/21 19:22:39, fnch wrote: > Hi Will, > I am considering possible options. One ...
4 years, 1 month ago (2016-11-22 00:39:05 UTC) #47
fnch
Thanks, llozano. The solution you favour sounds good to me. We can push this CL ...
4 years, 1 month ago (2016-11-22 10:36:06 UTC) #48
llozano
On 2016/11/22 10:36:06, fnch wrote: > Thanks, llozano. > The solution you favour sounds good ...
4 years, 1 month ago (2016-11-22 22:53:09 UTC) #49
fnch
Hi llonzano, I applied the patch at https://codereview.chromium.org/2522973002/ on the top of my tree. I ...
4 years ago (2016-11-23 17:41:05 UTC) #50
fnch
The issue which caused this patch to be reverted (i.e. the breakage of the clang ...
4 years ago (2016-12-07 19:32:21 UTC) #52
llozano
On 2016/12/07 19:32:21, fnch wrote: > The issue which caused this patch to be reverted ...
4 years ago (2016-12-07 20:52:27 UTC) #58
Will Harris
still lgtm from me
4 years ago (2016-12-07 21:24:53 UTC) #59
cavalcantii1
Adding it to the CQ and let's see how it goes.
4 years ago (2016-12-07 22:56:33 UTC) #60
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/2457473003/100001
4 years ago (2016-12-07 22:57:16 UTC) #63
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-07 23:05:18 UTC) #66
commit-bot: I haz the power
4 years ago (2016-12-07 23:09:05 UTC) #68
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e787102a66a74471263456e204209ea6b29e2d53
Cr-Commit-Position: refs/heads/master@{#437099}

Powered by Google App Engine
This is Rietveld 408576698