Originally posted by: MrChad
Ok, I understand. Since the registry is just a database, is there any weight to the claims by registry "tweaker" software manufacturers that claim to improve performance by "defragging" and compacting the registry file?
It would make sense that you could compact the DB after removing entries. Most DBs will not actually reduce in space until the DB is compacted after deleting files.Originally posted by: MrChad
Ok, I understand. Since the registry is just a database, is there any weight to the claims by registry "tweaker" software manufacturers that claim to improve performance by "defragging" and compacting the registry file?
Originally posted by: MrChad
Ok, I understand. Since the registry is just a database, is there any weight to the claims by registry "tweaker" software manufacturers that claim to improve performance by "defragging" and compacting the registry file?
see:Originally posted by: slayek
BTW is there a way to limit the size of registry?
Originally posted by: VirtualLarry
The answer to the question in the topic is: true - the registry file on-disk never shrinks.
I have to totally agree with mikecel79 and Smilin on this one too, there's really not that much need to defrag the registry, nor would I (personally) trust any non-MS third-party utility to do so, except for perhaps one written by the SysInternals guys. They do good stuff, I'm honestly surprised that they aren't on the NT dev team at MS by now.(Look at Andrew Schulman, he works for MS now, he literally wrote the book on "Undocumented DOS". At least now he can't testify against MS in any "stacker lawsuits" ever again, heehee.)
It is unfortunately possible, at least in W2K, for minor on-disk registry-corruption to increase the size of one of your registry hives significantly, by making a chunk of it appear allocated when it's really not. That happened to me once, I ended up with like a 20MB system hive.. no, that's can't be right, W2K can't boot with one above 16MB.. maybe I mean 12MB. Anyways, something made it grow once by leaps and bounds after
a crash.
I'm slightly curious though - the "registry size limit" that you can allocate under the VM settings in W2K - is that RAM solely allocated to the in-memory copy of the registry, such that any larger setting just wastes RAM, or is that a maximum size setting? I usually bump mine up from the default, because I almost always hit the default limit eventually with my W2K installs after a time. I usually set it to 64MB, is that a bit too high? I think I usually hit about 20-24MB usage.. 12MB
I'm slightly curious though - the "registry size limit" that you can allocate under the VM settings in W2K - is that RAM solely allocated to the in-memory copy of the registry, such that any larger setting just wastes RAM, or is that a maximum size setting? I usually bump mine up from the default, because I almost always hit the default limit eventually with my W2K installs after a time. I usually set it to 64MB, is that a bit too high? I think I usually hit about 20-24MB usage.. 12MB
The registry is *mapped* into memory at boot, not loaded. The vast majority sits on disk and is never paged into physical memory by the cache manager.Originally posted by: VirtualLarry
I'm slightly curious though - the "registry size limit" that you can allocate under the VM settings in W2K - is that RAM solely allocated to the in-memory copy of the registry, such that any larger setting just wastes RAM, or is that a maximum size setting?
Originally posted by: kylef
The registry is *mapped* into memory at boot, not loaded. The vast majority sits on disk and is never paged into physical memory by the cache manager.Originally posted by: VirtualLarry
I'm slightly curious though - the "registry size limit" that you can allocate under the VM settings in W2K - is that RAM solely allocated to the in-memory copy of the registry, such that any larger setting just wastes RAM, or is that a maximum size setting?
So that limit has no effect on physical memory usage whatsoever.
The idea Nogginboink mentioned seemed like it might work. Using Windows XP, I tried to compact the registry like NogginBoink suggested - using regedit to export the Software and System portions of the registry to a file, then booting up with the registry files created by regedit export. The exported files turned out to be almost exactly the same size as the registry files my computer already had at C:/windows/system32/config. My computer booted up from the exported files just fine, but there was no reduction in the size of either registry file. Apparently regedit export writes the white space (junk) entries in the registry along with the useful parts of the registry. My combined registry files used about 25 MB after a fresh install of XP about 4 years ago. Over the years since then, the registry files have fattened up to 42 MB. Maybe there is a way to shrink the registry without re-installing windows, but I still haven't found it. The size of the registry was not reduced using the Nogginboink method.
Nogginboink, You mentioned RegSaveKey and configuration manager. I don't know what those things are, but I created the exported System and Software files using RegEdit. Is there something I should know about "RegSaveKey" and "configuration manager?"