Slashdot Mirror


Embedded Linux Achieves One-Second Boot Time

Sam writes "A new goalpost has been set in the race for faster bootup times. MontaVista Software announced (and demonstrated at the Virtual Freescale Technology Forum) a dashboard application going from cold boot to operational in one second flat on their embedded Linux platform. Although this is unlikely to immediately benefit your average Linux user, previous real-time patches have eventually made their way into the main kernel."

23 of 164 comments (clear)

  1. Finally by 2names · · Score: 4, Funny

    I can post before I log in.

    --
    "I'm just here to regulate funkiness."
  2. Been there, done that by alain94040 · · Score: 3, Informative

    I'm surprised that this is news. I remember working a few years ago on booting Linux (also the MontaVista version) in 600 million cycles flat, which for a CPU running at 600 MHz, is exactly one second as well.

    You can even still: watch a video of this here

    1. Re:Been there, done that by characterZer0 · · Score: 4, Interesting

      How many of those 600 million cycles are performing operations as opposed to waiting for IO and memory access?

      How many operations does it take to boot Linux?

      --
      Go green: turn off your refrigerator.
  3. It's 1980 all over again by JonTurner · · Score: 5, Interesting

    Impressive and would be a huge improvement over the current state of things.

    But then again, my 1Mhz Apple ][ could cold boot in just a couple seconds.Of course, loading Applesoft Basic from tape took an additional two minutes but Integer Basic was in the ROM.

    Michael Abrash wrote a great article about this in Dr. Dobbs magazine in the 90s. His young daughter (5 years old?) asked him why he never used his "fast" computer. Abrash was using a state-of-the-art 266mhz DX2 powerhouse and couldn't figure out what she meant. She was referring to the old Vic-20 in the corner that would boot in just a few seconds. Windows 3.0 took several minutes to load. IIRC, the article was titled "perception is everything"

    1. Re:It's 1980 all over again by fuzzyfuzzyfungus · · Score: 2

      I wonder how much of the boot slowdown has to do with architectural change(loading from slow disk to plentiful RAM vs. small amount of RAM and lots of stuff burned into ROM, the rise of networking as a more or less assumed part of the boot process, increase in the number of highly complex peripherals that need to be negotiated with), and how much has to do with the OS gradually grabbing more of what applications historically had to do(DOS loaded like the wind; but didn't actually load very much).

    2. Re:It's 1980 all over again by noname444 · · Score: 3, Informative

      A DX2, at 266 MHz, in the early 90s? If this is an Intel 486 we're talking about I think you've gotten the numbers a bit wrong. Mine ran at 33 MHz.

    3. Re:It's 1980 all over again by Nethemas+the+Great · · Score: 4, Informative

      FACT NAZI Observation: The 486DX came in 20, 25, 33 or if you were unlucky 50Mhz variants. Consequently a clock doubled (DX2) 486 was not capable of anything close to 266Mhz. That wasn't achieved until the Tillamook-Pentium much later.

      --
      Two of my imaginary friends reproduced once ... with negative results.
  4. Does it matter all that much? by 93+Escort+Wagon · · Score: 3, Interesting

    Okay, I haven't been using desktop Linux on a day to day basis since around 2003; but even then, sleeping and hibernating worked reasonably well - so I didn't reboot all that often. On my Mac, the only time I reboot is when an update forces me to. So (serious question) why is faster boot times all that important? I wouldn't think devices w/ embedded Linux would shut down regularly, but maybe I'm wrong...

    --
    #DeleteChrome
  5. Re:Not needed by maxwell+demon · · Score: 2, Insightful

    A computer sitting idle needlessly consumes power. A computer switched off doesn't.

    --
    The Tao of math: The numbers you can count are not the real numbers.
  6. Re:That's pretty cool... by jd · · Score: 5, Informative

    CoreBoot (formerly known as LinuxBIOS) will boot a full Linux kernel on a general-purpose machine in 3 seconds. Ok, it's two seconds longer, but it ain't bad.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  7. Re:Not needed by Abreu · · Score: 5, Insightful

    I'll bite.

    Some of us want to run laptops, netbooks and other devices where the ability to shut down completely and then turn on quickly, using zero battery in the meantime would be very useful.

    --
    No sig for the moment.
  8. Re:Nice text color by Idiomatick · · Score: 4, Funny

    It isn't the black itself that gets to them it is the black on white action.

  9. Surf internet in 1 second? by odin84gk · · Score: 2

    Give me a call when they can go from off to Google in less than 1 second. (OS boot, wireless initialization, browser start, google reply). Shoot, I would be impressed with 10 seconds.

  10. Re:Nice text color by sjames · · Score: 5, Funny

    They just want to simulate the effect of printing marketing materials on a worn-out laser printer in need of toner because that looks sooooo professional.

    Nothing says we're professionals and have important information for you like a crooked illegible photocopy except perhaps a grade-school spirit duplicator. Expect funky light purple text next. The holy grail, of course, will be a wrinkled paper background that actually makes it look like they dug the web page back out of the trash and gave it to you.

  11. Direct link to MontaVista Video on YouTube by Qubit · · Score: 5, Informative

    The video was hard to find on the given links. One of them even had the audacity to ask me to log in to view it. Yeah, as if.

    One Second Linux Boot Demonstration (new version)

    Also, kudos on the music choice. The wah-wah pedal in the opening music really gives the tech demo that "porn soundtrack" feel I know you were going for.

    --

    coding is life /* the rest is */
  12. Re:That's pretty cool... by maxwell+demon · · Score: 2, Informative

    No, it's a 200% increase.

    --
    The Tao of math: The numbers you can count are not the real numbers.
  13. Re:Awesome! by BrokenHalo · · Score: 3, Insightful

    Yeah, but you know you're really cool when you have no idea how long it takes to boot your machine. After all, you only do it once. ;-)

  14. Re:That's pretty cool... by ezzzD55J · · Score: 2, Informative

    It's 300% of the old boottime, which is a 200% increase.

  15. Re:Nice text color by Anonymous Coward · · Score: 2, Informative
  16. Completely overrated and someone else did it first by synthesizerpatel · · Score: 3, Insightful

    I'm working as an embedded driver software engineer and setup our company's OpenEmbedded build system to provide an end-to-end build environment for our embedded offering and while I can't find the link at the moment -- the one second boot time has been done before and was posted on TI's OMAP developer site a while ago. If I remember correctly it's mostly about U-Boot and how it copies the kernel into memory (byte by byte as opposed to streaming it) which is where you get the majority of your time decrease.

    Either way, MontaVista is not the first on this one and it's a shame they're pretending they are.

    The one second boot time is also never going to benefit regular PCs as they achieve it due to the nature of embedded systems -- you build a distro for your specific hardware which means no probing, none of that BIOS junk. No looking for the 'first' boot device.. U-Boot can be configured to automatically jump to the booting phase so you're already faster there. Beyond that, load and decompress your kernel (it'd be faster if your kernel wasn't compressed too wouldn't it?)..

    So, chalk this up to having a kernel built specifically for your hardware and a boot-loader that is set to only boot one way, ever.

  17. Re:Completely overrated and someone else did it fi by synthesizerpatel · · Score: 5, Informative

    Found it.

    Originally posted by 'Mohanky' June 2008:

    http://wiki.davincidsp.com/index.php/All_This_For_1_Second_Boot

  18. Re:Nice text color by Teun · · Score: 2, Funny

    What are you talking about? On my monitor his site is shown with the same amber colour like any other.

    --
    "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
  19. Re:Awesome! by Bakkster · · Score: 2, Informative

    The BIOS isn't always the problem... if it takes three seconds for the video card to become usable (fans running, memory initialized, etc), you're not going to get less than a three-second perceived boot time, no matter how fast you make everything else happen. The same goes for other hardware. If they happen in series (or worse, if they have to happen in series), then that can add up - that can be mitigated by the BIOS, of course, but I can see why boot times might get longer.

    This is absolutely part of the problem. The power supply needs to turn on its fans and generate stable voltage, then the case fans and mobo power conditioning needs to stabilize. Then you get to touch the BIOS, which probably does a staggered startup of most devices to prevent power supply droop. As stated, all of this hardware then needs to reach a usable state, both mechanically and electrically.

    In a car, the power supply is DC to start with, the hardware is smaller and simpler (requiring fewer moving parts to wait for), the BIOS has mostly sensors to startup (If not done within the OS), and the OS needs only to load the basics and a few drivers from ROM. One second startups are common for small embedded systems, including to embedded versions of Linux. Just don't expect it on a desktop.

    --
    Write your representatives! Repeal the 2nd Law of Thermodynamics!