Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Virtual Memory disabled ClearPageFileAtShutDown still slowing shutdown

01 Apr 2015   #1
Freeloader1

Windows 7 Home Premium 32bit
 
 
Virtual Memory disabled ClearPageFileAtShutDown still slowing shutdown

I'm confused. My shutdown times shot up recently. MS Performance Analyzer traced the problem to large volume writing on diskat shutdown. I disabled ClearPageFileAtShutDown. Everything good. However, due to (admittedly exaggerated) securityconcerns I wanted to keep it enabled and decided to try reducing virtual memory to a minimum instead. Thought clearing a small pagefile.sys file at shutdown would be faster. Result: everything back to slow. In other words no difference. Why? I know it would be simpler just to disable the overwrite of pagefile but I really want to know why Disk I/O is showing the same thousands of operations at shutdown whether allotted virtual memory is very large or small (0MB).


My System SpecsSystem Spec
.
01 Apr 2015   #2
logicearth

Windows 10 Pro (x64)
 
 

Are you on an SSD? If you are you want to turn that off. Due to the way SSDs work, this can cause severe degradation.

And to add. The security you get from this is nonexistent.
My System SpecsSystem Spec
01 Apr 2015   #3
LMiller7

Windows 7 Pro 64 bit
 
 

Is this an SSD and what was the original size of the pagefile?

When the pagefile was set to 0 the first shutdown after doing this will still be slow. At shutdown the pagefile was still at it's original size and needing to be cleared. Only at the next startup will the pagefile be set to 0. This may have been your issue.

Clearing the pagefile can be useful in a highly secure environment but it makes little sense outside of a comprehensive security policy. Creating and implementing such a policy would require quite a bit of work on your part. Most systems have security problems that are more serious than an uncleared pagefile. Typically a hacker can obtain what he wants with much less effort than that required to access the pagefile.

There is considerable misinformation on the Internet concerning this option. Contrary to some claims it has no performance benefits of any kind.
My System SpecsSystem Spec
.

01 Apr 2015   #4
Freeloader1

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by logicearth View Post
Are you on an SSD? If you are you want to turn that off. Due to the way SSDs work, this can cause severe degradation.

And to add. The security you get from this is nonexistent.
Normal harddrive.

I thought ClearPageFileAtShutDown simply overwrote the allotted virtual memory. But, mine is now 0MB. Despite that over 2GB are being written at every shutdown. So, what does it really do?
My System SpecsSystem Spec
01 Apr 2015   #5
Freeloader1

Windows 7 Home Premium 32bit
 
 

Quote   Quote: Originally Posted by LMiller7 View Post
Is this an SSD and what was the original size of the pagefile?

When the pagefile was set to 0 the first shutdown after doing this will still be slow. At shutdown the pagefile was still at it's original size and needing to be cleared. Only at the next startup will the pagefile be set to 0. This may have been your issue.

Clearing the pagefile can be useful in a highly secure environment but it makes little sense outside of a comprehensive security policy. Creating and implementing such a policy would require quite a bit of work on your part. Most systems have security problems that are more serious than an uncleared pagefile. Typically a hacker can obtain what he wants with much less effort than that required to access the pagefile.

There is considerable misinformation on the Internet concerning this option. Contrary to some claims it has no performance benefits of any kind.
A closer look at the data from the shutdown trace showed that hiberfil.sys was occupying the harddrive not pagefile. I've removed hibernate and returned pagefile.sys to a higher level. 0MB was only for diagnostics not performance. Thanks.
My System SpecsSystem Spec
02 Apr 2015   #6
LMiller7

Windows 7 Pro 64 bit
 
 

It should be understood that clearing the pagefile on shutdown and hibernation are incompatible. Clearing the pagefile would make a resume from hibernation impossible so the setting is ignored. And what good would it do when there is a complete copy of memory in the hiberfil.sys file?
My System SpecsSystem Spec
Reply

 Virtual Memory disabled ClearPageFileAtShutDown still slowing shutdown




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Sleep and Hibernate options are disabled with ShutDown Button
AOA n Hi I have found that sleep and hibernate options are disabled with ShutDown Buttons. due to this, when lid is down, my laptop is still working. Also, when i go to controlPAnel<<Power Options << then ....there is options of "Change settings that are currently unavailable" when i click it,...
Performance & Maintenance
ClearPageFileAtShutdown - Enabling despite group policy
After troubleshooting slow shutdowns, I discovered that the pagefile is being cleared as a security feature. I understand what this does and decided I'd rather have faster shutdowns. Anyway, this is disabled in group policy. I can change the registry key ( at\...
Performance & Maintenance
If you disabled Microsoft virtual adapter does this increase wireless+
I would like to know if its a fact that disabling Microsoft virtual adapter increases Wireless performance in terms of signal + speed. The second question is would it also increase faster start up time in windows 7 from cold boot since it has DHCP has to assign a IP address for it?
General Discussion
DWM.EXE memory spikes, resulting in aero being disabled
I have three 22" monitors. I have two video cards: one HD 5770, and one HD 6770. Whenever I run NetFlix on my third monitor (which is attached to the HD 6770 card), DWM (Desktop Windows Management) goes nuts. It spikes to many megs of ram and ultimately reverts to the classic view (that is,...
Hardware & Devices
Virtual memory 64 bit
Windows 7 64 bit cpu- i7 Ram- 20 GB Graphic card- Nvidia Geforce GTX 580 My pc is designed for 3d graphic, good hardware for home 3d graphic use About virtual memory, i know this is a subject already debated in many threads however my question is expecially related to 64 bit system with...
Performance & Maintenance
computer slowly slowing down (and shutdown hangs)
My computer in the last week has started to slow down significantly. and i cannot for the life of me determinre the source of the issue. only difference i can see is upon shutdown it says its waiting for programs to close, but nothing is in the list of programs. I am confuse! all help greatly...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App