You are aware that you are defragging useless, stale data? The
hibernation file is created every time the computer enters into
hibernation, and is overwritten with the data currently in memory and
cache. There is absolutely no reason to defrag the hiberfil.sys, as it
will not be used for the next cycle...you are deefragging information that
is going to be completely overwritten on the next hibernation, and that
data may or may not be fragmented.
Waste of time to defrag the hiberfile.sys...
I realize that the file is absolutely worthless once the system is back up
and running, but put it this way:
I've seen the hibernate file get split into thousands of fragments (my
record so far, >7600). Going into and coming out of hibernation took
minutes (2-3) of heavy disk activity. After defragging, with the hibernate
file now contiguous, hibernating takes maybe 15-20 seconds.
If the file's heavily fragmented, it doesn't matter if it gets rewritten
from scratch every time--it's still going to get recreated using the same
fragmented disk space. I can *absolutely* quantify the difference in
measurable time. You're free to believe otherwise.