Yet another blog post from Steven Sinofsky where he talks about new features in Windows 8. He talks extensively about how they planned to achieve faster bootup times for the operating system. He sums up the goals as the following:
- Effectively zero watt power draw when off
- A fresh session after boot
- Very fast times between pressing the power button and being able to use the PC.
In Windows 7, Shutdown entails:He points out that in a traditional shutdown, all of the user sessions are closed and in the kernel session services and devices are closed in anticipation of a complete shutdown. Windows 8 will be different. Just like Windows 7, the user sessions will be closed BUT instead of closing the kernel session, it’s hibernated. This effectively saves the system state and memory contents to a file on disk (hiberfil.sys) and then reading that back in on resume and restoring contents back to memory. Microsoft provided some graphics to show the contrast between the cold start and a Windows 8 fast start. Click on the images to make them larger [caption id="attachment_6141" align="alignnone" width="590"] Relative time needed for different phases of startup[/caption] [caption id="attachment_6142" align="alignnone" width="590"] Comparing boot times from Windows 7 and Windows 8[/caption] He goes on:And boot entails:
- The user initiates a shutdown by selecting “shut down” from the Start menu, or by pressing the power button; or an application initiates shutdown by calling an API such as ExitWindowsEx() or InitiateShutdown().
- Windows broadcasts messages to running applications, giving them a chance to save data and settings. Applications can also request a little extra time to finish what they’re doing.
- Windows closes the user sessions for each logged on user.
- Windows sends messages to services notifying them that a shutdown has begun, and subsequently shuts them down. It shuts down ordered services that have a dependency serially, and the rest in parallel. If a service doesn’t respond, it is shut down forcefully.
- Windows broadcasts messages to devices, signaling them to shut down.
- Windows closes the system session (also known as “session 0”).
- Windows flushes any pending data to the system drive to ensure it is saved completely.
- Windows sends a signal via the ACPI interface to the system to power down the PC.
- After pressing the power button, the PC’s firmware initiates a Power-On Self Test (POST) and loads firmware settings. This pre-boot process ends when a valid system disk is detected.
- irmware reads the master boot record (MBR), and then starts Bootmgr.exe. Bootmgr.exe finds and starts the Windows loader (Winload.exe) on the Windows boot partition.
- Essential drivers required to start the Windows kernel are loaded and the kernel starts to run, loading into memory the system registry hive and additional drivers that are marked as BOOT_START.
- The kernel passes control to the session manager process (Smss.exe) which initializes the system session, and loads and starts the devices and drivers that are not marked BOOT_START.
- Winlogon.exe starts, the user logon screen appears, the service control manager starts services, and any Group Policy scripts are run. When the user logs in, Windows creates a session for that user.
- Explorer.exe starts, the system creates the desktop window manager (DWM) process, which initializes the desktop and displays it.
Using this technique with boot gives us a significant advantage for boot times, since reading the hiberfile in and reinitializing drivers is much faster on most systems (30-70% faster on most systems we’ve tested). It’s faster because resuming the hibernated system session is comparatively less work than doing a full system initialization, but it’s also faster because we added a new multi-phase resume capability, which is able to use all of the cores in a multi-core system in parallel, to split the work of reading from the hiberfile and decompressing the contents. For those of you who prefer hibernating, this also results in faster resumes from hibernate as well.Drivers are also initialized upon boot-up. Interesting: he states that systems using Unified Extensible Firmware Interface (UEFI) are more likely to achieve very fast pre-boot times when compared to those with traditional BIOS. Check out this video provided by Microsoft to highlight the start up speed of Windows 8. http://www.youtube.com/watch?v=pj39HdtOB5U]]>
Article Tags:
boot time · cold start · Performance · start time · Startup · startup time · UEFI · Unified Extensible Firmware Interface · Windows 8 · Windows 8 Builds · Windows 8 Development · Windows 8 features
All Comments
This is really going to be exciting…
Looks good make going on the computer very fast to get started
windows going better to other OS
I tested this is build 7989. works great,booted my system is about 4 seconds
Yet another idea taken from apple.
Really makes me curious as to if Microsoft is copying apple all the time.
At least they are sorting out the boot up. But shows they are copying apple, as apple has already achieved this.
When I was using xp on my old laptop, I always put it in hibernate instead of shutting down, but then windows 7 seems to always be faulty with hibernate.
What’s Microsoft going to copy next from apple?
To make an OS boot faster.
Is this the only Apple’s idea?
Jase. Honestly, I don’t really understand how this comment makes any sort of sense. Improving boot times is an objective of any operating system. Certainly Apple has done it well in their various IOS platforms but it isn’t like other vendors (Microsoft included) haven’t strived to achieve this.
You make it sound like the very concept of starting an operating system as quickly as possible was invented by Apple which is simply ludicrous. It’s like saying that working on system reliability or security is “copying” because the perception (true or not) is that one does it better than another.
Microsoft must have a really good spy sitting in Apple! lol
Imbuddyholly95 is me sorry
Stupid thing
Meant Jase
But after video, I say WOW!
I wonder how thats gonna look on my i7 core @ 1.73Ghz and my 7200 rpm hard drive. Can’t wait!
Can’t wait to get y hands on Windows 8 … great stuff