Virtual Memory disabled ClearPageFileAtShutDown still slowing shutdown


  1. Posts : 3
    Windows 7 Home Premium 32bit
       #1

    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 Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    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 Computer


  3. Posts : 2,497
    Windows 7 Pro 64 bit
       #3

    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 Computer


  4. Posts : 3
    Windows 7 Home Premium 32bit
    Thread Starter
       #4

    logicearth said:
    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 Computer


  5. Posts : 3
    Windows 7 Home Premium 32bit
    Thread Starter
       #5

    LMiller7 said:
    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 Computer


  6. Posts : 2,497
    Windows 7 Pro 64 bit
       #6

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 10:42.
Find Us