A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

hyberfil Question



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old July 23rd 17, 02:07 PM posted to alt.windows7.general
SteveGG
external usenet poster
 
Posts: 366
Default hyberfil Question

Does hyberfil.sys have any advantage other than that involving the
hibernation functioning. e.g. - Can apps etc. access the file to load
faster etc. Is there any reason to have hyberfil.sys if you never
hybernate ?
Ads
  #2  
Old July 23rd 17, 02:09 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default hyberfil Question

"SteveGG" wrote

| Does hyberfil.sys have any advantage other than that involving the
| hibernation functioning. e.g. - Can apps etc. access the file to load
| faster etc. Is there any reason to have hyberfil.sys if you never
| hybernate ?

I don't know about its possible uses, but I always delete it
because 1) I don't use hibernation and 2) It's a big space
waster.


  #3  
Old July 23rd 17, 02:37 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default hyberfil Question

Mayayana wrote:
"SteveGG" wrote

| Does hyberfil.sys have any advantage other than that involving the
| hibernation functioning. e.g. - Can apps etc. access the file to load
| faster etc. Is there any reason to have hyberfil.sys if you never
| hybernate ?

I don't know about its possible uses, but I always delete it
because 1) I don't use hibernation and 2) It's a big space
waster.



From an Administrator command prompt, try:

powercfg /h off

That will delete hiberfil.sys , as well as
removing "Hibernate" from the shutdown menu.

Paul
  #4  
Old July 23rd 17, 03:01 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default hyberfil Question

"Paul" wrote

| From an Administrator command prompt, try:
|
| powercfg /h off
|
| That will delete hiberfil.sys , as well as
| removing "Hibernate" from the shutdown menu.
|

