(http://helpdeskgeek.com)

Archives (/archives/)

Featured (/category/featured-posts/)

Reviews (/category/reviews/)
Search

HDG Explains – Swapfile.sys, Hiberfil.sys and
Pagefile.sys in Windows 8

October 9th, 2012 by Aseem Kishore | File in: Featured Posts (http://helpdeskgeek.com/category/featured-posts/), Windows 8
(http://helpdeskgeek.com/category/windows-8/)

In previous versions of Windows, you probably remember the good ol paging file. It’s used to when physical memory becomes
overcommitted and it hold objects that usually have not been accessed in a long time. That is pagefile.sys. Next, we had the
hibernate option in Windows that let you save the kernel and all applications to your hard drive so that you could start your
computer back up faster than doing a full reboot. That is hiberfile.sys.
In Windows 8, things get more complicated. The pagefile.sys is there all the time, but the hiberfil.sys is only there if you have
fast startup enabled in Windows 8. What is fast startup? It basically allows Windows 8 to perform a hybrid shutdown. This is
why Windows 8 boots up so much faster than previous versions of Windows. Check out my previous post that explains what a
hybrid shutdown is in Windows 8 (http://www.online-tech-tips.com/windows-8/perform-a-complete-shutdown-in-windows8/).
In order to use the new hybrid shutdown feature, which is turned on by default, hibernation has to be enabled in Windows 8. If
hibernation is disabled, you won’t have a hiberfil.sys file and you won’t be able to use the fast startup option either. You can
read my post here about enabling hibernation in Windows 8 (http://helpdeskgeek.com/windows-8/turn-on-fast-startupmissing-in-windows-8-power-options/).

Categories

DAILY NEWSLETTER
Enter your email

Go


(mailto:akishore@helpdeskgeek.com)

(https://plus.google.com/b/118345

(https://www.facebook.com/pages/H
DeskGeek/183299011719864)

(http://twitter.com/akishore)
 (/feed/rss/)
RECENT POSTS
Refresh, Reinstall or Restore Windows 8
(http://helpdeskgeek.com/windows-8/refreshreinstall-or-restore-windows-8/)

HDG Guide – Storage Spaces and Pools in
Windows 8 (http://helpdeskgeek.com/windows8/hdg-guide-storage-spaces-and-pools-inwindows-8/)

Install Windows Media Center on Windows 8
(http://helpdeskgeek.com/windows-8/installwindows-media-center-on-windows-8/)
Now the interesting thing is that when you have fast startup enabled (meaning hibernation is enabled), then your hiberfil.sys
will be about 75% of your RAM and the paging file will be around 25%. This is because the hiberfil.sys contains the Windows 8
kernel and device drivers. The paging file is only used if all RAM is exhausted only our system and is used while you’re
actually running Windows. The hiberfil.sys is only used for the boot process.

20 of The Best TV Streaming Devices
(http://helpdeskgeek.com/free-tools-review/20-ofthe-best-tv-streaming-devices/)

If you don’t have hibernation enabled in Windows 8, you’ll see that the paging file is now the same size as the amount of RAM
you have.

RELATED POSTS
HDG Guide – Storage Spaces and Pools in
Windows 8 (http://helpdeskgeek.com/windows8/hdg-guide-storage-spaces-and-pools-inwindows-8/)

HDG Guide – What to do with an Extra PC?
(http://helpdeskgeek.com/how-to/hdg-guide-whatto-do-with-an-extra-pc/)
In the above screenshot, I have a Windows 8 machine with 1 GB of RAM and fast startup disabled. Now that we understand
how that works, let’s get down to the new one: swapfile.sys. What the heck is that? Well, it’s basically like the paging file, but
serves different purposes.
One of the main reasons for the swapfile.sys is to suspend and resume Metro apps. So why not just use the paging file instead

Windows 8 Device Guide
(http://helpdeskgeek.com/windows-8/windows-8device-guide/)

to do that? It’s used because certain types of paging operations can be done more efficiently using this special type of
pagefile.

HDG Guide to Customizing and Organizing the

Here’s a more clear explanation. Windows 8 supports both paging and swapping. Paging will hold items that haven’t been

Windows 8 Start Screen

accessed in a long time whereas swapping holds items that were recently taken out of memory. The items in pagingfile may

(http://helpdeskgeek.com/windows-8/hdg-guide-

not be accessed again for a long time whereas the items in swapfile might be accessed much sooner.

to-customizing-and-organizing-the-windows-8start-screen/)
Also, paging is very effective on high-end machines whereas swapping is more effective on low-end tablets and PCs. Each
paging file has different requirements for dynamic growth, space reservation, read/write policies, etc. If you were to have the
same paging file, it would become fragmented very quickly because of the fixed-size pages used in paging and the big

Should You Upgrade to Windows 8?
(http://helpdeskgeek.com/windows-8/should-youupgrade-to-windows-8/)

chunks used in swapping.
As you can see from above, the swapfile.sys is about 256 MB in size. As of now, it’s used for Metro apps because of their
different paging needs as compared to traditional Windows programs. There may be other uses too for it in the future, but
Microsoft has not specified what exactly.
So that’s what those three files do on a Windows 8 system. Note that there are some interesting and annoying things that can
happen. If you have 16 GB of RAM and are using fast startup in Windows 8, that means you’re going to have a 16 GB
hibernation file too! If you’re running Windows 8 on an SSD, that may be taking up a large portion of your disk space.
You can reduce the size of the hibernation file (hiberfil.sys) in Windows 8 by using the following command:
p owe rcfg.e xe /hib e rna te /size 5 0

This will reduce the size of the hibernation file to 50% of RAM rather than 100%. Note that you cannot lower it any more than
50%. However, if you have a large amount of RAM like 16GB or something like that, you can save yourself 8 GB of space.
The other thing is that you don’t need to worry about the hibernation file becoming too large like in previous versions of
Windows. Earlier the hibernation file stored the kernel, device drivers and all application data. Now that there is no application
data, the size of the file stays pretty constant, so if you have a lot of RAM, you probably don’t need a hibernation file that is so
large anyway.
Hopefully, that gives you a clearer understanding of how the pagefile.sys, hiberfil.sys and swapfile.sys files work on Windows
8. If you have any questions, feel free to post a comment. Enjoy!

0

There are 0 comments, care to add yours?

(http://helpdeskgeek.com/windows-8/hdg-explainsswapfile-sys-hiberfil-sys-and-pagefile-sys-in-windows8/#respond)

 Tweet This
 Facebook Like
 Google+
(http://twitter.com/share? (http://www.facebook.com/sharer.php?
(http://plus.google.com/share?
url=http://helpdeskgeek.com/windowsu=http://helpdeskgeek.com/windowsurl=http://helpdeskgeek.com/windows8/hdg-explains8/hdg-explains8/hdg-explainsswapfile-sys-hiberfilswapfile-sys-hiberfilswapfile-sys-hiberfilsys-and-pagefile-syssys-and-pagefile-syssys-and-pagefile-sysin-windowsin-windows-8/&t=HDG
in-windows-8/)
8/&text=HDG Explains
Explains –
– Swapfile.sys,
Swapfile.sys,
Hiberfil.sys and
Hiberfil.sys and
Pagefile.sys in
Pagefile.sys in
Windows
Windows 8)
8&via=akishore)

Leave a Reply
Name *

Mail *

Website

Comment *

Submit ()

ASE E M KISHOR E
Founder of Help Desk Geek and managing editor.
He began blogging in 2007 and quit his job in
2010 to blog full-time.

SIGN UP FOR DAILY EMAIL N EWSLETTER

Enter your email

CON N ECT WITH US

(mailto:akishore@helpdeskgeek.com) 

ABOUT H ELP DESK GEEK

Go

Welcome to Help Desk Geek- a blog full of help desk tips for
IT Professionals. My name is Aseem Kishore and I work as a
Systems Analyst in Dallas, TX. I graduated from Emory
University in Atlanta, GA in 2002 with a degree in Computer
Science and Mathematics.
Read More (http://helpdeskgeek.com/about/)

More Related Content

PDF
My sql innovation work -innosql
PDF
How to migrate windows 10 with gs rich copy 360
PPTX
Your website is only as safe as your last good backup
PDF
WebHDFS at King - May 2014 Hadoop MeetUp
PPT
Create your on personal website - PowerPoint Presentation
PDF
Integration with hdfs using WebDFS and NFS
PPTX
Windows 8 Forensics & Anti Forensics
PDF
Htg explains what is the windows page file and should you disable it
My sql innovation work -innosql
How to migrate windows 10 with gs rich copy 360
Your website is only as safe as your last good backup
WebHDFS at King - May 2014 Hadoop MeetUp
Create your on personal website - PowerPoint Presentation
Integration with hdfs using WebDFS and NFS
Windows 8 Forensics & Anti Forensics
Htg explains what is the windows page file and should you disable it

Similar to Hdg explains swapfile.sys, hiberfil.sys and pagefile (20)

PDF
Htg explains what is the windows page file and should you disable it
PPT
How To Make System Work Faster
PPTX
Creep Inside Your Hard Disk and Reclaim Tens of GBs
PPT
Windows Xp Optimization
PPT
A To Z Optimization Of Computer
PPTX
Speed up your computer
PPT
Booy Up
PDF
Slow PC? Find out the reasons and solve it!
PPT
Improving application performance through swap compression
PPT
Chapter 8 Operating Systems And Utility Programs
PPTX
The purpose of operating systems
PPTX
The purpose of operating systems
PDF
Testing and Benchmarking (Joel)
PDF
Mcse notes
PPTX
INTRODUCTION TO WINDOWS.pptx
PDF
Performance Issues in Windows 8
PPT
Chapter08-OS.ppt
PDF
CSC1100 - Chapter06 - Operating System & Utility Programs
DOCX
Tips to improve your computer
PPTX
Configuring startup and troubleshooting startup issues
Htg explains what is the windows page file and should you disable it
How To Make System Work Faster
Creep Inside Your Hard Disk and Reclaim Tens of GBs
Windows Xp Optimization
A To Z Optimization Of Computer
Speed up your computer
Booy Up
Slow PC? Find out the reasons and solve it!
Improving application performance through swap compression
Chapter 8 Operating Systems And Utility Programs
The purpose of operating systems
The purpose of operating systems
Testing and Benchmarking (Joel)
Mcse notes
INTRODUCTION TO WINDOWS.pptx
Performance Issues in Windows 8
Chapter08-OS.ppt
CSC1100 - Chapter06 - Operating System & Utility Programs
Tips to improve your computer
Configuring startup and troubleshooting startup issues
Ad

More from Trường Tiền (20)

PDF
Xử lý tình huống khi gặp csgt voz forums
PDF
Tắt chức năng chkdsk của windows xp
PDF
Fix boot error 0x c0000098
PDF
Troubleshoot a failed hard drive help desk geek
PDF
Recover accidentally deleted files in windows help desk geek
PDF
Install .net framework 3.5, 3.0, 2
PDF
Hướng dẫn cấu hình hạn chế truy cập internet trên adsl modem chào mừng đến ...
PDF
How to add the windows calculator to the quick access toolbar in microsoft ex...
PDF
Hdg explains what is the system reserved partition - help desk geek
PDF
Deu datasheet rev_u
PDF
Common port
PDF
PDF
4 websites for learning javascript, j query, python, html, and css help des...
PDF
Common port
PDF
Hướng dẫn cấu hình hạn chế truy cập internet trên adsl modem chào mừng đến ...
PDF
Deu datasheet rev_u
PDF
PDF
Recover accidentally deleted files in windows
PDF
Install .net framework 3.5, 3.0, 2
PDF
How to add the windows calculator to the quick access toolbar in microsoft ex...
Xử lý tình huống khi gặp csgt voz forums
Tắt chức năng chkdsk của windows xp
Fix boot error 0x c0000098
Troubleshoot a failed hard drive help desk geek
Recover accidentally deleted files in windows help desk geek
Install .net framework 3.5, 3.0, 2
Hướng dẫn cấu hình hạn chế truy cập internet trên adsl modem chào mừng đến ...
How to add the windows calculator to the quick access toolbar in microsoft ex...
Hdg explains what is the system reserved partition - help desk geek
Deu datasheet rev_u
Common port
4 websites for learning javascript, j query, python, html, and css help des...
Common port
Hướng dẫn cấu hình hạn chế truy cập internet trên adsl modem chào mừng đến ...
Deu datasheet rev_u
Recover accidentally deleted files in windows
Install .net framework 3.5, 3.0, 2
How to add the windows calculator to the quick access toolbar in microsoft ex...
Ad

Hdg explains swapfile.sys, hiberfil.sys and pagefile

  • 1. (http://helpdeskgeek.com) Archives (/archives/) Featured (/category/featured-posts/) Reviews (/category/reviews/) Search HDG Explains – Swapfile.sys, Hiberfil.sys and Pagefile.sys in Windows 8 October 9th, 2012 by Aseem Kishore | File in: Featured Posts (http://helpdeskgeek.com/category/featured-posts/), Windows 8 (http://helpdeskgeek.com/category/windows-8/) In previous versions of Windows, you probably remember the good ol paging file. It’s used to when physical memory becomes overcommitted and it hold objects that usually have not been accessed in a long time. That is pagefile.sys. Next, we had the hibernate option in Windows that let you save the kernel and all applications to your hard drive so that you could start your computer back up faster than doing a full reboot. That is hiberfile.sys. In Windows 8, things get more complicated. The pagefile.sys is there all the time, but the hiberfil.sys is only there if you have fast startup enabled in Windows 8. What is fast startup? It basically allows Windows 8 to perform a hybrid shutdown. This is why Windows 8 boots up so much faster than previous versions of Windows. Check out my previous post that explains what a hybrid shutdown is in Windows 8 (http://www.online-tech-tips.com/windows-8/perform-a-complete-shutdown-in-windows8/). In order to use the new hybrid shutdown feature, which is turned on by default, hibernation has to be enabled in Windows 8. If hibernation is disabled, you won’t have a hiberfil.sys file and you won’t be able to use the fast startup option either. You can read my post here about enabling hibernation in Windows 8 (http://helpdeskgeek.com/windows-8/turn-on-fast-startupmissing-in-windows-8-power-options/). Categories DAILY NEWSLETTER Enter your email Go  (mailto:[email protected])  (https://plus.google.com/b/118345  (https://www.facebook.com/pages/H DeskGeek/183299011719864)  (http://twitter.com/akishore)  (/feed/rss/) RECENT POSTS Refresh, Reinstall or Restore Windows 8 (http://helpdeskgeek.com/windows-8/refreshreinstall-or-restore-windows-8/) HDG Guide – Storage Spaces and Pools in Windows 8 (http://helpdeskgeek.com/windows8/hdg-guide-storage-spaces-and-pools-inwindows-8/) Install Windows Media Center on Windows 8 (http://helpdeskgeek.com/windows-8/installwindows-media-center-on-windows-8/) Now the interesting thing is that when you have fast startup enabled (meaning hibernation is enabled), then your hiberfil.sys will be about 75% of your RAM and the paging file will be around 25%. This is because the hiberfil.sys contains the Windows 8 kernel and device drivers. The paging file is only used if all RAM is exhausted only our system and is used while you’re actually running Windows. The hiberfil.sys is only used for the boot process. 20 of The Best TV Streaming Devices (http://helpdeskgeek.com/free-tools-review/20-ofthe-best-tv-streaming-devices/) If you don’t have hibernation enabled in Windows 8, you’ll see that the paging file is now the same size as the amount of RAM you have. RELATED POSTS HDG Guide – Storage Spaces and Pools in Windows 8 (http://helpdeskgeek.com/windows8/hdg-guide-storage-spaces-and-pools-inwindows-8/) HDG Guide – What to do with an Extra PC? (http://helpdeskgeek.com/how-to/hdg-guide-whatto-do-with-an-extra-pc/) In the above screenshot, I have a Windows 8 machine with 1 GB of RAM and fast startup disabled. Now that we understand how that works, let’s get down to the new one: swapfile.sys. What the heck is that? Well, it’s basically like the paging file, but serves different purposes. One of the main reasons for the swapfile.sys is to suspend and resume Metro apps. So why not just use the paging file instead Windows 8 Device Guide (http://helpdeskgeek.com/windows-8/windows-8device-guide/) to do that? It’s used because certain types of paging operations can be done more efficiently using this special type of pagefile. HDG Guide to Customizing and Organizing the Here’s a more clear explanation. Windows 8 supports both paging and swapping. Paging will hold items that haven’t been Windows 8 Start Screen accessed in a long time whereas swapping holds items that were recently taken out of memory. The items in pagingfile may (http://helpdeskgeek.com/windows-8/hdg-guide- not be accessed again for a long time whereas the items in swapfile might be accessed much sooner. to-customizing-and-organizing-the-windows-8start-screen/)
  • 2. Also, paging is very effective on high-end machines whereas swapping is more effective on low-end tablets and PCs. Each paging file has different requirements for dynamic growth, space reservation, read/write policies, etc. If you were to have the same paging file, it would become fragmented very quickly because of the fixed-size pages used in paging and the big Should You Upgrade to Windows 8? (http://helpdeskgeek.com/windows-8/should-youupgrade-to-windows-8/) chunks used in swapping. As you can see from above, the swapfile.sys is about 256 MB in size. As of now, it’s used for Metro apps because of their different paging needs as compared to traditional Windows programs. There may be other uses too for it in the future, but Microsoft has not specified what exactly. So that’s what those three files do on a Windows 8 system. Note that there are some interesting and annoying things that can happen. If you have 16 GB of RAM and are using fast startup in Windows 8, that means you’re going to have a 16 GB hibernation file too! If you’re running Windows 8 on an SSD, that may be taking up a large portion of your disk space. You can reduce the size of the hibernation file (hiberfil.sys) in Windows 8 by using the following command: p owe rcfg.e xe /hib e rna te /size 5 0 This will reduce the size of the hibernation file to 50% of RAM rather than 100%. Note that you cannot lower it any more than 50%. However, if you have a large amount of RAM like 16GB or something like that, you can save yourself 8 GB of space. The other thing is that you don’t need to worry about the hibernation file becoming too large like in previous versions of Windows. Earlier the hibernation file stored the kernel, device drivers and all application data. Now that there is no application data, the size of the file stays pretty constant, so if you have a lot of RAM, you probably don’t need a hibernation file that is so large anyway. Hopefully, that gives you a clearer understanding of how the pagefile.sys, hiberfil.sys and swapfile.sys files work on Windows 8. If you have any questions, feel free to post a comment. Enjoy! 0 There are 0 comments, care to add yours? (http://helpdeskgeek.com/windows-8/hdg-explainsswapfile-sys-hiberfil-sys-and-pagefile-sys-in-windows8/#respond)  Tweet This  Facebook Like  Google+ (http://twitter.com/share? (http://www.facebook.com/sharer.php? (http://plus.google.com/share? url=http://helpdeskgeek.com/windowsu=http://helpdeskgeek.com/windowsurl=http://helpdeskgeek.com/windows8/hdg-explains8/hdg-explains8/hdg-explainsswapfile-sys-hiberfilswapfile-sys-hiberfilswapfile-sys-hiberfilsys-and-pagefile-syssys-and-pagefile-syssys-and-pagefile-sysin-windowsin-windows-8/&t=HDG in-windows-8/) 8/&text=HDG Explains Explains – – Swapfile.sys, Swapfile.sys, Hiberfil.sys and Hiberfil.sys and Pagefile.sys in Pagefile.sys in Windows Windows 8) 8&via=akishore) Leave a Reply Name * Mail * Website Comment * Submit () ASE E M KISHOR E Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. SIGN UP FOR DAILY EMAIL N EWSLETTER Enter your email CON N ECT WITH US (mailto:[email protected])  ABOUT H ELP DESK GEEK Go Welcome to Help Desk Geek- a blog full of help desk tips for IT Professionals. My name is Aseem Kishore and I work as a Systems Analyst in Dallas, TX. I graduated from Emory University in Atlanta, GA in 2002 with a degree in Computer Science and Mathematics. Read More (http://helpdeskgeek.com/about/)