Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Can I delete the paging file if I'm using an SSD drive with 8GB of RAM?

Question:

There seems to be a debate all over the web and I can’t seem to get a
straight answer. I know you covered page file on your website. But can it be
disabled, even deleted, if you’re using an SSD drive? According to some forum
pages, they go so far as to say it’s useless along with super fetch and
hibernation all in an attempt to free up space for a 60 GB SSD. I thought this
would be plenty of space when I ordered my laptop only to see it have 30 GB
free the day I received it in the mail. Using Windows 7, 64-bit, and it has 8 GB
of RAM.

In this excerpt from
Answercast #17
, I talk about freeing up disk space from the paging file and
what may cause you to decide to turn it back on again.

]]>

Delete the page file?

With 8 GB of RAM, it is certainly reasonable to consider turning off the paging file. The short answer is, absolutely, you can turn it off.

The way to do that is to go into the paging file settings and then set the paging file to zero for all drives.

That way, when you reboot, the system won’t even try to create one. If there’s an existing paging file, you can then just delete it. Just go look at it; delete it like you would any other file. It won’t be in use like it normally would and you won’t be prevented from deleting it.

Will you have enough memory?

If you’ve got 8GB of RAM, that could be more than enough.

I ran my desktop for a couple of years with no paging file with 8 GB of RAM. Only recently did I turn it back on because I was starting to do a few things that occasionally would push me past 8 GB of RAM usage.

I think my laptop that I’m recording this on today also has 8 GB of RAM and I believe I have the paging file turned off here too. It works just fine.

What it boils down to though, is that it really depends on how you use your computer:

  • If you run a lot of software simultaneously.

  • Or you run software that uses a lot of memory.

On my desktop, I was trying to run several virtual machines at the same time. Then, you may need a paging file.

But if you’re not, if you are just doing the standard stuff like surfing the web, checking email, and some simple things like that, then I’m sure you can get away without it.

Delete hibernation file

Hibernation? Again, yes.

That takes up disk space because it will create (in your case, and in my case) an 8 GB hibernation file.

A hibernation file is basically the size of your installed RAM. I never use hibernation so it’s a feature that I immediately turn off when a laptop arrives. That then allows me to go in and delete the hibernation file: hiberfile.sys. So, those are a couple of ways that would free up a fair amount of disk space right away.

Move the files

The other alternative, of course, if you’ve got a hard disk in the machine, is to move the paging files and hibernation file (in particular) to a different drive.

But then if you start saying, “Am I really getting the speed advantage I wanted out of my SSD?” …if you want this speed advantage, you kinda sorta want the paging file on the SSD.

So, it gets complicated, but absolutely, you can turn them off.

I recommend that you do so immediately. You probably also want to start taking a look at what other kinds of things are on the C drive that may be moved elsewhere, or removed, for space savings.

I have an article I would point you at, “What are hiberfil.sys and pagefile.sys? (And how do I remove them?)” That will run you through the steps to turn both of them off and remove the files: freeing up the disk space.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

7 comments on “Can I delete the paging file if I'm using an SSD drive with 8GB of RAM?”

  1. If I remove (or delete) hyberfil.sys, I get error messages from my USP auto-shutdown program section. Apparently it is used to safely shut down the computer during a power failure.

    Reply
  2. I think you always need a pagefile. When I look into my Resource Monitor on my 8GB desktop, I see a lot of hard faults.

    I also think that the system creates an emergency page file if you totally delete it.

    Surprisingly memory faults are not neccessarily a sign of page file use or neccessity I don’t think. I believe Windows uses a very interesting program load technique where they basically tell the memory manager “OK, these adresses are now backed by the file foo.exe”, and then transfers control to the program – which is then loaded by virtue of it not being in memory and causing a page fault. Advantage is that only those portions of the program that are actually used are actually loaded. I though it was clever.

    Leo
    16-May-2012
    Reply
  3. Concerning moving hiberfil.sys — I recall from years ago that it must be on the boot drive, as that is the only place the wake-up feature knows to look for it. I don’t like this file primarily because it increases the size of disk image files by a very large amount (the size of the hiberfil.sys file, less whatever compression the image has#.

    Moving the paging file makes much sense and should be done #as a general rule) on any system with available alternate partitions.

    Reply
    • It depends. Smile On how you use your computer. My sense is that basic usage (99% of your time in a browser, and you manage tabs well) you could be fine. I’d leave the paging file on though.

      Reply
      • I still plan to keep it on. If I have enough RAM, it will rarely, if at all, write to the paging file, and with an SSD, paging file access isn’t noticeably slower slower than having more RAM unless you are doing very resource hungry stuff.

        Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.