From: Adrian Bunk <bunk@stusta.de>
To: Khem Raj <raj.khem@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Very large size of libraries in core-image-minimal rootfs
Date: Wed, 27 Nov 2019 08:37:29 +0200 [thread overview]
Message-ID: <20191127063729.GA31353@localhost> (raw)
In-Reply-To: <CAMKF1sq6=mY5WbyCE2APxNzBvqurr65vvrdubMvnA7b=fOD0_w@mail.gmail.com>
On Tue, Nov 26, 2019 at 02:57:43PM -0800, Khem Raj wrote:
> On Tue, Nov 26, 2019 at 11:56 AM Adrian Bunk <bunk@stusta.de> wrote:
>...
> > > there are many other design considerations where musl might make more
> > > sense
> >
> > Which of these are not covered by linking only your application
> > with musl?
> >
> > It is not clear that all this outweights the constant pains of forcing
> > people to fix the steady stream of new musl issues for all recipes.
> >
> For a moment if you do not assume glibc == linux then
> Most of times issues are in application assuming wrong things from system.
> in cases where issues are
In general I consider portability a positive thing, but it is also
legitimate when an upstream makes the decision to use everything
provided by glibc.
But this is not really relevant when discussing what kind of effort
should be required from people contributing to OE - many build failures
and work are a price OE pays for musl compatibility, and it can be
questioned whether it is really worth spending scarce resources on that.
The effort is smaller and the benefits are clearer when supporting musl
only in a limited amount of recipes relevant for tiny systems.
>...
> > The combinations that are most relevant in practice are:
> > - normal: -O2 + glibc + systemd
> > - tiny: -Os + musl + busybox init
>
> again its two of many combinations with OE.
There are combinations that match common usecases, and there are
combinations that don't match common usecases.
Development and testing effort is best spent on combinations that
match common usecases.
poky-tiny building with -O2 is weird.
> > Using musl with -O2 or with systemd is far from the primary usecase
> > of using musl for size benefits.
> >
> > The other advantage of -Os is that it is also useful for non-tiny
> > systems since the benefits scale with the size of the filesystem.
> > It is a nice knob to fix kernel or userspace space problems that
> > does not change the API or ABI.
>
> perhaps, however, reducing code size is a design decision more than
> compiler switch problem. Throwing any code at the compiler and expecting
> it to optimize for a given vector is never optimal.
The compiler switch is part of the design decision, and on a tiny system
you do often not have the luxury of picking only some size
optimizations.
Tiny is when you have to squeeze bootloader, kernel and userspace
together on 4 MB flash.
cu
Adrian
next prev parent reply other threads:[~2019-11-27 6:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 18:37 Very large size of libraries in core-image-minimal rootfs Ankur Tyagi
2019-11-25 19:26 ` Ross Burton
2019-11-25 19:33 ` Ankur Tyagi
2019-11-25 19:49 ` Ross Burton
2019-11-25 19:54 ` Ankur Tyagi
2019-11-25 20:56 ` Ross Burton
2019-11-25 21:10 ` Adrian Bunk
2019-11-26 6:17 ` Ankur Tyagi
2019-11-26 9:17 ` Adrian Bunk
2019-11-26 18:17 ` Khem Raj
2019-11-26 18:27 ` Ankur Tyagi
2019-11-26 18:30 ` Khem Raj
2019-11-26 19:56 ` Adrian Bunk
2019-11-26 22:57 ` Khem Raj
2019-11-27 6:37 ` Adrian Bunk [this message]
2019-11-27 21:13 ` Khem Raj
2019-11-25 19:55 ` Adrian Bunk
2019-11-25 20:22 ` Ankur Tyagi
2019-11-25 20:57 ` Ross Burton
2019-11-26 6:16 ` Ankur Tyagi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191127063729.GA31353@localhost \
--to=bunk@stusta.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.