profbit
Posts: 45
Joined: Fri May 05, 2017 4:34 am

Fastest way to boot RPi 3 fast

Sun May 28, 2017 3:30 pm

Good day,
I'm a bit pissed with RPi why it takes too much to load it. for the record, it took 31 seconds to boot.

-I am using Raspbian (jessie)
-w/ autostart script on python. (not heavy)

I've done some research and found out the buildroot to boot it 3-5 seconds. But I don't think that this would be compatible with my LCD screen to make it works when I used it. I don't know but as far as I've seen, buildroot is like a jailbreak OS which means full reset is a must. Thanks for the help.

W. H. Heydt
Posts: 13040
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Fastest way to boot RPi 3 fast

Sun May 28, 2017 3:58 pm

First off, there is no equivalent to "jailbreaking" for a Pi. It's not locked down to any particular OS. You can run any OS you want that will run at all.

That said....if you don't want to wait for your Pi to boot, don't turn it off. I have a number of them in the room I'm sitting in that stay on 24/7 and only get rebooted when a new kernel is installed.

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Fastest way to boot RPi 3 fast

Sun May 28, 2017 4:26 pm

boot_delay to 0, but I don't recommend to use with MicroSD cards (slow to start, may failure start), use with SSD storages. And check what services start at boot.

wh7qq
Posts: 1463
Joined: Thu Oct 09, 2014 2:50 am

Re: Fastest way to boot RPi 3 fast

Sun May 28, 2017 8:11 pm

That said....if you don't want to wait for your Pi to boot, don't turn it off.
I leave my RPi3 on all day and evening but turning off the monitor saves much current (40 watts vs. 5) and only takes a second or two to wake up. I worry about the power use as AC costs $0.45/kwh here.

Still, my RPi boots much faster than any of my Linux desktops.

profbit
Posts: 45
Joined: Fri May 05, 2017 4:34 am

Re: Fastest way to boot RPi 3 fast

Wed May 31, 2017 2:52 pm

W. H. Heydt wrote:First off, there is no equivalent to "jailbreaking" for a Pi. It's not locked down to any particular OS. You can run any OS you want that will run at all.

That said....if you don't want to wait for your Pi to boot, don't turn it off. I have a number of them in the room I'm sitting in that stay on 24/7 and only get rebooted when a new kernel is installed.
Isn't it risky to operate RPI 24/7? I am worried if this option will destroy my pi.

For the others, thanks for your reply!

jahboater
Posts: 5958
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Fastest way to boot RPi 3 fast

Wed May 31, 2017 3:18 pm

profbit wrote: Isn't it risky to operate RPI 24/7? I am worried if this option will destroy my pi.
It will not.
Its perfectly safe and normal to run Pi's non-stop for years.

wh7qq
Posts: 1463
Joined: Thu Oct 09, 2014 2:50 am

Re: Fastest way to boot RPi 3 fast

Wed May 31, 2017 7:00 pm

profbit wrote:
W. H. Heydt wrote:First off, there is no equivalent to "jailbreaking" for a Pi. It's not locked down to any particular OS. You can run any OS you want that will run at all.

That said....if you don't want to wait for your Pi to boot, don't turn it off. I have a number of them in the room I'm sitting in that stay on 24/7 and only get rebooted when a new kernel is installed.
Isn't it risky to operate RPI 24/7? I am worried if this option will destroy my pi.

For the others, thanks for your reply!
I have a B+ that has been connected to a fan and SSR to control my water heater and it has run 24/7 for two years now on wifi...no issue. And so what if you break it...ain't like it's one of the Crown jewels (albiet more functional). Just back up your uSD card so you can plug it into a new RPi in the unlikely event of a failure. If your usage is all that mission critical, have a new RPi standing by so you don't have to wait for a replacement.

W. H. Heydt
Posts: 13040
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Fastest way to boot RPi 3 fast

Wed May 31, 2017 8:17 pm

profbit wrote:
W. H. Heydt wrote:First off, there is no equivalent to "jailbreaking" for a Pi. It's not locked down to any particular OS. You can run any OS you want that will run at all.

That said....if you don't want to wait for your Pi to boot, don't turn it off. I have a number of them in the room I'm sitting in that stay on 24/7 and only get rebooted when a new kernel is installed.
Isn't it risky to operate RPI 24/7? I am worried if this option will destroy my pi.

