9
4
This is an old problem dating back to Windows XP, now on my Windows 7 64-bit system it is starting to lose folder view settings when it comes to Details, List, Icons etc, everything else is stable for position and size. I tend use details view for most things and now folders are starting to revert to icon view sometimes, not 100% of the time mind you, but seems to be more frequent the more I use the PC.
Yes I do have thousands of folders, so I think the default cache size is used up, exact same problem I had with Windows XP.
I cannot seem to find a definitive instruction on where to find the folder view cache setting in the registry for Windows 7 64-bit, there are tons of answers for XP (which I have used in the past), and Vista and some Beta/RC Windows 7.
I did find this article from Microsoft.
In the "let me fix it myself" section for Windows 7 64-bit, I don't have the sub key Local Settings
under the key Wow6432Node
as per Microsoft article.
HKEY_CURRENT_USER\Software\Classes\Wow6432Node\
Local Settings
\Software\Microsoft\Windows\Shell\Bags
I do however have this key.
HKRU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
\Bags
and\BagsMRU
Scanning the registry for BagMRU Size
values (not keys) returns no hits. I assume Windows 7 no longer uses this value by default.
Any suggestions to increase the cache size for view settings without completely resetting the entire explorer folder settings?
Does anyone have any insight to what the max stable cache size is allowed for W7? and where to change/add this value.
Edit:
I found my old notes from the Vista and XP days, I no longer have the reference link.
Windows Vista
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
Create a DWord 32-bit BagMRU Size
and set the decimal value to 10,000
or 20,000
Sometimes folder settings get corrupted. Use regedit
to view
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
Click on Bags
and select Edit > Delete > Yes. Delete the BagMRU
key as well, and restart.
Windows XP
Windows XP SP2 fix: By default SP2 has a folder cache setting of 5,000 folders to remember view settings for each folder, if you have in excess of 5,000 folders (total of all harddrives) you have to make a registry change and up it to the maximum of 8,000. to do this Start-Run-regedit and navigate to these two folders
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell
then go to
HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam
in the right hand pane look for BagMRU size
, right click modify and select decimal and set value data to 8,000
. Do this in both locations, reboot to take effect.
I will experiment over the next few days and report back any enlightenment.
I find that there are a few registry entries windows accepts that for whatever reason never get created. Just manually add the Local Settings/etc stuff per the instructions at the bottom of the article. Windows will probably start using the key as intended. Give it a while and see if the suggested value of 5000 is good enough. – CreeDorofl – 2011-04-01T02:54:15.037
5000 is default in W7 from my understanding and I have twice that many folders and more, I will try adding the values tomorrow and see if anything changes, I would still like to know the max cache value size one can use without causing problems, as I might need 15-20K. – Moab – 2011-04-01T05:29:24.023
@Moab: I suspect it to be an unsigned integer so it gets limited at 65,535 in case it's a short and 4,294,967,295 in case it's a long; if it were not unsigned it would be it's half and still sufficient for what you specify. However, please note that this is cache, I don't think that you need the information stored for 15-20K folders but only for the folders you regularly visit. I would suggest to try 10K first if 5K isn't sufficient...
– Tamara Wijsman – 2011-04-01T10:41:49.497@Moab: As for stability, this really depends on your computer; you are just solely increasing the size the keys will take and the performance would thus depend on your hard disk, memory speed and memory usage... – Tamara Wijsman – 2011-04-01T10:44:18.950
@Tom Wijsman, Its an old problem dating back to XP, if I set it too low and open some unfrequented folders, the I lose the settings for some my most frequented, once the cache is full it starts losing the oldest cached entries. I studied the problem years back with XP, then I had the same problem with Vista, when I researched Vista a few people said 20K was the max stable, but I cannot find the link to that info anymore. Meanwhile my folder collection grows, and so does the problem. – Moab – 2011-04-01T15:01:56.647
@Moab: That's the point about a cache, if it's to low and you lose information about frequent folders then increase it. We don't know how much you use your file system or how fast your computer is so we can't tell you. Please note that a cache loses the oldest least frequent accessed cached entries, not just the oldest cached entries. We can't do more than to show you what is accessed, explain you about the 32-bit access and point out how the limit works... – Tamara Wijsman – 2011-04-01T15:17:59.313
@Moab: There isn't any verified information about the cache size, that's why you can't find it back. If you would find it it would be based on speculations anyway. Just because a value doesn't exist doesn't mean you can create the value. Also, please note that
ShellNoRoam
is not being accessed anymore. Another thing to try, why not set the Details view as the default folder view? – Tamara Wijsman – 2011-04-01T15:27:17.733@Tom, so how do you set details view system wide? W7 has preset folder views based on where the folder is and what the contents are. I did notice ShellNoRoam was absent, I did not add that key, just the value BagMRU Size in 2 other keys as shown in my Vista notes. Time will tell if it has any effect. Thanks for the information. – Moab – 2011-04-01T15:36:30.343
@Moab: See this picture, you can find more information here and special cases here.
– Tamara Wijsman – 2011-04-01T15:38:55.933I can find no solution to this problem, should I delete this question? – Moab – 2011-08-17T22:55:19.463