Article written by Bhumit Shah, Premier Field Engineer at Microsoft India, who specializes in tuning Windows Server performance.
Common questions I hear from my customers are: “My desktops and laptops are taking long time to boot, can we find out why?” and “What can I do to increase my boot performance and how do I measure it?”
Well, Windows 8 introduces a new boot process (Fast startup) for a faster startup. Very detailed information about how Fast Startup works can be found at Delivering fast boot times in Windows. In this blog, I will explain how the Windows Assessment and Deployment toolkit (ADK) can assist you to understand what happens under the hood during this boot process. You can use this toolkit to either assess either a single computer or a group of computers.
To get started, you can download Windows ADK from this link and begin the installation. If web installer method is used, the installation time may vary according to the connection speed. Kindly follow the steps for installation as documented here. Please ensure you select both “Windows Assessment Services” and “Windows Performance Toolkit” during the installation wizard.
- Make sure you have a power source (if you’re testing a laptop) and not running on a battery.
- Configure Automatic logins. Configuration steps can be found here. Note that this should be done only while testing. Enabling Automatic Logons is not an encouraged action by Microsoft.
- After the installation of ADK, launch Windows Assessment Console from the start screen.
- Click on “Run individual assessments” and double click on “Boot Performance (Fast Startup)”. This will add the assessment to the left pane.
- You may tweak the settings to your own requirements, but for now we will run the job with the default settings.
- Click on “Run” to begin the assessment. This will reboot your machine several times.
Once the data collection is complete, Windows Assessment Console will launch the below screen with automated Analysis. To review any warnings, Click on Warnings. Since we are very interested in locating issues, I’ll first review the Issues. Please refer to the screenshot below; details for the individual levels are explained further here.
- Green means that there are no perceived problems.
- Yellow means that you can optimize the system, and that you can review the recommendations and analysis.
- Red means that improvements are needed.
Based on the above, we have already identified our first task which needs to be fixed – the BIOS initialization. Further, since we now know the new boot process during the fast startup, let’s review some important items here.
So, what do we have so far? We know that the total boot duration excluding BIOS phase is 20.235 seconds:
- BIOS Initialization phase: This phase took more than 9 Seconds. It should generally not exceed the threshold of 4 Seconds. That’s certainly a point for investigation.
- Main Path Boot Duration: This is the time in seconds after BIOS phase completed and till Post On/Off Phase starts. Most of the boot activity takes place in this phase:
- Hiberfile Read: Time taken to read from Hiberfile.sys file. In this case, it took around 6.08 Seconds
- Resume Devices Duration: Time taken to resume the devices. Here, it took 1.378 seconds.
- Winlogon Resume Duration: Time taken to Resume Winlogon. Logon, Profile load etc. operations happens in this phase, which took around 4.78 Seconds.
- Explorer Initialization Duration: Time taken to load Windows Explorer, which is 0.367 seconds here.
Remember, that’s not the end, you can still further drill down to individual processes and drivers and look out for the resource consumption by each of them.
At this point, we have some clearly identified tasks (fix the Reds and Yellows ) to improve the boot performance of this system.
I hope you find this useful. Please do leave your comments and feedback in the Comments section below!
Posted by Arvind Shyamsundar, MSPFE Editor.