Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Operating Systems Software Hardware

Why Do Computers Take So Long to Boot Up? 975

An anonymous reader writes "Computers take too long to boot up, and it doesn't make sense to me. Mine takes around 30 seconds; it is double or triple that for some of my friends' computers that I have used. Why can't a computer turn on and off in an instant just like a TV? 99% of boots, my computer is doing the exact same thing. Then I get to Windows XP with maybe 50 to 75 megs of stuff in memory. My computer should be smart enough to just load that junk into memory and go with it. You could put this data right at the very start of the hard drive. Whenever you do something with the computer that actually changes what happens during boot, it could go through the real booting process and save the results. Doing this would also give you instant restarts. You just hit your restart button, the computer reloads the memory image, and you can be working again. Or am I wrong? Why haven't companies made it a priority to have 'instant on' desktops and laptops?"
This discussion has been archived. No new comments can be posted.

Why Do Computers Take So Long to Boot Up?

Comments Filter:
  • fast booting TVs ? (Score:5, Interesting)

    by HughsOnFirst ( 174255 ) on Sunday December 10, 2006 @09:52PM (#17189112)
    "Why can't a computer turn on and off in an instant just like a TV?"

    My new HDTV takes about a minute to boot. Something about an ATI bios
  • IBM's "Rapid Resume" (Score:1, Interesting)

    by hiryuu ( 125210 ) on Sunday December 10, 2006 @09:53PM (#17189124)
    IBM gave something like this a whirl back in the day (late 90s) with their Aptiva product line (at least - possibly with others), called "Rapid Resume." If I recall correctly, it just dumped the contents of all memory to an image file on the hard drive, and preserved the swap and shut down. The theory was, on start-up, it would just load the state right back into RAM, and away you went.

    The problems I recall it having for certain wer that the time to dump to disk was waaaaay too long, and I don't think it was compatible with FAT32, among other issues. Anyone else remember this thing?
  • by Anonymous Coward on Sunday December 10, 2006 @09:54PM (#17189126)
    I triple boot NetBSD, FreeBSD and x86 Solaris on my old desktop with an Athlon XP processor, and 512 MB of RAM. I don't recall off-hand the exact processor speed.

    Regardless, NetBSD is the fasted of the three. It takes a little over 6 seconds from power-on to the login screen. FreeBSD takes 11 seconds. Solaris is a bit longer, clocking in a 14 seconds. I know these times because I was curious of this question as well, and so I did the timings. All three systems are basically the default installs, plus whatever initialization file changes there have been from installing various pieces of software.

    Solaris does start into X, so that may be why it takes longer. Still, adding the 2 or so seconds it starts to get X running, NetBSD and FreeBSD are still less than Solaris.

  • by Joe The Dragon ( 967727 ) on Sunday December 10, 2006 @09:54PM (#17189142)
    On the first boot after a power loss or a reboot my cable box takes a minute or 2 to bootup.
  • by maird ( 699535 ) on Sunday December 10, 2006 @09:58PM (#17189172) Homepage
    I've spent a lot of time using Windows in virtual machines. For VM platforms that provide on-demand block allocation for virtual disks you can see a typical Windows boot do wild things like write to 250MB worth of blocks that were previously unused (i.e. the virtual disk grows by 250MB). NB: I'm talking about an ordinary boot, not one following installation of anything. It gets harder to see as virtual disk occupancy increases but it's an eye opener.
  • Valid point (Score:4, Interesting)

    by Mostly a lurker ( 634878 ) on Sunday December 10, 2006 @09:59PM (#17189184)
    it could go through the real booting process and save the results. Doing this would also give you instant restarts.
    Interestingly enough, on IBM mainframes 30 years ago, booting OS/VS1 under VM/370 took over five minutes. VM, however, had a SAVESYS command that allowed the state of a virtual machine to be saved and later loaded at any time. We were able to freeze OS/VS1 close to the end of the boot process and save it. The same can, of course, be done with VMware today. I see no technical reason why an operating system should not be able to do this semi automatically for native booting.

    Some will say hibernation gives the same facility, but (at least with Windows) a clean boot needs to be done fairly often (when using a Windows development box, I reboot it daily).

  • by dpbsmith ( 263124 ) on Sunday December 10, 2006 @10:01PM (#17189208) Homepage
    Indeed.

    In the beginning, say from Edison's development of the electric lighting system, through the invention of the fractional-horsepower motor which enabled the development of home appliances such as vacuum cleaners and washing machines, most things started up in a fraction of a second.

    Then came vacuum-tube-based electronics, which took a minute or two to warm up.

    Then came the "solid state" revolution, and, once again, things started up instantly. WIth the exception of television sets, which had a vacuum-tube-based "picture tubes" in them. However, manufacturers soon developed circuits that kept a small amount of current flowing to keep the filament partially warm while the set was "off," producing "instant-on" televisions.

    Early hobbyist computers were instant-on, too. Before diskette drives were common, the machine had everything it needed to boot stored in ROM and was up displaying some kind of welcome prompt within a fraction of a second. Even when the serpent entered Eden in the form of "operating systems," startup was quick. When you turned on an 48K Apple ][+ with a diskette drive and spiffy Apple DOS 3.3, there was a brief "whish" as the disk spun and loaded a few K of code into the processor, and there you were.

    It seems to me to be lazy design that says that booting consists of more than loading code into RAM and establishing state for the internal hardware. I have no idea why OSes must churn away for big fractions of a minute _running_ code. Why can't it just load a snapshot of the desired final state of RAM?

    What really gripes me is that lately Windows and Mac OS X have taken to presenting an empty _illusion_ of a faster startup. What seems to be happening is that all the minute-long processes still churn away, but the processes that present the UI run in parallel. The result is that the visible desktop gets into a displayable and interactive state quickly. But while the UI seems to be ready, nothign else is... particularly anything to do with the local network. If you actually try to do anything on that desktop, you still encounter minute-long delays.
  • by sbaker ( 47485 ) * on Sunday December 10, 2006 @10:02PM (#17189224) Homepage
    (I hope I have this story right...this is from memory)

    The story goes that the engineer working on the boot sequence for the original Mac was working late one night when Steve Jobs wanders past and asks how long the thing takes - the engineer is pretty happy that he's gotten it down to around 30 seconds (or however long it was) and that's probably good enough. Jobs then comments that they'll probably sell at least a million of these things - and each one will probably be booted a couple of times a day - and the machines will last maybe five years - so if he can save just one second more from the bootup time - that's equivelent to 113 years from the lives of Mac owners. So if you can save just one more second - that's like saving someone's life.

    Talk about pressure!

    But it's a serious point. The amount of human lifetimes that are wasted waiting for PC's to reboot is pretty horrifying - and there's a lot more than a million of them. Someone should take this seriously.
  • 30 Seconds? (Score:4, Interesting)

    by sammy baby ( 14909 ) on Sunday December 10, 2006 @10:05PM (#17189270) Journal
    Around 30 seconds?

    I work for a large Fortune 500 company which does IT consulting. My work-issue laptop comes with a lot of baggage, including anti-virus, anti-spyware, automatic backup & disaster recovery, a special system update program, et cetera, et cetera.

    How bad is it? It's like this: I can start my computer, and within about a minute, I get a standard XP pro login screen. After entering my username and password, I immediately get up and walk away, down a flight of stairs, out the door, and about a hundred yards to our campus cafeteria, where I'll buy a coffee. By the time I get back, my coffee is cool enough to drink, and my laptop is usually in a useable state.
  • Re:Hibernate (Score:2, Interesting)

    by starbird ( 409793 ) on Sunday December 10, 2006 @10:13PM (#17189344)
    Sleep works amazingly well on my G4 powerbook and osx. Its the only computer that I've owned that I can repeatedly put to sleep and expect to 'wake up'.

  • Re:Hibernate (Score:1, Interesting)

    by Anonymous Coward on Sunday December 10, 2006 @10:14PM (#17189354)
    Personally I don't reboot my desktop enough for it to be an issue.

    And you run Windows?? (Queue the "you must be a moron if you have to reboot..." comments)

    Seriously, though, I have to reboot my work machine a couple of times per day. Is it because I'm a moron? Possibly. It could also be the fact that my machine is locked down tight (disallowing me to diagnose it myself), and that even though I submitted the thing to Desktop Support countless times for random memory errors, the thing still isn't stable (even though they claim it's fixed). I used to think that they'd *want* to fix these productivity issues to save money, but then I realized that it's probably cheaper for them to tell me to work longer hours (I'm salaried). Whenever possible, I try to leave my laptop running overnight. However, since I work at multiple sites, I'm usually forced to turn it off. It's not uncommon for it to take me 20-30 minutes per day to start up my machine (I usually have to reboot many, many times before I can avoid the memory error). Desktop support has "fixed" it several times now. Begging them to reload it has gone on deaf ears.

    To be fair, I suppose I don't have to restart my home machines too often, unless I install an update or some software (still annoying). I wish I could work from home, but they tell me it's a security risk. Better to waste time rebooting I suppose. (For the curious, this is a Fortune 500 company.)

  • by 0123456 ( 636235 ) on Sunday December 10, 2006 @10:23PM (#17189448)
    "I blame it on our slow ass hard drives."

    Slow? My ordinary, everyday IDE drives can read over 60 megabytes per second. That could fill my PC's entire memory in about fifteen seconds.

    I suspect the real problem may be that the operating system is still paging in small parts of DLLs and programs rather than loading them all in one go. Loading 4k pages one at a time made sense when the operating system was a couple of megabytes, but when you're loading a hundred megabytes of crap off the disk just to get to the desktop, you'd be much better to load the entire thing in one go; disk seek times have improved by a factor of two or three in the same time that disk read speeds have increased by maybe a factor of a hundred.

    Does Windows still do that?
  • I remember when. . . (Score:4, Interesting)

    by Fantastic Lad ( 198284 ) on Sunday December 10, 2006 @10:45PM (#17189678)
    Back when I was a kid, I ran a cute little TRS-80 Color Computer. It had an on/off button. You pressed it, and it was on and ready to go. You pressed it again, and it was off, nice and tidy. Yeah, it had only 32 kb, but hey. It was fast.

    Today I have an HP Jornada 820 built in 1999. It runs Windows CE, and it turns on faster than anything. You hit the on/off button and you are either on or off just like that. --Best of all, it holds open all of your documents and programs exactly as you left them. I feel confident not saving stuff because it's so rock-steady reliable. The little critter is run on Flash memory; no hard drives.

    My PC. . ? Well now. . , that beast is slow. Very slow.

    I thought electrons moved at the speed of light, so what's the hold up? I refuse to blame the hard drives; those things are usually faster than Flash memory. So what's up? Bloat-ware? Too much hardware to configure? Poor programming? All of the above?

    I don't know, but I suspect that if engineers had their act together and were not constrained by the ridiculous way of doing things which are currently in place, we'd have much better machines available.


    -FL

  • by Babbster ( 107076 ) <aaronbabb@NoSPaM.gmail.com> on Sunday December 10, 2006 @10:48PM (#17189708) Homepage
    Not really. The early DVD players (mostly pre-2000) were slow to start, too, and HD-DVD/Blu-ray players haven't even been available for a year. As costs came down and the hardware improved, DVD players sped up nicely. The same will happen with HD-DVD/Blu-Ray players over time.
  • Re:hum (Score:2, Interesting)

    by UEinSD ( 750756 ) on Sunday December 10, 2006 @10:59PM (#17189796)
    My hibernation does not turn my soundcard back on or my Wacom tablet.
  • by Almahtar ( 991773 ) on Sunday December 10, 2006 @11:30PM (#17190066) Journal
    If everyone did a few situps, pushups, jumping jacks, whatever while waiting for a shutdown + restart to happen, I wonder what the overall health impact would be? 1 second could turn into 1 jumping jack, which would be 113 * 365 (days in a year) * 24 (hours in a day) * 60 (minutes in an hour) * 60 (seconds in a minute) jumping jacks. 31536000 jumping jacks. How many lives would be so much more prolonged by that amount of jumping jacks? What impact could that make on the high obesity rates in America (guilty as charged...)?

    Perhaps those lifetimes aren't wasted by necessity but by negligence, laziness, and choice.
  • Re:Errr.... (Score:5, Interesting)

    by Fweeky ( 41046 ) on Sunday December 10, 2006 @11:35PM (#17190098) Homepage
    I find XP refuses to hibernate with more than about 600MB of active memory; it makes an attempt, then returns you to the desktop with a popup bubble saying "Insufficient resources exist to complete the API". This necessitates me closing all my apps before each hibernation, and after a week or two even that won't work.

    Anyway, I remember using something closer to what the story is talking about, on the Amiga of all places; FastBoot [aminet.net] had you boot normally, then save a snapshot of the system at the end of the startup-sequence. Future boots would use this snapshot, which you generally didn't want to update at each shutdown -- you got 2-3s boot times, but each boot was clean. It worked surprisingly well for a scary hack :)
  • by birge ( 866103 ) on Sunday December 10, 2006 @11:43PM (#17190156) Homepage
    Terrible logic, though an incredibly common lapse. As the number of people you're considering goes up, so does the amount of total time they spend doing other stuff. If the logic doesn't apply to a single person, it doesn't apply to n people, either. The fraction of your life you spend waiting for computers isn't worth thinking a second about. You spend far more time waiting in traffic, waiting for hot water to heat, etc.


    The bottom line is that the fraction of wasted time stays the same no matter how many people you consider. I hate it when people try to prove a point not worth proving by considering a large population. (That's not what you were doing, it's what Steve was doing. I'm criticizing his and other's logic, not your post.) It's usually an argument used by alarmists to try to get something shutdown (ironically enough). For example, did you know that every year HUNDREDS of lives would be saved if we outlawed backyard pools? How can you let hundreds of people die?!? Well, if a hundred people die in America from something, I consider that an incredibly safe activity. Anyway, to bring it back to topic, I rather enjoy the down time I spend waiting for my PC to boot. It's like a free few minutes where nobody expects anything from you.

  • by billstewart ( 78916 ) on Sunday December 10, 2006 @11:50PM (#17190212) Journal
    My Thinkpad is running Windows XP Pro. I normally have it set to sleep if I close the lid, and hibernate if it's been sleeping for more than 3 hours. Sleep uses a bit of power, but it wakes up very quickly, normally just a few seconds. Hibernate takes longer, and is less reliable - maybe 10-20% of the time it fails to start correctly (e.g. keyboard drivers don't wake up or other random weirdness that forces me to reboot), and I find that if it's been hibernating, I should be sure to give it time to wake all the way up, i.e. get coffee.


    The big delay in returning from either of these modes is waiting for wireless 802.11g internet connection to wake up and set all its parameters correctly, get an IP address from the WAP, etc. If I know I'm going into my office, I can avoid that by turning off the wireless before closing the lid, and Ethernet is finally smart enough to just ask for DHCP every time it gets connected or wakes up.


    The other issue I have is that I normally use a VPN to connect to work, and the VPN tunnel doesn't like getting shut down and restarted, especially with a different IP address, so I still have to re-authenticate by typing in my security token code to the VPN client.

  • by straponego ( 521991 ) on Sunday December 10, 2006 @11:51PM (#17190228)
    Linux has EFI support now. Had it before the Mac, on ia64. Works on Intel-based Macs, too.

    Either EFI or LinuxBIOS would be a huge improvement over any PC BIOS, in terms of speed and manageability. Those BIOS engineers... yeah.

    /me shakes head sadly.

  • by robbak ( 775424 ) on Monday December 11, 2006 @12:08AM (#17190380) Homepage
    An increasing amount of hardware is using firmware. To save cents, many of these devices are being sold without flash to store this firmware, and are relying on the OS to load the firware into the device on every boot.
    This means that the OS must upload the firmware on a restart, or full hibernation. While it is conceivable that a system could be implemented to do this, and leave the device in a conistant state, it sounds like a tedius, error prone setup, that is likely to cause no end of problems.
    Of course, you could do away with the problem by making us all pay an extra quater-cent for a few k of flash, like a sensible hardware vendor.....
  • Re:Hibernate (Score:4, Interesting)

    by X_Caffeine ( 451624 ) on Monday December 11, 2006 @12:51AM (#17190658)
    My understanding is that thiis partially due to ACPI and BIOS being generally "sucky" and long due for replacement. PowerPCs used Open Firmware, and Intel Macs use EFI -- both of which are far superior to BIOS.

    Vista's lack of EFI support is a real sign of MS's misplaced priorities, imho.
  • Re:hum (Score:5, Interesting)

    by SCPRedMage ( 838040 ) on Monday December 11, 2006 @03:28AM (#17191580)
    even with several open programs.
    The point of hibernation is that it doesn't matter how many programs are running. It'll always write the same size file when hibernating, so it'll always read the same size of file coming back up. The number of applications running is largely inconsequential.

    Of course, it should be noted that there IS a way to have Windows leave the hibernation file alone unless you tell it to hibernate again; that is, a hibernate once, resume many kind of situation. It's a trick often used when building a car PC. You get the system to the point where you'd want the system to start from, then tell it to hibernate. From then on, it'll resume from that spot. If you can get your system to work properly with hibernation, it's just about as fast as you'll ever get it to boot.
  • Not all true... (Score:3, Interesting)

    by thrill12 ( 711899 ) on Monday December 11, 2006 @03:38AM (#17191626) Journal
    ...it depends on how you have built up your embedded system - if it uses slowly accessible flash (chances are high - because cost is low) 2 seconds is pretty much unreachable. The best you can get is probably 10-15 seconds, but without special (hardware/software) changes your kernel will definitely not boot in 2 seconds.
  • by fyngyrz ( 762201 ) * on Monday December 11, 2006 @04:18AM (#17191808) Homepage Journal

    The problem is old-school linear thinking we've inherited.

    There is no technical reason that a computer could not wake up, verify the keyboard, memory, hd, mouse and display are the same (in a few microseconds, probably) and be up and responding very well to the user, while (new concept, brace yourselves) the computer carefully brings up other hardware subsystems and makes them available as they become functional. You could be in a word processor, graphics editor, all manner of things that don't require more hardware until you do something like print or attempt to access the network; if those subsystems are not ready when you try to use them, the design would allow for [establishing hardware, wait or cancel] and there you have it.

    There is no problem whatsoever with plug and play concepts coexisting with fast usability other than current design shortcomings end users have been forced to live with. The computer is running as soon as the HD is spinning, memory sized, and the video card is on and the KB and mouse work. Just because current operating systems don't let you begin working at that time isn't a reflection on plug and play as a concept, it's a reflection of linear thinking that descends from old single tasking systems like early DOS.

    The idea that a 2...3 GHz 32 or 64 bit CPU cannot bring itself to decent usability in under a second is one that is silly right on the face of it except in that common systems are using old school thinking and layering more and more crap on top of that thinking. There is not a thing in the world that says drivers can't be loaded on demand, or after usability from boot, or separately. Nothing.

  • Re:Errr.... (Score:3, Interesting)

    by Mike1024 ( 184871 ) on Monday December 11, 2006 @04:46AM (#17191972)
    Having worked on many CRT displays I just wanted to point out that the CRT is definitly not kept on any kind of warm stand-by, none that I have ever seen any way.

    I'm not very familiar with CRT technology, but I've always wondered why CRT power specifications [dell.com] so often have quite high values for 'standby power'. I know a monitor will return to displaying an image from standby faster than it will from power off, but I'm not really sure how the two start processes are different.

    I don't suppose you can enlighten me?

    Thanks!
  • by julesh ( 229690 ) on Monday December 11, 2006 @06:39AM (#17192438)
    For instance, the wireless zero configuration service runs on every default XP SP2 install regardless of whether you have a wireless adapter or not.

    You may want to disable it and use the software supplied with your wireless adapter even if you do. On my machine, WZC causes ~100ms delays during which no packets can be transmitted or received every time it refreshes its list of available networks, which happens once per minute whether you're looking at the list or not. Absolute hell if you're trying to use VOIP or play games. Annoying if you're using ssh or vnc.
  • Re:hum (Score:1, Interesting)

    by Anonymous Coward on Monday December 11, 2006 @02:35PM (#17197566)
    Slashdot is for geeks and nerds: and of course the nerd wannabes who still want the world to know that they hate nerds. The wannabes hide in the shadows, for the most part, picking up bits and pieces of useful info that they fire off to their non-tech friends, who have to wonder why someone who hates nerds as much as they say they do, seems to know so much about technology and computers.

    Do everyone and yourself a favor and just admit you have nerdish and homosexual tendencies. The truth will set you free!

  • by rdholtz ( 1038726 ) on Monday December 11, 2006 @11:44PM (#17203638)
    Turn off file sharing and make sure that your TCP settings do not do NetBIOS over IP. When an XP machine is booting with file sharing is on it sits there waiting for domain controllers or workgroups (master browser searching) to join. Capture the boot up process with a sniffer for some interesting insights into what the machine is attempting to do. AV software is also a huge cycle killer. Most is set to scan all of the OS files as they load ... with this is pretty much a must have but you would be surprised how much faster it loads with no AV scanning taking place during the startup process.

Those who can, do; those who can't, write. Those who can't write work for the Bell Labs Record.

Working...