0
As you know, the page file is used as a buffer if your physical RAM runs out.
But unless HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown = 1 the page file is not cleared after a shutdown.
When the system boots again, how does Windows know that it should not swap in data from the previous boot into the RAM? Lets say its a Power outage, the system must still know when its a "new boot"?
Is the page file deleted and recreated each boot, which would require overwriting the part of disk where the page file is stored to ensure its empty?
Or is it some data structure inside the page file that ensures windows knows whats belongs to the current boot session?
1I knew the security purpose of the CPFAS key. I just wondered how it could know. I tought real memory Always was assumed to be empty at boot, since the memory loses it data at poweroff. But now I understand, in other Words, a table of unused and used pages are stored in real memory, like a FAT table, and this then applies for both pagefile and physical memory. – sebastian nielsen – 2015-01-02T12:43:56.473