-2

what is the difference between hyberfil.sys, swapfil.sys, and pagefil.sys?

I need to know whether or not these large files are slowing down the booting process, and I need to know whether or not it is safe to delete them.

1 Answers1

1

They're not slowing down the booting process, and it isn't safe to delete them. Making them smaller won't make booting any faster.

The pagefile is used to hold private committed virtual memory that the OS has decided to evict from RAM... and to read it back in again if it's ever needed. This is typically done a few pages at a time (4KB each). Since the advent of compressed memory in Windows 10 it is used less than it used to be. It is possible to delete it, or make it smaller, but this risks programs hitting "out of virtual memory" errors.

n.b.: Getting rid of your pagefile will not "turn off virtual memory" nor eliminate paging to or from disk.

The swapfile is used for rollout/rollin of Windows Store Apps. This is sort of like paging, but it's done to entire processes at once. I doubt seriously that any of this is going on during bootstrapping. In any case the only parts of the file that are accessed are those of the total size large enough to do the work; the fact that the file is bigger than that does not hurt performance - it's not as if it's ever read or written from one end to the other.

The hibernate file is used when you hibernate - i.e. suspend-to-disk - your system. It needs to be size of RAM or it won't work. It isn't used at all during a fresh boot.