Pagefile.sys and Hiberfil.sys are huge!

XxAkenoxX

Honorable
Jan 28, 2014
29
0
10,530
Both of these files are on my SSD.
Using WinDirStat, currently Pagefile.sys is 8.0GB and Hiberfile.sys is 6.3GB.
I tried deleting hiberfile.sys since I never use hibernation (I'm on a desktop) by doing "powercfg -hibernation off" in the Command Prompt (Admin) but whenever I tried shutting down my desktop, it boots back up by itself unless I have this hiberfile.sys file... Which is extremely weird since I see this fix on the internet lol
For the pagefile.sys, I don't know what to do with it. Any help would be awesome! I love having my SSD have so much space so this is a predicament.

Desktop
Windows 8.1
8GB Ram
240GB SSD and 1TB HDD
 
Solution
Depending on how much physical ram you got , typically 16 gigs or higher then you could turn off pagefile and be ok on your drive . that will shrink in size.
With the hiberfile, It might also hold your windows startup settings, but thats just a guess . I would leave it alone. deleting system files is not a good idea.
There is a saying " if its not broke , dont fix it" Another option is that you could set your pagefile to less like 4gb and be ok .
Star menu/rightclick my computer/select properties/select advanced system settings/performance settings/advanced tab/change/

select drive and select "custom size" type a min 4000mb or 3000mb then a max amount you want to use . hit set and restart pc.

They say you should have twice as...
Depending on how much physical ram you got , typically 16 gigs or higher then you could turn off pagefile and be ok on your drive . that will shrink in size.
With the hiberfile, It might also hold your windows startup settings, but thats just a guess . I would leave it alone. deleting system files is not a good idea.
There is a saying " if its not broke , dont fix it" Another option is that you could set your pagefile to less like 4gb and be ok .
Star menu/rightclick my computer/select properties/select advanced system settings/performance settings/advanced tab/change/

select drive and select "custom size" type a min 4000mb or 3000mb then a max amount you want to use . hit set and restart pc.

They say you should have twice as much pagefile as you do physical memory . pagefile uses your drive for temp storage as if it was ram. also if you want you can disable pagefile on your ssd , and if you got a hdd then use that for pagefile and keep it at system recommended .
 
Solution


In my case, the pagefile is the same size as my physical memory, but I don't have any problems.
I'm assuming I should just leave it?
 
yes I would leave it alone, but if you wanted to you could set a lesser amount for pagefile but might see a drop in performance
If the system managed size is 8gb , and you want to free up space , could try setting it to 4gb in steps I mention above and see
what kinda of a difference that makes . I would only do it if you really need that extra 4gb for storage . other than that , Its up to you
 
> I tried deleting hiberfile.sys since I never use hibernation (I'm on a desktop) by doing "powercfg -hibernation off" in the Command Prompt

It worked for me when I used capital letters for the option, like the help file says. Go figure. That also deletes hiberfil.sys

> For the pagefile.sys, I don't know what to do with it.

Well for one thing, get it the hell off c:

But you can make lemonade from lemons (or whatever the saying is). Get a 64-bit RAM disk program that allows you to make an 4G ram drive and put the paging file there. Word on the street is that 7 has one available for free now, but I have used Winramtech Ramdisk Enterprise 64 for years and I love it. Put the temp files there too.

When you do, boot happens astoundingly faster. The "welcome" screen just flashes on the screen for half a second before I get a desktop. Apps that use large temp files are much faster too. Being a speed freq, I also put all my browser cache files there. (I have 50 Mbit for the hell of it, and the once-per-browser-session read from the web server is unnoticeable.)

☞ Do NOT believe those know-nothing non-Jedi who say that Windows' crappy memory management will automatically use all your RAM before it uses the swap file!

This is NOT true, as you can see with a utility that shows swap file I/O, like taskinfo (which is both excellent and free). Just now, I looked and saw about 1,000 page faults/sec (which do not all involve the swap file), and about 300K/sec of page file writes (which DO). When I'm actually doing anything, swap I/O is even higher.

You can also watch the sanguine little drive activity light. It blinks all the time, but rarely blinks when paging, temp, and cache file I/O all go to RAM. I keep the 2G of Google Earth cache files on disk because they're so large, but modulo that, I'm always on the lookout for data structures I can divert into memory.

For example, I also set my download directory to be on the RAM disk, too. Almost everything I download (other than po rn) is either zip files or run-once installation files, which you otherwise have to delete. Oh, and those installs run twice as fast, too—without fragmenting your HDD (though of course, with an SSD, fragmentation doesn't matter).

Of course, that huge paging file no longer uses up your SSD. But you have to remember to delete it after you've moved it's functionality to RAM.

Whatever windows is doing with the swapfile, it does it much faster when its done to RAM. And BTW, I wrote the memory manager for a commercial computer language (in assembler, not C). I know whereof I speak.

ALSO: in your case, get another 8G of RAM. Then your temp files can be truly righteous. Try editing the boring "talk" parts out of a 2G nubbin-rubbin' vid both with and without the temp files in RAM. It makes so much of a difference that I upped my RAM to 32G. Now, ANYTHING fits in memory.

And paging to RAM doesn't use hardly any RAM, because you set the minimum to be 128M and the max to be a little less than the size of your RAM disk (to allow for temp files). And don't believe Microsoft when they suggest 3 or 4 times your memory space for paging. Even when I only had a 4G RAM disk, I never even once ran out of virtual memory.

And finally, I hear that games do a whole lot of virtual memory thrashing. I bet this would speed up gaming a LOT, though I wouldn't know. I never played a 3D game (except second life) because they all involve slaughtering people. What a horrible, horrible thing! Why is that fun? I'll never understand guys. Or, for that matter, humans.
 

Latest posts