Shudown and HORM

Posted: 02-22-2007, 09:01 PM
Normal XPe shutdown, even when using HORM, takes about 20 seconds on our
system.

What is the OS doing? The C: drive is write-protected, so it can't be
saving anything.

We do have an un-write-protected USB thumb drive,but that should not
take long to flush out.

Is there some way to speed this up? Note that we are using an ATX power
supply: The user pushes the powerw off button. This is intercepted by
our application which closes down (including closing the file on the USB
thumb drive), then signals the OS to proceed to shut down. Our
application takes only a second or two to shut down. Most of the 20
second shutdown is spent with the Windows shutdown screen.
Reply With Quote

Responses to "Shudown and HORM"

KM
Guest
Posts: n/a
 
Re: Shudown and HORM
Posted: 02-22-2007, 10:00 PM
Michael,

HORM (Hibernate) and Shutdown are different animals.

Hibernating goes by a different route and actually involves a substitute disk driver (dumpdisk driver). It typically brings the
system to Standby mode first (put all the drivers in S1/S3 state) and then dumps the RAM to disk. Dumping the RAM content also
involves some compression so it is a bit slower then just DMA'ing bits from memory to disk. But still this process is very faster,
although depends on how much RAM you've got on the target.

There are quite a few things XP system does when shutting down. From flushing out disk cache to closing network connections.

How do you protect your boot drive? If it is EWF what overlay do you use? RAM overlay would work faster.
In either case, EWF doesn't really speed up the OS shutdown process. OS is still flushing whatever buffers it needs to flush out
before it turns the power off. It is just that the disk writes will be redirected to the overlay.

If you don't care about flushing data to the disk (e.g., you flush and unmount your data partition before going to shutdown
manually), you can call NtShutdownSystem API won't flush system changes on disk. Probably the faster way to do a soft shutdown on
NT/XP.
Make sure you get enough privileges [adjust to shutdown privilege] to the token of the process that will call the API
(you can grab the code from here http://forum.ishodniki.ru/index.php?topic=7599.msg31360, just replace the "reboot" by "shutdown"
logic. Or search Google for the API name and find lots of other samples or utilities.)


--
=========
Regards,
KM
> Normal XPe shutdown, even when using HORM, takes about 20 seconds on our system.
>
> What is the OS doing? The C: drive is write-protected, so it can't be saving anything.
>
> We do have an un-write-protected USB thumb drive,but that should not take long to flush out.
>
> Is there some way to speed this up? Note that we are using an ATX power supply: The user pushes the powerw off button. This is
> intercepted by our application which closes down (including closing the file on the USB thumb drive), then signals the OS to
> proceed to shut down. Our application takes only a second or two to shut down. Most of the 20 second shutdown is spent with the
> Windows shutdown screen.

Reply With Quote
Ralph A. Schmid, dk5ras
Guest
Posts: n/a
 
Re: Shudown and HORM
Posted: 02-23-2007, 03:34 PM
Michael Bate <michaelbate@comcast.net> wrote:
>Is there some way to speed this up? Note that we are using an ATX power
>supply:
We just use a standard industrial power supply, and the user switches
the beast off the hard way Anything else is not practicable for our
application, waiting for a shutdoiwn would be impossible.

Ralph.
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HORM andry_zoras Windows XP Embedded 6 08-25-2008 09:38 AM
EWF HORM!! Bill Windows XP Embedded 3 10-28-2006 07:00 AM
Using Horm richard Windows XP Embedded 3 10-21-2006 03:14 PM
Shudown default settings David Sherman Windows Vista 9 09-13-2006 12:57 AM
app. cant anizialize?? message at shudown bob Windows XP Help & Support 1 10-19-2003 09:05 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90