A memory dump file can be placed in a cabinet (CAB) file along with paging files. When a Windows debugger analyzes the memory dump file, it can use the paging files to present a full view memory, including memory that was paged out when the dump file was created.
Suppose a CAB file named MyCab.cab contains these files:
Memory.dmp Cabmanifest.xml Pagefile.sys Also suppose Cabmanifest.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?> <WatsonPageFileManifest> <Pagefiles> <Pagefile Name="pagefile.sys"></Pagefile> </Pagefiles> </WatsonPageFileManifest>
You can open the CAB file by entering one of these commands:
- windbg /z MyCab.cab
- kd /z MyCab.cab
The debugger reads Cabmanifest.xml for a list of paging files that are to be included in the debugging session. In this example, there is only one paging file. The debugger converts the paging file to a Target Information File (TIF) file that it can use during the debugging session. Because the debugger has access to the TIF, it can display memory that was paged out at the time the dump file was created.
Regardless of how many paging files are in the CAB file, the debugger uses only the paging files that are listed in Cabmanifest.xml. Here's an example of a CAB manifest file that lists three paging files.
<?xml version="1.0" encoding="UTF-8"?> <WatsonPageFileManifest> <Pagefiles> <Pagefile Name="pagefile1.sys"></Pagefile> <Pagefile Name="pagefile2.sys"></Pagefile> <Pagefile Name="swapfile.sys"></Pagefile> </Pagefiles> </WatsonPageFileManifest>
In Cabmanifest.xml, the paging files must be listed in the same order that Windows uses them. That is, they must be listed in the order that they appear in the Registry.
The memory dump file that you put in the CAB file must be a complete memory dump. You can use Control Panel to configure Windows to create a complete memory dump when there is a crash. For example, in Windows 8 you can go to Control Panel > System and Security > System > Advanced System Settings > Startup and Recovery. As an alternative to using Control Panel, you can set the value of this registry entry to 1.
Starting in Windows 8.1, you can configure Windows to preserve the contents of paging files when Windows restarts.
To specify that you want paging files to be saved when Windows restarts, set the value of this registry entry to 1.