Сброс файла подкачки - Windows 7

583
Mahmoud Khateeb

Мы знаем, что файл подкачки будет сбрасываться при каждом перезапуске / завершении работы.

Есть ли способ сбросить файл подкачки без перезагрузки или выключения?

И действительно ли это имеет значение, если я оставил файл подкачки в очень маленьком размере, таком как 200 МБ, так как он предупредил меня, что я не смогу прочитать файл дампа, который приведет меня к проблеме в случае BSOD.

1
Возможный дубликат: http://serverfault.com/questions/418683/clear-page-file-without-reboot-on-windows-server-2003 Fergus 9 лет назад 1

1 ответ на вопрос

0
Jamie Hanrahan

No, there is not. The paging file is in use by many processes and the OS itself (for the paged pool, among other things). You can't zero it without crashing every process that's using it.

Dump files might not matter to you, but "out of memory" errors probably will. There are dozens of questions here from people complaining that they have plenty of free RAM but they're still seeing "out of memory" messages. The reason is that they have removed their page file or set it to some absurdly small size. You are almost always better off leaving the page file alone.

Похожие вопросы