Jump to content
Sign in to follow this  
Rbreb13

Adjust the Level 2 cache setting

Recommended Posts

I found the neatest tweak for my system. I checked and sure enough my P-4 2.53 that has 512Kb of L2 cache was set to use 256 in the registry, Performance is much better now. Check it out.

During Windows XP installation, Setup queries the system processor to determine the size of the Level 2 cache. However, it doesn't always succeed. When this happens, Setup configures a default setting of 256 KB in the registry.

If your computer has a larger Level 2 cache than Setup configured in the registry, your system won't perform optimally. To significantly increase the performance of your system, change the value in the registry to match your Level 2 cache.

Here's how:

1. Launch the Registry Editor (Regedit.exe).

2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.

3. Double-click SecondLevelDataCache DWORD value.

4. Using the options below, change the value in the Value Data text box to a number that matches the size of your Level 2 cache. Then click OK. Level 2 cache Value Data setting

256 KB........................... 0

512 KB........................... 200

1024 KB........................... 400

5. Click OK and close the Registry Editor.

You may need to restart the system or log out of Windows XP for the change to take effect.

If you're not sure of the actual size of your system's Level 2 cache, copy this script and save it as L2Cache.vbs:

Set ProSet = GetObject("winmgmts:").InstancesOf("Win32_Processor")

For each Pro in ProSet

WScript.Echo "Level 2 Cache:" & " " & Pro.L2CacheSize & " KB"

Next

Double-click the script to run it, and you'll see a dialog box that displays the size of your system's Level 2 cache.

Note: Editing the registry is risky, so be sure you have a verified backup before making any changes.

Share this post


Link to post
Share on other sites

I found the neatest tweak for my system. I checked and sure enough my P-4 2.53 that has 512Kb of L2 cache was set to use 256 in the registry, Performance is much better now. Check it out.

During Windows XP installation, Setup queries the system processor to determine the size of the Level 2 cache. However, it doesn't always succeed. When this happens, Setup configures a default setting of 256 KB in the registry.  

If your computer has a larger Level 2 cache than Setup configured in the registry, your system won't perform optimally. To significantly increase the performance of your system, change the value in the registry to match your Level 2 cache.  

Here's how:  

1. Launch the Registry Editor (Regedit.exe).  

2. Go to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management.  

3. Double-click SecondLevelDataCache DWORD value.  

4. Using the options below, change the value in the Value Data text box to a number that matches the size of your Level 2 cache. Then click OK. Level 2 cache            Value Data setting

256 KB...........................                       0

512 KB...........................                       200

1024 KB...........................                     400

5. Click OK and close the Registry Editor.  

You may need to restart the system or log out of Windows XP for the change to take effect.  

If you're not sure of the actual size of your system's Level 2 cache, copy this script and save it as L2Cache.vbs:  

Set ProSet = GetObject("winmgmts:").InstancesOf("Win32_Processor")

For each Pro in ProSet

WScript.Echo "Level 2 Cache:" & "  " & Pro.L2CacheSize & " KB"

Next  

Double-click the script to run it, and you'll see a dialog box that displays the size of your system's Level 2 cache.  

Note: Editing the registry is risky, so be sure you have a verified backup before making any changes.

you may also use WCPUid from http://www.h-oda.com to detect the cache level, as well as other things.

Great Find.

Share this post


Link to post
Share on other sites

WCPUID detects the L2 cache just fine. Windows XP was not utilizing all of it.

Share this post


Link to post
Share on other sites

512 working here. Sweet find, though.

Share this post


Link to post
Share on other sites
great!!!!!!... one of my systems reports '0'
That means its useing 256kb.

Share this post


Link to post
Share on other sites

Thats wierd.

Share this post


Link to post
Share on other sites
DorMaxx"]Same applies for Windows 2k?
The tweak I found said for XP. You could probly check the registry in W2K to see. It's probly the same key or very similar. I don't have W2K installed on anything right now so I can't check.

Share this post


Link to post
Share on other sites

i guess the real question would be with regards to the corporate environment. They might be losing out on some power, probly end up sueing microsoft for lost productivity.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×