Re: Power manager problem Hive
- From: "Andrew Rogers [MSFT]" <arogers@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Oct 2005 10:20:13 -0700
By default, storage devices use the activity event named in the base storage
profile:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
"ActivityEvent"="PowerManager/ActivityTimer/SystemActivity"
This ActivityEvent is watched by the power manager. Setting the event
indicates system activity, impacting the power manager's state machine. You
can disable the activity event associated with a storage device by changing
the registry settings under the storage profile. The following example will
disable activity events for all Hard Disks (HDProfile):
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"ActivityEvent"=""
"EnableActivityEvent"=dword:0
You could globally disable file system activity timers by making the same
change under the base profile key (above).
The built-in flush mechanism provided by filesys.exe when
PRJ_ENABLE_REGFLUSH_THREAD is set is very simplistic; it flushes the
registry after the prescribed time-out or after the number of changes
reaches the configured threshold. It would be possible to develop an
application or driver that performs smarter flushing by changing the
regflush configuration:
[HKEY_LOCAL_MACHINE\System\ObjectStore\RegFlush]
"ActivityName"="RegFlushEvent"
"SpawnThread"=dword:0
"ActivityThreshold"=dword:1
The above settings will cause the file system to create an event named
RegFlushEvent (ActivityName) and signal the event after ever 1
(ActivityThreshold) registry change. Any application could open the
RegFlushEvent event, wait for registry changes, and then flush based on its
own heuristic using the RegFlushKey API.
--
Andrew Rogers
Microsoft Windows CE Core OS
http://blogs.msdn.com/ce_base/
___________________________________________________________
To reply directly, remove "online" from my email address.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Pretissimo2002" <pretissimo2002@xxxxxxxx> wrote in message
news:1127995079.072405.227250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thank you for the effort; see the questions inline.
>
>> When you use the hive based registry, your registry settings live in a
>> file
>> on disk. If there have been registry changes since the last flush, a
>> flush
>> will result in writes to the disk. The disk write will toggle the
>> SystemActivity event preventing the system from entering the SystemIdle
>> idle
>> state for a period of time.
>
> So whenever there is a disk write the 'SystemActivity' event gets reset
> to prevent the device to suspend? Is that to prevent dataloss? I think
> alot of disk devices are protected against dataloss in either hardware
> or software. Is there a way to turn this 'feature' off?
>
>> Have you enabled the built-in registry flushing mechanism (e.g. set
>> PRJ_ENABLE_REGFLUSH_THREAD)?
>
> Does it make a difference if a custom driver/application starts a
> flushing thread or that the kernel starts it?
>
.
- Follow-Ups:
- Re: Power manager problem Hive
- From: Pretissimo2002
- Re: Power manager problem Hive
- Prev by Date: Re: WinCE 5.0 IIC driver integration
- Next by Date: Re: Samsung 2410 BSP touch panel question
- Previous by thread: Re: Where can I download "Brain Dead File System"?
- Next by thread: Re: Power manager problem Hive
- Index(es):
Relevant Pages
|
Loading