当您的系统出现故障时,会出现蓝屏(Blue)死机( BSOD ) 错误,这会导致您的 PC 意外关闭或重新启动。BSOD屏幕仅在几分之一秒内可见,因此无法记录错误代码或了解错误的性质。这就是转储文件(Dump Files)出现的地方,每当发生BSOD错误时,Windows 10都会创建一个故障转储文件。此故障转储文件包含崩溃时计算机内存的副本。简而言之,故障转储文件包含有关BSOD错误的调试信息。
故障(Crash)转储文件存储在特定位置,可以轻松访问该 PC 的管理员以开始进一步的故障排除。Windows 10支持(Windows 10)不同(Different)类型的转储文件,例如完整(Complete)内存转储、内核(Kernel)内存转储、小(Small)内存转储 (256 kb)、自动(Automatic)内存转储和活动(Active)内存转储。默认情况下,Windows 10会创建自动内存(Automatic Memory)转储文件。无论如何(Anyway),不浪费任何时间,让我们看看如何配置Windows 10以在蓝屏上(Blue Screen)创建转储文件(Create Dump Files)在下面列出的教程的帮助下死亡。(Death)
小内存转储: (Small Memory Dump: )小内存转储(Small Memory Dump)比其他两种内核模式故障转储文件小得多。它的大小正好是 64 KB,并且在引导驱动器上只需要 64 KB 的页面文件空间。当空间最小时,这种转储文件会很有用。但是,由于包含的信息量有限,通过分析该文件可能无法发现并非由崩溃时正在执行的线程直接引起的错误。
内核内存转储: (Kernel Memory Dump: )内核内存转储(Kernel Memory Dump)包含崩溃时内核正在使用的所有内存。这种转储文件明显小于Complete Memory Dump。通常,转储文件的大小约为系统物理内存大小的三分之一。根据您的具体情况,这个数量会有很大差异。此转储文件将不包括未分配的内存或分配给用户模式应用程序的任何内存。它仅包括分配给Windows内核和硬件抽象级别 ( HAL ) 的内存以及分配给内核模式驱动程序和其他内核模式程序的内存。
完整内存转储: (Complete Memory Dump: )完整内存转储(Memory Dump)是最大的内核模式转储文件。此文件包括Windows使用的所有物理内存。默认情况下,完整的内存转储不包括平台固件使用的物理内存。该转储文件需要在您的引导驱动器上有一个至少与主系统内存一样大的页面文件;它应该能够保存一个大小等于整个RAM加上 1 兆字节的文件。
自动内存转储: (Automatic Memory Dump: )自动内存转储包含与(Automatic Memory Dump)内核内存转储(Kernel Memory Dump)相同的信息。两者的区别不在于转储文件本身,而在于Windows如何设置系统分页文件的大小。如果系统页面文件大小设置为System managed size,并且内核模式故障转储设置为Automatic Memory Dump,则Windows可以将页面文件的大小设置为小于RAM的大小。在这种情况下,Windows将分页文件的大小设置得足够大,以确保大部分时间都可以捕获内核内存转储。
活动内存转储: (Active Memory Dump: )活动内存(Active)转储类似于(Dump)完整内存转储(Complete Memory Dump),但它会过滤掉与主机上的故障排除不太相关的页面。由于这种过滤,它通常比完整的内存转储小得多。此转储文件确实包括分配给用户模式应用程序的任何内存。它还包括分配给Windows内核和硬件抽象级别 ( HAL ) 的内存以及分配给内核模式驱动程序和其他内核模式程序的内存。转储包括映射到内核或用户空间的活动页面,这些页面可用于调试和选择的 Pagefile-backed Transition,Standby和Modified页面,例如使用VirtualAlloc分配的内存或页面文件支持的部分。活动(Active)转储不包括空闲列表和归零列表上的页面、文件缓存、客户 VM 页面和各种其他类型的内存,这些内存在调试期间可能没有用处。
来源:各种内核模式转储文件(Source: Varieties of Kernel-Mode Dump Files)
配置 Windows 10 以在蓝屏(Blue Screen)死机(Death)上创建转储文件(Create Dump Files)
确保 创建一个还原点(create a restore point) 以防万一出现问题。
方法一:在启动和恢复中配置转储文件设置(Method 1: Configure Dump File Settings in Startup and Recovery)
1. 在 Windows 搜索中键入control ,然后从搜索结果中单击控制面板。( Control Panel)
2. 单击系统和安全,(System and Security)然后单击系统。(System.)
3. 现在,从左侧菜单中,单击“高级系统设置(Advanced system settings)”。
4. 点击系统属性窗口中启动和恢复下的“(Startup and Recovery)设置(Settings)” 。
5. 在系统故障(System failure)下,从“写入调试信息(Write debugging information)”下拉菜单中选择:
None (No dump file created by Windows)
Small Memory Dump (Windows will create a Minidump file on BSOD)
Kernel Memory Dump (Windows will create a Kernel Memory Dump file on BSOD)
Complete Memory Dump (Windows will create a Complete Memory Dump file on BSOD)
Automatic Memory Dump (Windows will create Automatic Memory Dump file on BSOD)
Active Memory Dump (Windows will create an Active Memory Dump file on BSOD)
注意:(Note:)完整的内存转储需要将页面文件设置为至少安装的物理内存大小加上 1MB(用于标题)。
6.单击确定(Click OK),然后单击应用(Apply),然后单击确定。
这就是您如何 配置 Windows 10 在蓝屏死机上创建转储文件(Configure Windows 10 to Create Dump Files on Blue Screen of Death)但如果您仍然遇到任何问题,请继续执行下一个方法。
方法 2:使用命令提示符配置转储文件设置(Method 2: Configure Dump File Settings Using Command Prompt)
1.打开命令提示符(Command Prompt)。用户可以通过搜索“cmd”然后按 Enter 来执行此步骤。
2. 在 cmd 中输入以下命令并回车(Enter):
No dump file: wmic RECOVEROS set DebugInfoType = 0
Small Memory Dump: wmic RECOVEROS set DebugInfoType = 3
Kernel Memory Dump: wmic RECOVEROS set DebugInfoType = 2
Complete Memory Dump: wmic RECOVEROS set DebugInfoType = 1
Automatic Memory Dump: wmic RECOVEROS set DebugInfoType = 7
Active Memory Dump: wmic RECOVEROS set DebugInfoType = 1
注意:(Note:)完整的内存转储需要将页面文件设置为至少安装的物理内存大小加上 1MB(用于标题)。
3. 完成后关闭命令提示符并重新启动您的 PC。
4. 要查看当前的内存转储设置(Memory Dump Settings),请在 cmd 中键入以下命令并按Enter:
wmic RECOVEROS 获取 DebugInfoType(wmic RECOVEROS get DebugInfoType)
5.完成后关闭命令提示符。
受到推崇的:(Recommended:)
就是这样,您成功地学习了如何配置 Windows 10 以在蓝屏死机上创建转储文件,(How to Configure Windows 10 to Create Dump Files on Blue Screen of Death)但如果您对本教程仍有任何疑问,请随时在评论部分询问他们。
Configure Windows 10 to Create Dump Files on Blue Screen of Death
A Blue screen of deаth (BSOD) error occurs when your system fails, which causes your PC to shut down or restart unexpectedly. The BSOD screen is only visible for a fraction of seconds, makіng it impossible to take note of the error сode or understand thе nature of the error. This is where the Dump Files comes into the picture, whenever a BSOD еrror occurs, a crash dump file is created by Wіndows 10. This crash dump filе contains a coру of the computer’s memory at the time of the crash. Іn short, the crash dump fіles сontain debugging information about the BSOD error.
The Crash dump file is stored in a specific location that can easily access the administrator of that PC to start further troubleshooting. Different types of dump files are supported by Windows 10 like Complete memory dump, Kernel memory dump, Small memory dump (256 kb), Automatic memory dump and Active memory dumps. By default Windows 10 creates Automatic Memory dump files. Anyway, without wasting any time, let’s see How to Configure Windows 10 to Create Dump Files on Blue Screen of Death with the help of the below-listed tutorial.
Small Memory Dump: A Small Memory Dump is much smaller than the other two kinds of kernel-mode crash dump files. It is exactly 64 KB in size and requires only 64 KB of pagefile space on the boot drive. This kind of dump file can be useful when space is minimal. However, due to the limited amount of information included, errors that were not directly caused by the thread executing at the time of the crash may not be discovered by analysing this file.
Kernel Memory Dump: A Kernel Memory Dump contains all the memory in use by the kernel at the time of the crash. This kind of dump file is significantly smaller than the Complete Memory Dump. Typically, the dump file will be around one-third the size of the physical memory on the system. This quantity will vary considerably, depending on your circumstances. This dump file will not include unallocated memory, or any memory allocated to user-mode applications. It only includes memory allocated to the Windows kernel and hardware abstraction level (HAL) and memory allocated to kernel-mode drivers and other kernel-mode programs.
Complete Memory Dump: A Complete Memory Dump is the largest kernel-mode dump file. This file includes all of the physical memory that is used by Windows. A complete memory dump does not, by default, include physical memory that is used by the platform firmware. This dump file requires a pagefile on your boot drive that is at least as large as your main system memory; it should be able to hold a file whose size equals your entire RAM plus one megabyte.
Automatic Memory Dump: An Automatic Memory Dump contains the same information as a Kernel Memory Dump. The difference between the two is not in the dump file itself, but in how Windows sets the size of the system paging file. If the system paging file size is set to System managed size, and the kernel-mode crash dump is set to Automatic Memory Dump, then Windows can set the paging file’s size to less than the size of RAM. In this case, Windows sets the paging file size enough to ensure that a kernel memory dump can be captured most of the time.
Active Memory Dump: An Active Memory Dump is similar to a Complete Memory Dump, but it filters out pages that are not likely to be relevant to troubleshooting problems on the host machine. Because of this filtering, it is typically significantly smaller than a complete memory dump. This dump file does include any memory allocated to user-mode applications. It also includes memory allocated to the Windows kernel and hardware abstraction level (HAL) and memory allocated to kernel-mode drivers and other kernel-mode programs. The dump includes active pages mapped into the kernel or userspace that are useful for debugging and selected Pagefile-backed Transition, Standby, and Modified pages such as the memory allocated with VirtualAlloc or page file backed sections. Active dumps do not include pages on the free and zeroed lists, the file cache, guest VM pages and various other types of memory that are not likely useful during debugging.
Source: Varieties of Kernel-Mode Dump Files
Configure Windows 10 to Create Dump Files on Blue Screen of Death
Make sure to create a restore point just in case something goes wrong.
Method 1: Configure Dump File Settings in Startup and Recovery
1. Type control in Windows Search then clicks on Control Panel from the search result.
2. Click on System and Security then click on System.
3. Now, from the left-hand side menu, click on “Advanced system settings“.
4. Click on “Settings” under Startup and Recovery in System Properties window.
5. Under System failure, from the “Write debugging information” drop-down select:
None (No dump file created by Windows)
Small Memory Dump (Windows will create a Minidump file on BSOD)
Kernel Memory Dump (Windows will create a Kernel Memory Dump file on BSOD)
Complete Memory Dump (Windows will create a Complete Memory Dump file on BSOD)
Automatic Memory Dump (Windows will create Automatic Memory Dump file on BSOD)
Active Memory Dump (Windows will create an Active Memory Dump file on BSOD)
Note: The complete memory dump will require a page file set to at least the size of physical memory installed plus 1MB (for the header).
6. Click OK then Apply, followed by OK.
This is how you Configure Windows 10 to Create Dump Files on Blue Screen of Death but if you are still facing any problem, then continue to the next method.
Method 2: Configure Dump File Settings Using Command Prompt
1. Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.
2. Type the following command into cmd and hit Enter:
No dump file: wmic RECOVEROS set DebugInfoType = 0
Small Memory Dump: wmic RECOVEROS set DebugInfoType = 3
Kernel Memory Dump: wmic RECOVEROS set DebugInfoType = 2
Complete Memory Dump: wmic RECOVEROS set DebugInfoType = 1
Automatic Memory Dump: wmic RECOVEROS set DebugInfoType = 7
Active Memory Dump: wmic RECOVEROS set DebugInfoType = 1
Note: The complete memory dump will require a page file set to at least the size of physical memory installed plus 1MB (for the header).
3. Close command prompt when finished and reboot your PC.
4. To view the current Memory Dump Settings type the following command into cmd and hit Enter:
wmic RECOVEROS get DebugInfoType
5. When finished close command prompt.
Recommended:
That’s it, you successfully learned How to Configure Windows 10 to Create Dump Files on Blue Screen of Death but if you still have any queries regarding this tutorial then feel free to ask them in the comment’s section.