Elektrine lite

← Feed

@manawyrm@chaos.social

Post #716915

2024-09-01 21:22 UTC

New blog post: Executing Linux applications on a Raspberry Pi in less than 3.5s from power-up! 🚀🏎️ (and other power saving tricks) https://kittenlabs.de/blog/2024/09/01/extreme-pi-boot-optimization/

Replies (14)

  • @funkylab@mastodon.social 2024-09-01 21:41

    @manawyrm cool stuff! Have you tried with kernel compression through lz4, I.e., CONFIG_KERNEL_LZ4 ? Iirc, that beat the default gzip decompression very solidly in speed. You might also want to try _ZSTD, as I suspect the lower decompression speed of that might balance with the potentially higher compression ratio.

    Open ##1275593

  • @Purple@woof.tech 2024-09-01 21:43

    @manawyrm Great write-up!

    Open ##1275606

  • @diebarschlampe@mas.to 2024-09-01 21:47

    @manawyrm That's seriously fast *tips hat* One question though - why go the buildroot way instead of "just" building a custom kernel image?

    Open ##1275607

  • @ironcladlou@hachyderm.io 2024-09-01 22:13

    @manawyrm this is an excellent study into power tuning the pi. I am going to use some of these settings for a pi project I’ve been working on for a while. Boot up time always disappoints me (I’m using bookworm 12 on an original pi zero w) Great work! Thank you!

    Open ##1275616

  • @cr1901@mastodon.social 2024-09-01 22:40

    @manawyrm I definitely wish I knew about USB-SD-Mux a year ago... but a little pricey for me right now. Also, in the last graph, are pin 0 and pin 1 both part of the first userspace app to run, or is pin 0 "boot is done, from kernelspace" and pin 1 is "toggle a pin from userspace"?

    Open ##1275617

  • @G33KatWork@infosec.exchange 2024-09-01 22:47

    @manawyrm I need one of these SD-Card muxes! 😍

    Open ##1275621

  • @gsuberland@chaos.social 2024-09-01 22:49

    @manawyrm something worth trying is dropping the 5V supply voltage for the Pi down to 4V. the limited schematics available show the board using PAM2306 and RT8088 buck regulators to derive the 3.3V and VDD_CORE voltage rails. the PAM2306 goes from 60% efficient at 5V up to 85% efficient at 4V in, which is a major increase. the RT8088 gains a couple of percent efficiency by dropping to 4V too.

    Open ##1275623

  • @jasmin@queer.group 2024-09-01 23:00

    @manawyrm dang, I am seriously impressed by this nerd level of knowledge! thanks for the blog post!!

    Open ##1275641

  • @plwt@mstdn.social 2024-09-01 23:27

    @manawyrm Thank you so much for writing and sharing that - absolutely fascinating. I had already turned off the LED and carefully set the temperature the active cooling kicks in, but there are other tips there that I am keen to try. Thank you again for your work, really appreciate it.

    Open ##1275642

  • @jonny@neuromatch.social 2024-09-01 23:31

    @manawyrm Thats sick as hell, thanks for sharing the process :)

    Open ##1275643

  • @uint8_t@chaos.social 2024-09-02 07:57

    @manawyrm elsewhere I don’t think I’ve seen much use of watt-seconds as unit (it’s J)

    Open ##1275644

  • @whynothugo@fosstodon.org 2024-09-02 08:15

    @manawyrm Really interesting read.

    Open ##1275675

  • @daniel_bohrer@chaos.social 2024-09-02 12:24

    @manawyrm oh nice, that was exactly the setup and the aim of my master's thesis (8 years ago, with a sloooow RPi 1, and I didn't finish it, but I got my current job by sending patches related to it…)

    Open ##1275676

  • @funkylab@mastodon.social 2024-09-02 15:57

    @manawyrm having slept over this: - Assuming you can do an immutable root (you probably can, and actually want to, makes the whole thing less likely to fail), rootfs on EROFS is probably the way to go - Still surprised about LZ4 vmlinuz not being in total less energy than uncompressed vmlinux, might actually need to investigate that at some point: in the end, if reading twice as much data, to really reduce energy usage, you'd have to run at ~less than half the system current draw, and I don't…

    Open ##1275679