All Forums
 Microsoft Windows CE
 CE Drivers
 Automatically flushing Hive Registry
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 21 Dec 2005 :  09:46:59  Show Profile  Email Poster
I have a system with a Hive registry. I made changes to my registry and restarted but the settings did not persist. I thought the Hive registry was supposed to save all my changes. What's going on?

A Hive-based registry simply means that changes made to the registry from the initial boot state can be stored in a file-system-based file. To make this useful most OEMs, including ADS, set the location for these files to be in a folder that is persistent. On ADS Systems, that location is FlashF DiskDocuments and Setting.

A Hive-based registry does not automatically write changes to the Hive file with one exception - when the system goes into suspend mode RegFlushKeys is called.

The Hive registry engine can be set up to run a background thread to monitor registry activity and automatically flush at certain thresholds. ADS initially did some testing with these settings and found that there were no "one size fits all" settings that didn't have performance impact on some group of customers. Only the customer can know what the ideal thresholds might be.

To enable and adjust the thresholds in your system you can modify the following registry keys. Keep in mind that when you set them, you will have to manually persist your registry and then restart in order for them to take effect. Putting them in ADSLOAD.REG is not enough, as those entries get applied after the Hive manager is running.



[HKEY_LOCAL_MACHINESystemObjectStoreRegFlush]
; To monitor the flushing from an external process add "ActivityName" registry value.
; The activity name is a global named event that filesystem will signal on Registry Activity.
"ActivityName"="RegistryChangeEvent"
; Create an thread in filesys to perform flushing
"SpawnThread"=dword:1
; Make the thread IDLE priority
"FlushPriority256"=dword:FF
; ActivityThreshold specifies the # of reg activity before we force a flush
"ActivityThreshold"=dword:200
; Timeout period for a flush (flush occurs if there have been some changes during this period)
"FlushPeriod"=dword:5E20

  Topic  
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000