Correct build flags

710 views
Skip to first unread message

Niranjan Rao

unread,
Feb 10, 2023, 4:06:05 PM2/10/23
to Chromium-dev

Greetings,

I did my local compilation for version 109.0.5414.74 on Ubuntu. What I am discovering is my build slower by magnitude than the one installed using operating system installer. Rough observation shows my build uses higher CPU also.

My theory is wrong or missing build flags. I did follow steps at https://www.chromium.org/developers/gn-build-configuration/ and this is how my args.gn file looks like. Are these right flags to use for the release build?

is_component_build = false
is_debug = false
symbol_level = 0
v8_symbol_level=0
enable_nacl = false
blink_symbol_level=0

enable_linux_installer = true
#is_official_build = true

Regards,

Niranjan

--

Niranjan Rao | Sr.Architect
Paymentus
Paymentus Corporation The Real-Time Bill Payment CompanyTM
860 Hillview Court Suite 220 Milpitas CA 95035
www.paymentus.com

Christian Biesinger

unread,
Feb 10, 2023, 4:11:32 PM2/10/23
to nr...@paymentus.com, Chromium-dev
On Fri, Feb 10, 2023 at 4:05 PM Niranjan Rao <nr...@paymentus.com> wrote:
>
> Greetings,
>
> I did my local compilation for version 109.0.5414.74 on Ubuntu. What I am discovering is my build slower by magnitude than the one installed using operating system installer. Rough observation shows my build uses higher CPU also.
>
> My theory is wrong or missing build flags. I did follow steps at https://www.chromium.org/developers/gn-build-configuration/ and this is how my args.gn file looks like. Are these right flags to use for the release build?
>
> is_component_build = false
> is_debug = false
> symbol_level = 0
> v8_symbol_level=0
> enable_nacl = false
> blink_symbol_level=0
>
> enable_linux_installer = true
> #is_official_build = true

You should set is_official_build to true. Why did you comment it out?

Christian

Niranjan Rao

unread,
Feb 10, 2023, 4:35:22 PM2/10/23
to Christian Biesinger, Chromium-dev

I commented out because the page https://www.chromium.org/developers/gn-build-configuration/#official-chrome-build, says you need to be googler and refers to src-internal. Last time I tried enabling it, I got some errors, right now not able to recall.


Regards,

Niranjan

On 2/10/23 13:09, Christian Biesinger wrote:
On Fri, Feb 10, 2023 at 4: 05 PM Niranjan Rao <nrao@ paymentus. com> wrote: > > 
Greetings, > > I did my local compilation for version 109. 0. 5414. 74 on 
Ubuntu. What I am discovering is my build slower by magnitude than the one
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
ZjQcmQRYFpfptBannerEnd

On Fri, Feb 10, 2023 at 4:05 PM Niranjan Rao <nr...@paymentus.com> wrote:
>
> Greetings,
>
> I did my local compilation for version 109.0.5414.74 on Ubuntu. What I am discovering is my build slower by magnitude than the one installed using operating system installer. Rough observation shows my build uses higher CPU also.
>
> My theory is wrong or missing build flags. I did follow steps at https://urldefense.com/v3/__https://www.chromium.org/developers/gn-build-configuration/__;!!CbU71lC5478d!J44rJ35JKaO0ZFyaPE7898n7WpcMdOTgumjnjiYKvqmbyA9kVYEC8HZgJoi6NW6jNNVwYGPRSJbcrathMgLc$  <https://urldefense.com/v3/__https://www.chromium.org/developers/gn-build-configuration/__;!!CbU71lC5478d!J44rJ35JKaO0ZFyaPE7898n7WpcMdOTgumjnjiYKvqmbyA9kVYEC8HZgJoi6NW6jNNVwYGPRSJbcrathMgLc$>  and this is how my args.gn file looks like. Are these right flags to use for the release build?
>
> is_component_build = false
> is_debug = false
> symbol_level = 0
> v8_symbol_level=0
> enable_nacl = false
> blink_symbol_level=0
>
> enable_linux_installer = true
> #is_official_build = true

You should set is_official_build to true. Why did you comment it out?

Christian

Peter Boström

unread,
Feb 10, 2023, 4:39:48 PM2/10/23
to nr...@paymentus.com, Christian Biesinger, Chromium-dev
is_chrome_branded is what's Googler only, official build is mostly optimization level stuff and some behavior you'd want in a build released to users.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/8bdebf3d-ef7a-bbc3-d11e-5bc6c0e88992%40paymentus.com.

Christian Biesinger

unread,
Feb 10, 2023, 4:43:31 PM2/10/23
to Niranjan Rao, Chromium-dev
That is misleading; is_chrome_branded is for Googlers, but
is_official_build is what you should use for something to ship to
users. It should work fine.

Christian

Lei Zhang

unread,
Feb 10, 2023, 4:51:14 PM2/10/23
to cbies...@chromium.org, Niranjan Rao, Chromium-dev
Although the linking process for an official build can be very CPU and memory intensive. Possibly even more so with PGO turned on. The referenced doc also explains how to turn PGO off.

I'm not 100% sure and I didn't check, but the PGO data may not be public. See docs/pgo.md for more info.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Reply all
Reply to author
Forward
0 new messages