Faster resume from hibernation on XPE

S

Shiju

Hi,
I am trying to improve the resume time of hibernation on XPE. What all
parameters has to be tuned to get a faster resume from hibernation ?
Does minlogon will be faster to resume from hibernation compared to
winlogon ?
What I understood is that resume time from hibernation depends only on
how much data was save in RAM at the time of hibernation. If this is
true, will a minimum no: of services and a small memory footprint
application would resume faster?
Could someone help me on this.

Thanks & Regards,
Shiju
 
S

Sean Liming \(eMVP\)

The ram size of your system is what is saved to the hibersys file. If your
system ram is 512MB than you need 512MB space on your disk. The hibersys
file is what gets reloaded each time. You can use either minlogon or Windows
logon with hibernate resume.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

www.sjjmicro.com / www.seanliming.com
Author: Windows XP Embedded Advanced and Windows NT Embedded Step-by-Step
 
S

Shiju

Hi,
I had no problems on setting up hibernation on XPE. I have tested
hibernation with winlogon as well as minlogon. My question was how to
optimize the hibernation to improve its resume time. Right now I have
set up hibernation on my laptop. It takes around 11 sec to boot to XPE.
That is around 6 sec for BIOS and 5 secs for XPE. Is it possible to
reduce the 5 sec of XPE boot time to around 2-3 sec. Has anyone achieved
it ?

Thanks & Regards,
Shiju
 
K

KM

Shiju,

As Sean mentioned the RAM size is what mainly affects the hibernation time.
However, with XP kernel (and therefore XPe) there have been introduced some good optimizations in the hibernation/resume process.
The hiber file is compresed and etc.
The point that it will have a diffference what you have running in RAM at the moment you put the image in hibernate state.

Also, some drivers are going to switch to S3 state when resuming so it will take some time.
I don't know how you measured the 5-6 secs but keep in mind the less devices you have attached (less drivers are loaded) the less
resume time you can get.

KM
 
S

Shiju

Hi Sean,
Thanks for the information on the BIOS. But I am not looking at BIOS,
rather to optimize windows XPE embedded OS to get a faster resume time
on hibernation.

Thanks & Regards,
 
S

Slobodan Brcin \(eMVP\)

Hi Shiju,

What video adapter do you use?

Nvidia drivers need 3-4 seconds to initialize video adapter.
Ati need sub second if I remember correctly results of my test.

Please let us know what video adapter do you use?

Regards
Slobodan
 
S

SteveS

Shiju,

In the past I have also had success reducing boot times by using an
aftermarket bios. (it was a MRBIOS, I believe) The General Software
BIOS page above, http://www.gensw.com/, claims < 1 second for POST.
This would reduce your total power on time from 11 seconds to 6
seconds...


Steve

 
S

Shiju

Hi Slobodan,
I use ATI video card. Could tunning any component in XPE, the resume
time of 5 sec(that I have achieved on my system) from hibernation could
be further reduced.I used XPE sp2.

Thanks & Regards,
 
S

Slobodan Brcin \(eMVP\)

Hi Shiju,

Faster processor, and less drivers can only help :-(
What processor do you use?

Regards,
Slobodan
 
S

Shiju

Hi,
I use Intel Pentium M 2.13MHz processor. Could I know if any one of you
have achieved resume from hibernation time of around 3sec. I was just
wondering whether 5 sec of resume from hibernation is the optimized.

Thanks & Regards,
 
K

KM

Shiju,

Well.. I already asked how you measured the resume time.

It was only the ntldr time to resume the hibernated image (before all drivers recieve IRPs to go to S0 state) then it was definitely
less than 5 secs in my tests.

KM
 
S

Shiju

Hi KM,
I measure the resume time by putting the system to hibernate and resume
it back till I see the command shell(this was the state when I put the
system to hibernate). I measure the time taken from system power on to
BIOS boot just before it gives control to the OS and then from BIOS hand
over to OS till the command prompt appears on the windows XPE.The latter
time is around 5 sec on my system.

Thanks & Regards,
 
K

KM

Shiju,

Please use the BootVis tool I mentioned in other post in this thread. It will give you more clear picture on what's going on on your
device while resume.

KM
 
S

Slobodan Brcin \(eMVP\)

Hi Shiju,

Command prompt?
Full screen or minimized?

If full screen I wonder how you manager to make it work in the first place. Try using GUI version (non full screen) of command
prompt.


Regards,
Slobodan
 
S

Shiju

Hi Slobodan & KM,
When I use BootVis tool I get some errors.I followed the below procedure.
I selected "Next Hibernate and resume" under the "Trace" menu. Then the
application puts the system to hibernate . On resume the following
messages were displayed.

"Turn on tracing using the bootvis -on switch before saving the trace to
a file."
"File TRACE_HIBERNATE_1_1.BIN was not created."

But I do not have problems if I select "Next Boot + Driver Delay" under
the "Trace" menu. All other options are giving a similar error as hibernate.

I am using minimized command prompt.

Am I doing something wrong. Please help

Thanks & Regards,
 
K

KM

Shiju,

I can't help you much here as I haven't seen the error you mentioned. I recall I successfully tried the tool with a
Winlogon/Explorer Shell image
with a lot of components in it.

You can try analyzing BootVis dynamic dependencies to see if anything missing. Also, make sure you are not having EWF enabled
(although this is unlikely true as you have another boot trace option working).

Also, you can try a Winlogon image on the same hardware (e.g., XPProEmulation image to make sure you've got all the dependencies).

Make also sure some primitives are in your current image, like "Primitive: Dbghelp", "Primitive: Imagehlp", Ole32, Shell32,
"Primitive: Shlwapi", MFC42, "RPC Local Support", MSVCRT.

KM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top