: For absolute control, the powercfg command is the standard tool.

Historically, the hibernation file was roughly the same size as your total RAM. If you had 16GB of RAM, the file would be roughly 16GB in size. This ensured there was enough space to dump the entire memory contents if necessary.

powercfg /h /size <percentage>