For the others, thanks for your reply!
Expected service life is something 40 years...maybe 30 years if you overclock. Of course, a lightning strike on your power line could destroy it instantly if otherwise uprotected, but that has nothing to do with operational hours.

I suspect that by the time a Pi fails from old age it will be a museum piece, anyway. (I know the spec for the Computer History Museum in Mountain View, CA is "older than 10 years". I have Pis that are halfway there.)

User avatar
Gavinmc42
Posts: 4556
Joined: Wed Aug 28, 2013 3:31 am

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 4:53 am

Fastest boot is baremetal with Ultibo < 2secs.
PiCore Linux is a lightweight distribution, about 12secs? depends if you wait for network etc.
Use Buildroot to make your own Linux distribution, just take out what you don't need.

Got a bunch of cameras + Pi's. been running 2 1/2 years 24/7.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Strider64
Posts: 13
Joined: Sat May 13, 2017 12:35 pm
Location: Livonia (Detroit), Mi
Contact: Website

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 5:40 am

I know when I render videos that I take a break away from the computer. It does wonder for my stress. :D
"Insanity Is Doing the Same Thing Over and Over Again and Expecting Different Results" ~ Albert Einstein

jahboater
Posts: 5958
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 7:09 am

To see boot times for Raspbian do:-

Code: Select all

pi@Pi3:~ $ systemd-analyze
Startup finished in 2.673s (kernel) + 4.706s (userspace) = 7.379s
pi@Pi3:~ $ systemd-analyze blame
           884ms networking.service
           695ms lightdm.service
           602ms keyboard-setup.service
           386ms systemd-logind.service
           317ms plymouth-start.service
           312ms dhcpcd.service
           308ms chrony.service
           303ms rsyslog.service
           284ms avahi-daemon.service
           276ms systemd-udev-trigger.service
           272ms dphys-swapfile.service
           259ms rc-local.service
           224ms fake-hwclock.service
           219ms systemd-setup-dgram-qlen.service
           209ms udisks2.service
           204ms console-setup.service
           198ms systemd-fsck@dev-mmcblk0p1.service
           197ms kmod-static-nodes.service
           175ms kbd.service
           167ms sys-kernel-debug.mount
           154ms systemd-fsck-root.service
           136ms systemd-modules-load.service
           136ms polkitd.service
           130ms systemd-journal-flush.service
           129ms dev-mqueue.mount
           124ms plymouth-read-write.service
           106ms raspi-config.service
           104ms systemd-tmpfiles-setup-dev.service
            84ms systemd-remount-fs.service
            83ms triggerhappy.service
            83ms sys-kernel-config.mount
            81ms systemd-sysctl.service
            75ms bluetooth.service
            68ms user@1000.service
            64ms systemd-tmpfiles-setup.service
            49ms sys-fs-fuse-connections.mount
            39ms boot.mount
            38ms systemd-random-seed.service
            38ms ntp.service
            35ms plymouth-quit-wait.service
            31ms rtkit-daemon.service
            28ms plymouth-quit.service
            27ms systemd-user-sessions.service
            26ms systemd-tmpfiles-clean.service
            25ms systemd-update-utmp.service
            20ms var-log.mount
            18ms systemd-update-utmp-runlevel.service
            17ms systemd-udevd.service
            16ms tmp.mount
            13ms udev-finish.service

W. H. Heydt
Posts: 13040
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 3:07 pm

To give a little perspective...anyone worrying about how many seconds it takes to boot a Pi has never watched a mainframe boot. That can take half an hour.

Ernst
Posts: 1337
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 4:52 pm

W. H. Heydt wrote:To give a little perspective...anyone worrying about how many seconds it takes to boot a Pi has never watched a mainframe boot. That can take half an hour.
The first mainframe (ICT1500) I worked with took about 15 seconds to read the card deck :D
The first microcomputer (Mk14) I "worked" with took me several minutes to load the code into ram from the "keyboard" :D
The road to insanity is paved with static ip addresses

hippy
Posts: 8099
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Fastest way to boot RPi 3 fast

Thu Jun 01, 2017 5:44 pm

While the Pi doesn't have full power management capabilities; is there any way to have some sort of 'hibernation' mechanism where a system-wide snapshot could be taken which can be swiftly restored as a 'warm boot' ?

Return to “Beginners”