DIYBookScanner / spreadpi

Raspberry Pi image for controlling a DIYBookScanner via spreads
GNU General Public License v2.0
37 stars 11 forks source link

shorten pi boot time #11

Closed markvdb closed 10 years ago

markvdb commented 10 years ago

Whatever we can shave off of the pi's boot time before loading spreads should go in here. Let's start by measuring boot time with a fast sd card.

matti-kariluoma commented 10 years ago

I dunno how well-supported or realiable it is... but: linux has resume-from-hibernate. we could have the freshly-installed first run state as a hibernated state, disable creation of new hibernation states, and always resume from the same state.

downside: hard/infeasible for user to add software/daemons to their pi...?

upside: we never need to deal with it, since the hibernate-state is made when we build the image, and if we add software we can just build a new image.

markvdb commented 10 years ago

"1GHz 512MB overclocked and force_turbo=1 Pi, with a Class 10 SDHC, all desktop cruft removed, will boot headless Raspbian in approximately 38 seconds, start to finish."

markvdb commented 10 years ago

Some hints:

markvdb commented 10 years ago

Checked performance hints. Added noatime, nodiratime, moved /var/log and /var/run to tmpfs