Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - CPU L2 Cache Memory setting in Vista

Comment
 
Old 07-05-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

CPU L2 Cache Memory setting in Vista

How to Set Vista for the CPU L2 Cache Memory Size
...

My System SpecsSystem Spec
Old 07-13-2008  
ltwally


vista64
 
 

Re: CPU L2 Cache Memory setting in Vista

Quote  Quote: Originally Posted by eXXXodus View Post
Is there any way yet to change the L3 cache size? I have a 9850BE that has a 2MB L3 cache. Thanks.

To my understanding, there really isn't a need to do so. In fact, there really isn't a need to edit the L2 cache size for most (all?) modern CPU's. Windows should successfully auto-detect these values.

So, don't worry.

My System SpecsSystem Spec
Old 07-14-2008  
eXXXodus


Ultimate X64
 
 

Re: CPU L2 Cache Memory setting in Vista

Quote  Quote: Originally Posted by ltwally View Post
Quote  Quote: Originally Posted by eXXXodus View Post
Is there any way yet to change the L3 cache size? I have a 9850BE that has a 2MB L3 cache. Thanks.

To my understanding, there really isn't a need to do so. In fact, there really isn't a need to edit the L2 cache size for most (all?) modern CPU's. Windows should successfully auto-detect these values.

So, don't worry.
Actually, Vista 64 didn't detect my L2 cache correctly and has my L3 cache set at 0 even though I have a 2MB one. I have a AMD 9850BE so it is definitely a "modern CPU".
My System SpecsSystem Spec
Old 07-15-2008  
ltwally


vista64
 
 

Re: CPU L2 Cache Memory setting in Vista

Even still, your processor does not need the operating system to manage its cache; the processor does that for itself. This was only a concern for older processors.

As an aside, the SecondLevelDataCache field truely is a relic of older processors.

Read up on it here: Detailed Explanation of SecondLevelDataCache

Quote (emphasis added by me):
Quote:
SecondLevelDataCache records the size of the processor cache, also known as the secondary or L2 cache. If the value of this entry is 0, the system attempts to retrieve the L2 cache size from the Hardware Abstraction Layer (HAL) for the platform. If it fails, it uses a default L2 cache size of 256 KB. If the value of this entry is not 0, it uses this value as the L2 cache size. This entry is designed as a secondary source of cache size information for computers on which the HAL cannot detect the L2 cache.

This is not related to the hardware; it is only useful for computers with direct-mapped L2 caches. Pentium II and later processors do not have direct- mapped L2 caches. SecondLevelDataCache can increase performance by approximately 2 percent in certain cases for older computers with ample memory (more than 64 MB) by scattering physical pages better in the address space so there are not so many L2 cache collisions. Setting SecondLevelDataCache to 256 KB rather than 2 MB (when the computer has a 2 MB L2 cache) would probably have about a 0.4 percent performance penalty.
My System SpecsSystem Spec
Old 07-19-2008  
lonige


Vista Ultimate x64
 
 

Re: CPU L2 Cache Memory setting in Vista

Well, then you mean doing this is futile with my using Q6600? I've already set the value to 1000(HEX).. if futile, should it be set to the default value, 0?
My System SpecsSystem Spec
Old 07-19-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: CPU L2 Cache Memory setting in Vista

Hi Lonige, and welcome to Vista Forums.

It's not futile. It's just that there is a very low chance that HAL will not detect the correct CPU L2 cache size for Vista. Setting this, just helps make sure that Vista uses the correct CPU L2 cache size, in case HAL fails for some reason, instead of only the default 256 KB size. That's all.

Shawn
My System SpecsSystem Spec
Old 07-19-2008  
ltwally


vista64
 
 

Re: CPU L2 Cache Memory setting in Vista

According to Microsoft, this setting is only of value on systems with a direct-mapped L2 cache. This is not the type of cache used on processors since, apparently, the Pentium II.

Unlike your system page-file, for instance, Windows (for the most) part has no say in what is in your processor cache. That is (almost) entirely up to the processor, itself.

For more information, check out the wikipedia entry.
My System SpecsSystem Spec
Old 07-20-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: CPU L2 Cache Memory setting in Vista

It makes you wonder why Microsoft would leave these registry settings in Vista then. I do not believe anyone uses a Pentium 2 or older with Vista.
My System SpecsSystem Spec
Old 07-20-2008  
ltwally


vista64
 
 

Re: CPU L2 Cache Memory setting in Vista

The Windows NT code-base goes back roughly 20 years... it's riddled with leftovers like this. Personally, I keep hoping the Microsoft will have the guts to do an "OSX" and re-invent the wheel... but that is neither here nor there.
My System SpecsSystem Spec
Old 07-23-2008  
SIW2


VISTA HOME PREMIUM X64/ 7 x64 / 7x86
 
 

Re: CPU L2 Cache Memory setting in Vista

Hi, You could just dot the Decimal option, enter the value given by performance monitor in step 5, E.G. 6144 then click Ok . Regedit will automatically enter both the Hex. value 0x00001800 for you, followed by the decimal value in brackets(6144) exactly as in step 8 .

SIW2 LONDON
My System SpecsSystem Spec
Old 07-23-2008  
ltwally


vista64
 
 

Re: CPU L2 Cache Memory setting in Vista

Good idea.
My System SpecsSystem Spec
Comment

Tutorial Tools


Similar Threads
Tutorial Category
Solved 16MB Cache and 32MB Cache?? General Discussion
Erasing contact memory cache Vista mail
Setting virtual memory progrmmatically Vista General
Setting Virtual Memory Vista installation & setup
"This device does not allow its write cache setting to be modified" Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006

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