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: 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 Brink
18 Mar 2012
Published by

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

information   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   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


warning   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%


powercfg -h -size 100
Name:  CMD-2.jpg
Views: 33293
Size:  37.6 KB
3. When finished, close the elevated command prompt.

That's it,


 Hibernate - Change Size of hiberfil.sys File

Tutorial Tools

Similar help and support threads
Windows 7 Tutorial Category
How to change file dialog box size?
How can I change the size of the ridiculously small file requester windows? There was some app on XP which hacked some system files, but I don't feel comfortable with some legacy app messing around in the guts of win7.
Remove the Hibernation file - hiberfil.sys
My hiberfil.sys file is 6GB and I do not use hibernation. Looking at my Advanced Power Settings (they have been set like this since I got the system): -- Sleep after is "Never|" -- Allow hybrid sleep is "Off" -- Hibernate after is "Never". And "Hibernate" appears in my Shutdown menu. ...
Performance & Maintenance
change taskbar icon size to specific size other than small or large?
Hi to all. Can we change taskbar icons' size to a specific size other than two default windows defined sizes? Tnx.
Change File Size Calculations
It appears windows does not cnform to the standard method of calculating file size. e.g. the standard value of 1GB is 1000MB, however windows uses 1024MB. As such it is not in fact a "Gigabyte" But a "Gibibyte". This is extremley annoying, as for egxample, I have a 2TB hard Drive, which in the...
General Discussion
how do i change max file size?
i am trying to use a recording program and it automatically cuts my recordings down to 4gb and this is only about 1.30min. thankyou
Music, Pictures & Video
Hiberfil.sys size
I understand that the Hiberfil.sys file used for hibernation is normally the same size as the amount of intalled memory in the PC. On my Win 7 Pro x64 PC the OS reports 4GB Memory with 3.84GB usuable. The hiberfil.sys though is 3090,718,720 bytes which I reckon to be 2.88GB approx. As I have been...
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 07:47.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App