Hibernate - Change Size of hiberfil.sys File

    Hibernate - Change Size of hiberfil.sys File

    Hibernate - Change Size of hiberfil.sys File

    How to Change the Size of the hiberfil.sys File in Windows
    Published by
    Designer Media Ltd


    How to Change the Size of the hiberfil.sys File in Windows

       Information
    By default, the size of the hiberfil.sys file is 75% of the total amount of installed RAM (memory) when hibernate is enabled in Vista, Windows 7, and Windows 8.

    This tutorial will show you how to change the size of the hiberfil.sys file to what percentage you want it to be.

    You must be logged in as an administrator to be able to do the steps in this tutoria.

       Note
    You can look at the hidden protected OS C:\hiberfil.sys file to see how large it currently is.

    1 GB = 1024 MB or 1,048,576 KB or 10,73,741,824 Bytes

    1 MB = 1024 KB

    1 KB - 1024 Bytes

    Hibernate - Change Size of hiberfil.sys File-cmd-1.jpg

       Warning
    While this can be used to reduce the size of the hiberfil.sys file to save HDD space when you have hibernate enabled, I would only recommend to increase the size to be 100% instead of the default 75% to help make sure that everything in memory is saved when you hibernate.





    Here's How:

    1. Open a elevated command prompt.

    2. In the elevated command prompt type the command below with the percentage (50-100%) you want to resize the hiberfil.sys file to be, and press Enter. (see screenshot below)
    NOTE: Substitute percentage in the command with 50% to 100%.
    powercfg -h -size percentage


    For example: If I wanted to resize hiberfil.sys to be 100%, I would type either of the commands below exactly.
    powercfg -h -size 100%

    OR

    powercfg -h -size 100
    Hibernate - Change Size of hiberfil.sys File-cmd-2.jpg
    3. When finished, close the elevated command prompt.



    That's it,
    Shawn










  1. Posts : 1
    Windows 7 Ultimate
       #1

    Dear All,

    hibefil.sys is taking 6.36 GB (6,838,988,800 bytes) on my small SSD hard disk drive which is a huge amount of space. I disable hibernation but as i need it so i reactivated it but the size is not decreasing.

    I tried to use powercfg hibernate size but no output of it. when i enter the size to 40% so it remain the same above 40% the size increase to 10GB whereas if i give 5% so it remain the same at 6.36 GB.

    Can you please Help
      My Computer


  2. Posts : 70,219
    64-bit Windows 10 Pro
    Thread Starter
       #2

    Hello naveeddil, and welcome to Seven Forums. :)

    You will only be able to set it as low as 50% instead. However, as 50%, you risk not having everything in memory saved to the hibefil.sys when you hibernate.

    If you like, you might also take a look at the tutorial below to see if you may be able to free up some space on the SSD.

    Hard Disk Space - Free Up and Recover - Windows 7 Help Forums
      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 01:43.
Find Us