If you say so. I don't know why not to just
use Control Panel - Power Options. It saves
having to remember an incantation. (I asume
it's still there on Win7. I'm on XP right now
and don't remember.)


  #5  
Old July 23rd 17, 03:07 PM posted to alt.windows7.general
Rene Lamontagne
external usenet poster
 
Posts: 2,549
Default hyberfil Question

On 7/23/2017 9:01 AM, Mayayana wrote:
"Paul" wrote

| From an Administrator command prompt, try:
|
| powercfg /h off
|
| That will delete hiberfil.sys , as well as
| removing "Hibernate" from the shutdown menu.
|

If you say so. I don't know why not to just
use Control Panel - Power Options. It saves
having to remember an incantation. (I asume
it's still there on Win7. I'm on XP right now
and don't remember.)



Where is it in modern systems such as Windows 10?

Rene

  #6  
Old July 23rd 17, 04:44 PM posted to alt.windows7.general
SteveGG
external usenet poster
 
Posts: 366
Default hyberfil Question

Getting rid of it wasn't the question, BUT whether it serves some
purpose other than in hibernation. Does it speed up other things ?
  #7  
Old July 23rd 17, 04:51 PM posted to alt.windows7.general
Rene Lamontagne
external usenet poster
 
Posts: 2,549
Default hyberfil Question

On 7/23/2017 10:44 AM, SteveGG wrote:
Getting rid of it wasn't the question, BUT whether it serves some
purpose other than in hibernation. Does it speed up other things ?


In all the searching and googling I did I could not find any other valid
use for it, Mine has been turned off for some 7 or 8 years.

Rene

  #8  
Old July 23rd 17, 04:57 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default hyberfil Question

"Rene Lamontagne" wrote

| Where is it in modern systems such as Windows 10?
|
http://www.tomsitpro.com/articles/wi...tings,2-4.html

But I think in "modern" systems you're supposed
to talk to it. As in:

"Cortana. Chill."

or

"Thanks for the amazing sex, Cherry 2000. Now
please shut yourself off until 7 AM."


  #9  
Old July 23rd 17, 05:02 PM posted to alt.windows7.general
NY
external usenet poster
 
Posts: 586
Default hyberfil Question

"Paul" wrote in message
news
Mayayana wrote:
"SteveGG" wrote

| Does hyberfil.sys have any advantage other than that involving the
| hibernation functioning. e.g. - Can apps etc. access the file to load
| faster etc. Is there any reason to have hyberfil.sys if you never
| hybernate ?

I don't know about its possible uses, but I always delete it
because 1) I don't use hibernation and 2) It's a big space
waster.


From an Administrator command prompt, try:

powercfg /h off

That will delete hiberfil.sys , as well as
removing "Hibernate" from the shutdown menu.


Should

powercfg /h on

re-create the hyperfil.sys and add Hibernate to the Shutdown menu?

Even after rebooting, there is still no Hibernate option, only Sleep
(default) and then Switch User, Log off, Lock, Restart, Shutdown (all those
five are accessed through the button to the right of Sleep). This is Win 7
Home Premium.

There is a hiberfil.sys which there wasn't before.

In Control Panel | Power, for the power plan that I'm using, I've gone to
Advanced Power settings and looked at Sleep | Allow Hybrid Sleep but the
battery and mains options are on and are greyed-out so I can't turn them
off.


I've had hibernation working in the past and I disabled it (powercfg /h off)
to free up some disc space, and now I can't enable it again.

It would be useful to be able to hibernate the PC's state to a disk file
rather than memory because the battery on my laptop has failed so if I
unplug the laptop it has to boot from "cold" because the memory dump of the
PC's state gets wiped.

Any other suggestions for things to try in enabling hibernation?

  #10  
Old July 23rd 17, 05:03 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default hyberfil Question

"SteveGG" wrote

| Getting rid of it wasn't the question, BUT whether it serves some
| purpose other than in hibernation. Does it speed up other things ?

Sleep is leaving the current setup in RAM.
Hibernate puts it into a file. The point is to
leave everything as-is rather than needing
to close up all current work and then reboot
later. How could it be possible for software
to start up more quickly by accessing an
outdated snapshot of the system?

Here's a non-script-requiring explanation from
the horse's mouth:

http://webcache.googleusercontent.co...&gbv=1&ct=clnk

No magic. Just a backup of current config.


  #11  
Old July 23rd 17, 05:06 PM posted to alt.windows7.general
Rene Lamontagne
external usenet poster
 
Posts: 2,549
Default hyberfil Question

On 7/23/2017 10:57 AM, Mayayana wrote:
"Rene Lamontagne" wrote

| Where is it in modern systems such as Windows 10?
|
http://www.tomsitpro.com/articles/wi...tings,2-4.html

But I think in "modern" systems you're supposed
to talk to it. As in:

"Cortana. Chill."

or

"Thanks for the amazing sex, Cherry 2000. Now
please shut yourself off until 7 AM."



Ha, Paul was exactly right as usual.
Your answer is the usual bull**** when you don't know Anything about
Windows 10'

Rene


  #12  
Old July 23rd 17, 05:16 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default hyberfil Question

"Rene Lamontagne" wrote

| Ha, Paul was exactly right as usual.
| Your answer is the usual bull**** when you don't know Anything about
| Windows 10'
|

?? I'm sorry to bother you with links and answers.
I'll try to keep your view in mind in the future. You
do realize you're in a Win7 group?

I had no problem with Paul's answer, but a command
line isn't for everyone. The Windows GUI is mostly
self-explanatory. If someone knows how to get to
Control Panel they can figure out most things.
Command line incantations require that one either
memorize them or keep a listing somewhere. It's
more work. That's why Windows came *after* DOS.
It's supposed to be an improvement. So if one wants
to offer command line solutions I figure it makes
sense to also offer the GUI solution, so that people
can help themselves and not just memorize commands.


  #13  
Old July 23rd 17, 05:33 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default hyberfil Question

SteveGG wrote:
Getting rid of it wasn't the question, BUT whether it serves some
purpose other than in hibernation. Does it speed up other things ?


The Pagefile.sys is dual-use.

It functions as a pagefile, but also functions as a dump bucket
on a BSOD. From Wikipedia:

"It is required, however, for the boot partition (i.e. the drive
containing the Windows directory) to have a pagefile on it *if*
the system is configured to write either kernel or full memory dumps
after a Blue Screen of Death. Windows uses the paging file as
temporary storage for the memory dump. When the system is rebooted,
Windows copies the memory dump from the pagefile to a separate file
and frees the space that was used in the pagefile."

