In the past, I used to worry about optimizing the startup time of my Windows 7 system. For this reason, I also bought a solid-state hard drive and a motherboard that can be used as a Smart Cache. After that, I used security guards. 360 startup time optimization as a review, see the optimized computer can start the system in 17 seconds and in the security guard 360 display to beat the country's 99% of the computer, can not help but float. However, the laptop used in recent work upgraded the Windows 8 RTM version for work reasons, but was surprised to find that on my big black Thinkpad W520, the startup time is 7 seconds, no mistake, it is really amazing 7 seconds!! Compare the Mac Air in the home that was also started with SSD and even better. So what exactly is hidden in Windows 8? Let's take a closer look!
Think about whether you have been bothered to optimize startup time? Smart you may adopt the way I used in the past - sleep The way, but this way is obviously due to the need to maintain the power state to maintain the memory state or is not conducive to the life of the laptop battery or to the desktop or power. Windows 8 came in order to meet our efficient and fast cold start. In fact, in Windows 7, the boot process has been properly optimized and improved, such as parallel loading of device drivers and service startup, but Windows 8 is clearly a step further, specifically Windows 8 innovative combination of cold boot and sleep mode To speed up the startup process.
So what are the steps involved in the startup and shutdown process in Windows 7?
A complete shutdown process includes:
Select the Close button in the Start menu or press The power button or application initiates a shutdown by calling the API ExitWindowsEx() or InitiateShutdown().
The Windows system broadcasts shutdown information to the running application, giving them the opportunity to save active data and settings status; the application can also request a little extra time.
Windows systems will close each logged in user session.
The Windows system sends system shutdown information to all services and tells that the shutdown process has started, and then shuts it down in an orderly manner. The shutdown process is a parallel stop service, which is serially closed for services with dependencies. If the service does not respond, the system will force the shutdown.
The system also tells all devices to turn them off.
Windows shuts down its own system session (session 0)
The Windows system flushes all pending data to the hard disk and ensures full saving.
The Windows system notifies the underlying power module to shut down through the ACPI power interface.
For the boot process of the system? (I will also discuss it in the future diskless SAN Boot boot Windows Server 2012 blog)
After pressing the power button, the firmware of the PC starts. The post-test process (known to POST) and load firmware settings. At the end of this pre-boot process, a valid system disk is detected to continue. (Of course, we need to set the boot order after detecting the hardware in the BIOS.)
The embedded boot program of Firmware 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.
Load the basic drivers needed to start the Windows kernel and then the Windows kernel program starts running, during which the system registry hive and the driver labeled BOOT_START are loaded into memory.
The Windows kernel passes control to the Session Manager process (Smss.exe) to initialize the system session, then load and start devices and drivers that are not marked as BOOT_START.
Winlogon.exe starts, displays the user login screen, the Service Control Manager starts the service, and the corresponding Group Policy script runs. When a user logs in, Windows creates a session for that user.
Explorer.exe starts and the system creates an initialization desktop and displays its Desktop Window Manager (DWM) process.
From the above shutdown process, you can find that the system needs to close all user sessions and kernel sessions, shut down the services and devices and then shut down completely.
And the key change that Windows 8 can get up to quickly is:
In Windows 8, the user session is closed, but the kernel session is no longer closed but handled in a flexible sleep mode. Compared with the full sleep mode, because the application uses a lot of memory pages, the relative sleep data of the system session 0 is actually much smaller, which will greatly reduce the time that the memory used for hibernation is written back to the disk. Hibernation means that the file written to disk (hiberfil.sys) effectively saves the system state and memory content information, and then reads and restores the contents back to memory. The cold boot of Windows 8 uses this technique, and it takes much faster to read the hibernation file and reinitialize the driver, which is a significant 30-70% improvement on most hosts. This is also easier to see, smart people look at you know:
The speed of recovery from sleep mode is obviously much faster than reinitialization recovery (this is not the reason why we can choose to sleep before speculation? ). In addition, Windows 8 also adds multi-stage recovery features, similar to the distributed job disassembly of stand-alone systems, for example, if you are an i5 or i7 quad-core host will take full advantage of all the kernel concurrently read and decompress hibernate Hibernate files, you must know Decompression is still more CPU-intensive; this feature has also been greatly improved for us to restore the system from hibernation!
Also worth mentioning how to treat hibernation files, use dir /s in Windows 8 systems /ah hiberfile.sys Maybe you will find this is quite a big one. The default is 75% of physical memory as the size of the hibernation file. Basically, it is the size reserved for the state data written by the system when it enters the sleep state. In fact, as a quick start, it is usually only 10 to 15% of physical memory (depending on driver, service, and other factors).
Another important feature of Windows 8's quick start is that although this method does not fully enumerate all of the "plug and play" device drivers, the fast drive mode still initializes the driver. Therefore, the cold start in the quick start mode can still cope with the change of the hardware environment as before. Of course, if you have the conditions to use SSD to quickly start the effect will be more obvious, you also know that even reading a small number of dormant files SSD is more powerful than mechanical hard disk.
There is another one worth mentioning. In fact, if you have a PC that is not old, then of course the boot with the old BIOS, the new UEFI (Unified Extensible Firmware Interface) BIOS boot The speed is still much faster. UEFI will initialize the CPU and memory first after power-on. Unlike the BIOS, the loading and initialization of other devices will be processed in parallel, which will greatly improve the startup speed of the system. Of course, most motherboards now support UEFI mode:)
Finally, check if your Windows 8 has started this function. Of course, the default should be open:
Run the powercfg /a command line to see that the system has enabled the fast boot function.
Through the control panel, you can also set and view:
Finally, you may know that you can disable hibernation and reclaim disk space by running the powercfg /hibernate off command. However, after reading the quick start section described earlier, you may understand that this is not only the loss of hibernation and the quick start function. If you want to go directly to the startup state of Windows 7
, you can run shutdown /s /full /t 0 to shut down or choose to restart from the graphical interface will trigger an old cold boot process, but why should you go back? What?
After installing the Win8 Pure Edition system, we have to activate it for a certain
1. First, we go to the disk management interface by right-click
1, first right click on the blank space of the computer desktop
Since Microsoft opened the Windows 8.1 update version to users, many users have sta
How to create a virtual network card in Windows 8.1
How to enter the Windows 8 system boot options menu
Win8 view two ways of memory card model brand
Win8 system Chrome browser prompts "no registration class" how to deal with?
Win8.1 app store screenshots become bigger
Win8.1 wireless can not connect to the old problem how to do?
How to implement Win8 system boot directly into the desktop
How to turn off the graphics hardware acceleration function in win8 system?
How to fix the problem of blue screen code 0x000000ED in Win8 system?
How to replace the background image of Win10 login interface
Windows 10 Preview New Patch Causes Some Users to Have Blue Screen
What if the flash version is too low?
Win10 press F8 can not enter the safe mode solution
Ubuntu steps to install VLC player
How to turn off the WIN7 interactive service detection prompt
Windows7 paste webpage text can not be copied when prompted to do
The official answer win8.1 official version update related issues