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

Issue 354903003: Enable FIXED_POINT and -O3 for Opus when building for ARM (Closed)

Created:
6 years, 5 months ago by tlegrand1
Modified:
6 years, 5 months ago
CC:
chromium-reviews, Nico, Solis
Project:
chromium
Visibility:
Public.

Description

Enable FIXED_POINT and -O3 for Opus when building for ARM The original CL: https://codereview.chromium.org/315673002/ The revert of the CL above: https://codereview.chromium.org/349293006/ The reason for the original revert: Media tests started failing consistently on a tsan bot (http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28tsan%29%281%29?numbuilds=200) with revision 277414 (the commit of original CL). Cl was reverted in revision 279198. This CL solved the problem differently, by not using the release_optimize flag, and instead replace the cflag -Os with -O3. Opus speed gain with -03 flag on ARM: ARM32b - 6-8% for encoding, 2% for decoding ARM64b - 20% for encoding, 17% for decoding Increased binary size: BUG=chromium:354539 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281729

Patch Set 1 #

Total comments: 6

Patch Set 2 : Restrict -O3 flag to arm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M third_party/opus/opus.gyp View 1 3 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
tlegrand1
Hi Sergey, The CL which enables -O3 flag for Opus was reverted, but I believe ...
6 years, 5 months ago (2014-06-27 13:51:54 UTC) #1
tommi (sloooow) - chröme
https://codereview.chromium.org/354903003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/354903003/diff/1/build/common.gypi#newcode3446 build/common.gypi:3446: '-O>(release_optimize)', would it make sense to commit this in ...
6 years, 5 months ago (2014-06-27 14:27:55 UTC) #2
Nico
I'm relatively sure the problems weren't unrelated; the bots went green after the revert. Why ...
6 years, 5 months ago (2014-06-27 15:36:50 UTC) #3
tlegrand1
On 2014/06/27 15:36:50, Nico (away) wrote: > I'm relatively sure the problems weren't unrelated; the ...
6 years, 5 months ago (2014-06-27 16:08:25 UTC) #4
Nico
Hm, if the bot is gone it's cool I guess. Please do what tommi asked ...
6 years, 5 months ago (2014-06-27 16:13:55 UTC) #5
tlegrand1
Tommi's comments: https://codereview.chromium.org/354903003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/354903003/diff/1/build/common.gypi#newcode3446 build/common.gypi:3446: '-O>(release_optimize)', Yes, I think it does. I'll ...
6 years, 5 months ago (2014-06-27 16:37:53 UTC) #6
tommi (sloooow) - chröme
Thanks Tina. The opus.gyp change looks good. I'll wait for the next patch set. https://codereview.chromium.org/354903003/diff/1/third_party/opus/opus.gyp ...
6 years, 5 months ago (2014-06-28 16:33:15 UTC) #7
Nico
On Sat, Jun 28, 2014 at 9:33 AM, <tommi@chromium.org> wrote: > Thanks Tina. The opus.gyp ...
6 years, 5 months ago (2014-06-29 21:40:21 UTC) #8
tlegrand1
On 2014/06/29 21:40:21, Nico (away) wrote: > On Sat, Jun 28, 2014 at 9:33 AM, ...
6 years, 5 months ago (2014-06-30 13:35:53 UTC) #9
Nico
(aurimas: See "^^^" below) On Mon, Jun 30, 2014 at 6:35 AM, <tlegrand@chromium.org> wrote: > ...
6 years, 5 months ago (2014-06-30 16:46:02 UTC) #10
aurimas (slooooooooow)
> # In release builds we always want -O3 optimization, which is not the > ...
6 years, 5 months ago (2014-06-30 16:54:43 UTC) #11
tommi (sloooow) - chröme
Tina is going to check this again. She looked at numbers from Fredrik but it's ...
6 years, 5 months ago (2014-06-30 18:27:41 UTC) #12
tlegrand1
I'll get back with numbers on performance gain and new measures of code size. I ...
6 years, 5 months ago (2014-07-01 08:00:18 UTC) #13
tlegrand1
I don't think we should use release_optimize for compiling Opus with -O3. I will upload ...
6 years, 5 months ago (2014-07-01 10:47:37 UTC) #14
tommi (sloooow) - chröme
On 2014/07/01 10:47:37, tlegrand1 wrote: > I don't think we should use release_optimize for compiling ...
6 years, 5 months ago (2014-07-01 11:55:48 UTC) #15
Nico
Then let's wait for the chrome/android size number :-) On Jul 1, 2014 4:55 AM, ...
6 years, 5 months ago (2014-07-01 15:21:19 UTC) #16
tlegrand1
I don't think we should change the expansion order for release_optimize, and instead I have ...
6 years, 5 months ago (2014-07-02 17:15:16 UTC) #17
tlegrand1
Forgot to say: I have updated the name of this CL, as well as the ...
6 years, 5 months ago (2014-07-02 17:16:38 UTC) #18
aurimas (slooooooooow)
On 2014/07/02 17:15:16, tlegrand1 wrote: > I don't think we should change the expansion order ...
6 years, 5 months ago (2014-07-02 17:33:05 UTC) #19
tlegrand1
On 2014/07/02 17:33:05, aurimas wrote: > On 2014/07/02 17:15:16, tlegrand1 wrote: > > I don't ...
6 years, 5 months ago (2014-07-03 13:00:10 UTC) #20
Nico
On Thu, Jul 3, 2014 at 6:00 AM, <tlegrand@chromium.org> wrote: > On 2014/07/02 17:33:05, aurimas ...
6 years, 5 months ago (2014-07-03 19:55:35 UTC) #21
tlegrand1
On 2014/07/03 19:55:35, Nico (away) wrote: > On Thu, Jul 3, 2014 at 6:00 AM, ...
6 years, 5 months ago (2014-07-04 14:12:19 UTC) #22
aurimas (slooooooooow)
On 2014/07/04 14:12:19, tlegrand1 wrote: > On 2014/07/03 19:55:35, Nico (away) wrote: > > On ...
6 years, 5 months ago (2014-07-05 22:09:48 UTC) #23
tommi (sloooow) - chröme
Thanks! :) 32kb is a lot less at least. Tina is on vacation as of ...
6 years, 5 months ago (2014-07-05 22:21:18 UTC) #24
Yaron
On 2014/07/05 22:21:18, tommi wrote: > Thanks! :) 32kb is a lot less at least. ...
6 years, 5 months ago (2014-07-07 16:36:52 UTC) #25
minyue
The CQ bit was checked by minyue@chromium.org
6 years, 5 months ago (2014-07-08 08:29:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tlegrand@chromium.org/354903003/20001
6 years, 5 months ago (2014-07-08 08:29:41 UTC) #27
henrika (OOO until Aug 14)
LGTM
6 years, 5 months ago (2014-07-08 11:34:47 UTC) #28
tommi (sloooow) - chröme
The CQ bit was unchecked by tommi@chromium.org
6 years, 5 months ago (2014-07-08 11:48:37 UTC) #29
tommi (sloooow) - chröme
The CQ bit was checked by tommi@chromium.org
6 years, 5 months ago (2014-07-08 11:48:47 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tlegrand@chromium.org/354903003/20001
6 years, 5 months ago (2014-07-08 11:49:10 UTC) #31
commit-bot: I haz the power
Change committed as 281729
6 years, 5 months ago (2014-07-08 12:20:34 UTC) #32
tlegrand1
6 years, 5 months ago (2014-07-09 08:49:04 UTC) #33
Thank you aurimas@ for helping out getting the numbers! Highly appreciated!



On Sun, Jul 6, 2014 at 12:09 AM, <aurimas@chromium.org> wrote:

> On 2014/07/04 14:12:19, tlegrand1 wrote:
>
>> On 2014/07/03 19:55:35, Nico (away) wrote:
>> > On Thu, Jul 3, 2014 at 6:00 AM, <mailto:tlegrand@chromium.org> wrote:
>> >
>> > > On 2014/07/02 17:33:05, aurimas wrote:
>> > >
>> > >> On 2014/07/02 17:15:16, tlegrand1 wrote:
>> > >> > I don't think we should change the expansion order for
>> > >> release_optimize, and
>> > >> > instead I have limited the change to only use the -O3 on ARM,
>> where we
>> > >>
>> > > really
>> > >
>> > >> > need it.
>> > >> >
>> > >> > You can disregard my previous number of 2.77% increase in binary
>> size.
>> > >> That
>> > >> > number was only for a webrtc test executable, and is not what we
>> are
>> > >> interested
>> > >> > in here. I have trouble measuring the increase in binary size, and
>> > >> would be
>> > >> > happy for some advice. I built on Linux with -O3 for Opus and saw a
>>
> size
>
>> > >> > increase for out/Release/chrome of 0.04%. Is that a correct way of
>> > >>
>> > > measuring?
>> > >
>> > >> >
>> > >> > https://codereview.chromium.org/354903003/diff/1/third_
>> > >> party/opus/opus.gyp
>> > >> > File third_party/opus/opus.gyp (right):
>> > >> >
>> > >> >
>> > >>
>> > >
>> > > https://codereview.chromium.org/354903003/diff/1/third_
>> > > party/opus/opus.gyp#newcode10
>> > >
>> > >> > third_party/opus/opus.gyp:10: 'release_optimize': '3',
>> > >> > I decided to skip using the release_optimize flag, and only use
>> -O3 on
>> > >> ARM
>> > >>
>> > > for
>> > >
>> > >> > now.
>> > >>
>> > >
>> > >  Is opus built automatically when building Chrome for Android? I can
>> > >> locally
>> > >>
>> > > try
>> > >
>> > >> building with your patch to see the size change.
>> > >>
>> > >
>> > > Hmm, I thought it was, but now I'm not so sure. Would be great if you
>> > > could try
>> > > it, if you have time!
>> > > On Linux the binary size increases with 0.07% comparing a chromium
>> build
>> > > with
>> > > Opus build with -O3 compared to -Os. Same for my Chromium Android
>>
> checkout.
>
>> > >
>> >
>> > (Please post absolute numbers, not percentages. "From X kB to Y kB, an
>> > increase of z kB.". Linux uses -O2 by default for all files, not -Os,
>> > Android uses -Os.)
>> >
>>
>
>  The Linux numbers are not important since this CL now only affects
>> Android on
>> ARM.
>> I've tried to build Chrome on Android, but didn't manage. aurimas@
>> offered to
>> help.
>>
>
>  How much is considered an acceptable increase?
>>
>
>  >
>> > >
>> > >
>> > > https://codereview.chromium.org/354903003/
>> > >
>> >
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> email
>> > to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>
> I did a local release build of chrome_apk target and the .so binary size
> went
> from 34144514 to 34177282 bytes or 32768 byte increase. I will leave it to
> yfriendman@ to decide what is a reasonable increase.
>
> https://codereview.chromium.org/354903003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698