By default your system is set up for small dumps (.dmp) and
so this isn't a problem. So you don't immediately have to be
concerned about the size of your pagefile. I messed around with
this once, got my system crash... but the thing that writes
to the pagefile on a crash, is as slow as molasses. So even if
it seemed like a good idea to set up a full dump, you're going
to have time to make a meal when it does a BSOD.

*******

By comparison, I'm not aware of a second use for the Hiberfil.sys.
The header of the file should be overwritten and invalidated when
a system is booted. The file is (partially) written when you
hibernate. Normally, not all memory on the system is used,
and so the hiberfil.sys never gets written to the very end.
And due to the lightweight compressor used, that helps
shorten the amount of writes needed.

And it's also possible the hiberfil.sys didn't always use
a compressor. On an OS like WinXP, it's more likely the
hiberfil.sys has to be the same size as memory, to make
a verbatim copy of memory.

The system knows what memory is in usage, which is why
it doesn't need to write out all of it.

*******

And there will be corner cases, where hibernate simply
cannot work properly. My current system is WinXP, with
8GB of memory, and a 4GB RAM Drive which uses memory from
PAE space. If this system were to hibernate, the hibernation
writer doesn't know about the PAE space, and won't be
writing it. While hibernation is still enabled on the
machine, I don't use it for that reason. My RAMdisk would
come back up "corrupted" and all data lost. On the
other hand, the Sleep option works just fine, and I
use that all the time. When the machine comes out of
sleep, all 8GB of RAM is the same as it ever was.

The RAMDisk does have an option to "write out" the
contents at shutdown. So there is a mechanism I can
use to protect the content, but that is disabled too
(for speed reasons).

Paul
  #14  
Old July 23rd 17, 06:41 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default hyberfil Question

NY wrote:
"Paul" wrote in message
news
Mayayana wrote:
"SteveGG" wrote

| Does hyberfil.sys have any advantage other than that involving the
| hibernation functioning. e.g. - Can apps etc. access the file to load
| faster etc. Is there any reason to have hyberfil.sys if you never
| hybernate ?

I don't know about its possible uses, but I always delete it
because 1) I don't use hibernation and 2) It's a big space
waster.


From an Administrator command prompt, try:

powercfg /h off

That will delete hiberfil.sys , as well as
removing "Hibernate" from the shutdown menu.


Should

powercfg /h on

re-create the hyperfil.sys and add Hibernate to the Shutdown menu?

Even after rebooting, there is still no Hibernate option, only Sleep
(default) and then Switch User, Log off, Lock, Restart, Shutdown (all
those five are accessed through the button to the right of Sleep).
This is Win 7 Home Premium.

There is a hiberfil.sys which there wasn't before.

In Control Panel | Power, for the power plan that I'm using, I've gone
to Advanced Power settings and looked at Sleep | Allow Hybrid Sleep but
the battery and mains options are on and are greyed-out so I can't turn
them off.


I've had hibernation working in the past and I disabled it (powercfg /h
off) to free up some disc space, and now I can't enable it again.

It would be useful to be able to hibernate the PC's state to a disk file
rather than memory because the battery on my laptop has failed so if I
unplug the laptop it has to boot from "cold" because the memory dump of
the PC's state gets wiped.

Any other suggestions for things to try in enabling hibernation?


In Administrator Command Prompt:

powercfg -a

That shows available states, and for hibernate, mine shows
there isn't space for hiberfil.sys and error 0xC000007F or so.

So far, I haven't been able to free up enough space to try

powercfg -h -size 50

which would create a hiberfil.sys which is 50% of main memory.
It won't let you make a smaller file than that.

I erased my USN journal and there still isn't enough space.
And I blew away all my restore points.

Paul
  #15  
Old July 23rd 17, 06:42 PM posted to alt.windows7.general
Ken Blake[_5_]
external usenet poster
 
Posts: 2,221
Default hyberfil Question

On Sun, 23 Jul 2017 11:44:16 -0400, SteveGG
wrote:

Getting rid of it wasn't the question, BUT whether it serves some
purpose other than in hibernation. Does it speed up other things ?



No. It has no function other than hibernation and it's useless if you
don't use hibernation.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 04:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.