• Re: [gentoo-user] Compile times on Raspberry Pi 5?

    From Eli Schwartz@21:1/5 to All on Sun Apr 27 07:10:01 2025
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------EbmSNGLURy72oDqLmpMplagl
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    On 4/27/25 12:38 AM, whiteman808 wrote:
    Hello Gentoo users

    Have you tried to install Gentoo on the Raspberry Pi 5? I want to
    buy one and set up budget home server on it.

    How much average time it will take before I'll have working stage3 with running nginx, gitea, docker etc.? Will it take days or can I finish
    setting up rpi server in one day?

    I mean running Gentoo arm64 from official hat providing nvme support,
    not microSD card.

    Will compile times be similar to achieved on my old Lenovo ThinkPad
    X220? If so, that would be acceptable for me.

    Thank you, whiteman808


    You may optionally choose to use the official binhost, in which case you
    will avoid quite a bit of compilation. For example, nginx and docker are
    both available as binpackages (but not gitea, which is not even stable
    for arm64).

    https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart

    As usual with binpackages, this fully respects your USE flags (but not
    CFLAGS) and transparently falls back to compiling from source for all
    packages:

    - without binary availability, or
    - for which you prefer a specific USE flag lacking in binary
    availability


    --
    Eli Schwartz

    --------------EbmSNGLURy72oDqLmpMplagl--

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCaA27jQUDAAAAAAAKCRCEp9ErcA0vV7ob AQDMKr3Usj2qJ/87ioJTckobXviZqTsxPgIBmS9BOriqCQEAiTDkpndq7vhmeO75PJPyHH613+wP S3N3PxjBTUG8/AI=
    =3ep5
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From whiteman808@21:1/5 to All on Sun Apr 27 06:50:01 2025
    Hello Gentoo users

    Have you tried to install Gentoo on the Raspberry Pi 5? I want to
    buy one and set up budget home server on it.

    How much average time it will take before I'll have working stage3 with
    running nginx, gitea, docker etc.? Will it take days or can I finish
    setting up rpi server in one day?

    I mean running Gentoo arm64 from official hat providing nvme support,
    not microSD card.

    Will compile times be similar to achieved on my old Lenovo ThinkPad
    X220? If so, that would be acceptable for me.

    Thank you, whiteman808

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yahoo@21:1/5 to All on Sun Apr 27 17:50:01 2025
    Il 27/04/25 06:38, whiteman808 ha scritto:
    Hello Gentoo users

    Have you tried to install Gentoo on the Raspberry Pi 5? I want to
    buy one and set up budget home server on it.

    How much average time it will take before I'll have working stage3 with running nginx, gitea, docker etc.? Will it take days or can I finish
    setting up rpi server in one day?

    I mean running Gentoo arm64 from official hat providing nvme support,
    not microSD card.

    Will compile times be similar to achieved on my old Lenovo ThinkPad
    X220? If so, that would be acceptable for me.


    Not clear to me if you want to just install the stage3 or do the usual install-customize-rebuild @system @world. I'll answer for the latter.

    I have a Gentoo-based Rpi4, I cross-compile most of the packages so
    can't provide numbers for comparison except for the few that I have to
    compile natively due to crossdev issues, e.g.:

    # qlop -mav git
    dev-vcs/git-2.49.0-r1: 14′47″ average for 1 merge

    # qlop -mav apache
    www-servers/apache-2.4.63: 9′55″ average for 2 merges

    For the Rpi4 I'd bet on days before you get a complete running system.
    Rpi5 is just a bit more powerful but I'd go crossdev or binhost anyway.

    In case you haven't seen yet, there are some Rpi guides on Gentoo: https://wiki.gentoo.org/wiki/Raspberry_Pi_Install_Guide https://wiki.gentoo.org/wiki/ARM

    For the kernel I use the official raspberry tree and build it from source: https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel

    Last but not least, crossdev:
    https://wiki.gentoo.org/wiki/Crossdev

    I use the Rpi4 as a headless dns server (pihole).

    raf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nate Eldredge@21:1/5 to All on Sun Apr 27 23:10:01 2025
    The RPi5 is quite a bit faster than RPi4, and none of the packages you're describing are particularly compile-intensive. Having an SSD will help quite a bit. Also, if you have a fan and a good power supply, you'll want to change the CPU governor from
    the default "powersave", which limits the CPU clock speed to 1.5 GHz, to "schedutil", which gets you up to 2.4 GHz.

    Mine has a USB3 SSD (probably not as fast as your nvme one) and schedutil governor. I do build everything from source, including some big packages like llvm/clang, and it's quite doable. Here's some build times for things you'll need:

    app-containers/containerd: 2′02″ average for 1 merge
    app-containers/docker: 2′23″ average for 1 merge
    app-containers/runc: 43s average for 1 merge
    dev-lang/go: 4′12″ average for 1 merge
    dev-vcs/git: 2′23″ average for 17 merges
    sys-devel/gcc: 1:34:41 average for 18 merges
    www-apps/gitea: 3′59″ average for 1 merge
    www-servers/nginx: 53s average for 1 merge

    So I think you'll be fine. The largest part of build time will probably be building gcc, so if you use a binary package there, it will cut it down substantially.

    For contrast, here are build times for some larger packages that you probably don't need. Definitely takes a while, but not days.

    app-office/libreoffice: 4:21:27 average for 1 merge
    dev-lang/rust: 1:34:12 average for 20 merges
    llvm-core/clang: 2:24:44 average for 6 merges
    llvm-core/llvm: 2:26:21 average for 6 merges
    net-libs/nodejs: 4:25:39 average for 18 merges
    sys-devel/clang: 2:26:35 average for 10 merges
    sys-devel/llvm: 2:23:51 average for 14 merges
    www-client/firefox: 2:20:08 average for 36 merges

    On Apr 26, 2025, at 22:38, whiteman808 <whiteman808@paraboletancza.org> wrote:

    Hello Gentoo users

    Have you tried to install Gentoo on the Raspberry Pi 5? I want to
    buy one and set up budget home server on it.

    How much average time it will take before I'll have working stage3 with running nginx, gitea, docker etc.? Will it take days or can I finish
    setting up rpi server in one day?

    I mean running Gentoo arm64 from official hat providing nvme support,
    not microSD card.

    Will compile times be similar to achieved on my old Lenovo ThinkPad
    X220? If so, that would be acceptable for me.

    Thank you, whiteman808


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)