I'd really like to get my raspberry pi booting in a couple seconds. I have a few ideas for things I'd like to try but the boot time is too long. Don't need X11 but I would like to use raspbian.
Linux Kernel Fastboot [pdf]
81–90 of 121 posts
Re: Linux Kernel Fastboot [pdf]
#82Earlier quoted context omitted.
Lazy loading is not unique for the web or in anyway a new idea. The web is in fact one of the last places it has appeared in.
Indeed. In apps lazy loading is something you add when you need it. But for kernels, it’s the first problem you tackle: how to pick yourself up with your bootstraps. Booting is tricky now, and it always has been. Right back to the early machines that were booted by manually entering machine code via switches. Interestingly AWS virtual machines still boot in 16-bit mode, then bootstrap up through 32 and then 64 bit mo…
Re: Linux Kernel Fastboot [pdf]
#83Earlier quoted context omitted.
I used Powertop on Linux, yes. For Windows, I simply let the laptop run until it had used 50% of the battery. Watts = Joules / second. On Linux, I used the same methodo to calibrate against powertop. (But found less than 5% of discrepancy anyway.)
The only valid approach is to remove the battery and plug it into a kill-a-watt or similar.
If we are talking about battery-life at least.
Re: Linux Kernel Fastboot [pdf]
#84Earlier quoted context omitted.
I'd love to hear more about the tweaks you've done to Arch. I've gone little beyond a few power management things myself (On a Thinkpad X1C Gen 6). I get decent battery life, but I know it could be better. And giving up Arch would be a tough sell to myself.
I have the same laptop as you. Just install the "tlp" package (The Laptop Project). I'm using Debian but the Arch package should have the same name. You can tweak the settings (/etc/default/tlp on Debian) but out of the box that should get you arround ~4W depending on what is running on your laptop. With light usage that gives more than 10 hours of battery life, even if you don't charge the battery to the max to incr…
Re: Linux Kernel Fastboot [pdf]
#85I love the bit on slide 16 where initializing 8GB of RAM takes 100MS, so they boot with only 2GB and then hotplug in more memory later.
We've been progressively loading webpages for years. It's like the 7th layer of the stack is working its way down.
Re: Linux Kernel Fastboot [pdf]
#86Earlier quoted context omitted.
I'd love to hear more about the tweaks you've done to Arch. I've gone little beyond a few power management things myself (On a Thinkpad X1C Gen 6). I get decent battery life, but I know it could be better. And giving up Arch would be a tough sell to myself.
Very little was needed at all, and what I did do is mostly working around firmware bugs. - Force deep sleep mode, as s2idle doesn't work. - Set the ASPM policy. To anything. Basically the default doesn't work. (I went with 'powersave', obviously.) - Run powertop --auto-tune on boot. - Set the cool-bottom thermal profile, but that's just to make it work as a lap top. - Run a BIOS upgrade. :V (fwupdmgr did the whole jo…
Re: Linux Kernel Fastboot [pdf]
#87Earlier quoted context omitted.
Indeed. In apps lazy loading is something you add when you need it. But for kernels, it’s the first problem you tackle: how to pick yourself up with your bootstraps. Booting is tricky now, and it always has been. Right back to the early machines that were booted by manually entering machine code via switches. Interestingly AWS virtual machines still boot in 16-bit mode, then bootstrap up through 32 and then 64 bit mo…
All Intel-compatible and emulated Intel-compatible processors do this. You'd have to run ARM to avoid it.
Re: Linux Kernel Fastboot [pdf]
#88Earlier quoted context omitted.
I'd love to hear more about the tweaks you've done to Arch. I've gone little beyond a few power management things myself (On a Thinkpad X1C Gen 6). I get decent battery life, but I know it could be better. And giving up Arch would be a tough sell to myself.
I run Fedora on a Thinkpad X1C Gen 3. tlp[1] has been, by far, the best tool in optimising my power usage. powertop for some monitoring, as these days it recommends some less than ideal tunables, especially with regards to SATA power management ("med_power_with_dipm" vs "min_power" [2][3]). Some modules also have blacklists that prevent certain power saving modes from being enabled. This is true for the snd-hda-intel…
Re: Linux Kernel Fastboot [pdf]
#89Earlier quoted context omitted.
I'd love to hear more about the tweaks you've done to Arch. I've gone little beyond a few power management things myself (On a Thinkpad X1C Gen 6). I get decent battery life, but I know it could be better. And giving up Arch would be a tough sell to myself.
The thing with arch is it’s mostly not more tweaks that give you better battery, it’s not having all the crap that Ubuntu preloads running that makes that happen.
Re: Linux Kernel Fastboot [pdf]
#90I love the bit on slide 16 where initializing 8GB of RAM takes 100MS, so they boot with only 2GB and then hotplug in more memory later.
There are some drawbacks to that. Memory flagged as hotplug can't be used by the kernel itself (because otherwise unplugging the RAM would risk crashing the system). That includes things like network buffers and a number of things which use the total RAM size as a guideline. There was a bug in a proposed kernel patch a while back, that we were testing. It ended up designating a good chunk of the machine's RAM as hotp…