Message ID | 20230925113508.1087898-1-ross.burton@arm.com |
---|---|
State | Accepted, archived |
Commit | 8361411ea0d67a2620680e2e86045799e072c80a |
Headers | show |
Series | webkitgtk: reduce size of -dbg package | expand |
Thanks! What's the next biggest offender? Alex On Mon, 25 Sept 2023 at 13:35, Ross Burton <ross.burton@arm.com> wrote: > > From: Ross Burton <ross.burton@arm.com> > > Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of > the debug symbols (4.3GB to 700M at time of writing): > > Level 1 produces minimal information, enough for making backtraces in > parts of the program that you don't plan to debug. This includes > descriptions of functions and external variables, and line number > tables, but no information about local variables. > > This makes the sstate objects a lot more manageable, and packaging > faster. On my machine: > > PKG TASK ABSDIFF RELDIFF WALLTIME1 -> WALLTIME2 > webkitgtk do_compile -613.8s -21.7% 2823.3s -> 2209.5s > webkitgtk do_package -143.4s -53.6% 267.7s -> 124.3s > webkitgtk do_install -93.7s -60.1% 156.0s -> 62.3s > webkitgtk do_populate_sysroot -51.6s -86.4% 59.7s -> 8.1s > > Cumulative walltime: > -892.9s -26.5% 56:06.3 (3366.3s) -> 41:13.4 (2473.4s) > > Signed-off-by: Ross Burton <ross.burton@arm.com> > --- > meta/recipes-sato/webkit/webkitgtk_2.40.5.bb | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > index a0c97aa593c..0c54f202ca5 100644 > --- a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > +++ b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > @@ -87,6 +87,10 @@ EXTRA_OECMAKE = " \ > -DUSE_GTK4=ON \ > " > > +# Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the > +# debug symbols (4.3GB to 700M at time of writing) > +DEBUG_FLAGS:append = "${@oe.utils.vartrue('DEBUG_BUILD', '', ' -g1', d)}" > + > # Javascript JIT is not supported on ARC > EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " > # By default 25-bit "medium" calls are used on ARC > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#188185): https://lists.openembedded.org/g/openembedded-core/message/188185 > Mute This Topic: https://lists.openembedded.org/mt/101571944/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Mon, Sep 25, 2023 at 4:35 AM Ross Burton <ross.burton@arm.com> wrote: > > From: Ross Burton <ross.burton@arm.com> > > Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of > the debug symbols (4.3GB to 700M at time of writing): > > Level 1 produces minimal information, enough for making backtraces in > parts of the program that you don't plan to debug. This includes > descriptions of functions and external variables, and line number > tables, but no information about local variables. > > This makes the sstate objects a lot more manageable, and packaging > faster. On my machine: > > PKG TASK ABSDIFF RELDIFF WALLTIME1 -> WALLTIME2 > webkitgtk do_compile -613.8s -21.7% 2823.3s -> 2209.5s > webkitgtk do_package -143.4s -53.6% 267.7s -> 124.3s > webkitgtk do_install -93.7s -60.1% 156.0s -> 62.3s > webkitgtk do_populate_sysroot -51.6s -86.4% 59.7s -> 8.1s > > Cumulative walltime: > -892.9s -26.5% 56:06.3 (3366.3s) -> 41:13.4 (2473.4s) > Thanks, we have had it for qtwebengine for a while. Btw. we need something similar for ./meta-oe/recipes-support/webkitgtk/webkitgtk3_2.42.0.bb > Signed-off-by: Ross Burton <ross.burton@arm.com> > --- > meta/recipes-sato/webkit/webkitgtk_2.40.5.bb | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > index a0c97aa593c..0c54f202ca5 100644 > --- a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > +++ b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb > @@ -87,6 +87,10 @@ EXTRA_OECMAKE = " \ > -DUSE_GTK4=ON \ > " > > +# Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the > +# debug symbols (4.3GB to 700M at time of writing) > +DEBUG_FLAGS:append = "${@oe.utils.vartrue('DEBUG_BUILD', '', ' -g1', d)}" > + > # Javascript JIT is not supported on ARC > EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " > # By default 25-bit "medium" calls are used on ARC > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#188185): https://lists.openembedded.org/g/openembedded-core/message/188185 > Mute This Topic: https://lists.openembedded.org/mt/101571944/1997914 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb index a0c97aa593c..0c54f202ca5 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.40.5.bb @@ -87,6 +87,10 @@ EXTRA_OECMAKE = " \ -DUSE_GTK4=ON \ " +# Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the +# debug symbols (4.3GB to 700M at time of writing) +DEBUG_FLAGS:append = "${@oe.utils.vartrue('DEBUG_BUILD', '', ' -g1', d)}" + # Javascript JIT is not supported on ARC EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " # By default 25-bit "medium" calls are used on ARC