CacheSet 1.0

Mark Russinovich in Utilities \ Misc. Utils.

CacheSet is a program that allows you to control the Cache Manager's working set size using functions provided by NT. It's compatible with all versions of NT.


CacheSet is a program that allows you to control the Cache Manager's working set size using functions provided by NT. It's compatible with all versions of NT.

- CacheSet is an applet that allows you to manipulate the working-set parameters of the system file cache. Unlike CacheMan, CacheSet runs on all versions of NT and will work without modifications on new Service Pack releases. In addition to providing you the ability to control the minimum and maximum working set sizes, it also allows you to reset the Cache's working set, forcing it to grow as necessary from a minimal starting point. Also unlike CacheMan, changes made with CacheSet have an immediate effect on the size of the Cache.

Use CacheSet to performance tune the system Cache size in a way not possible without tweaking internal variables the way CacheMan does.

Note: To use CacheSet on NT 4.0 Service Pack 4 and later you must have the "Increase Quota" privilege (administrator accounts have this privilege by default). CacheSet has been updated to enable this privilege so that it works on SP4.

Installation and Use

After it starts it presents the system file cache's current size (updated twice a second), it's peak size (the largest it's been since the last reboot), and lets you set new minimum and maximum working set sizes.

Setting New Sizes
Simply enter the new minimum and maximum sizes and hit the Apply button. If you get an error, then one of the following conditions holds: you've entered a maximum that is smaller than the minimum, the minimum you've entered is smaller than the minimum system working-set size, or the maximum you've entered is larger than the maximum system working-set sizes. Adjust the values you've entered and try again.

You may notice that the Cache's size changes immediately and then proceeds to shrink or grow quickly. This is because the system automatically trims working sets once a second. The Cache pages that are released are still in memory, but can be relinquished quickly for use by other programs that need more memory. Similarly, the Cache can eaily regain pages as applications access file system data.

Resetting Previous Values
At any time you can restore the Cache's working set values that were active when you last started CacheSet by hitting the Reset button.

Clearing the Cache's Working Set
You can force the Cache to release all of it's pages by pressing the Clear button. Note that the Cache can grow again as necessary, and that this is not the same as flushing the Cache - pages that were assigned to it are simply made available to other programs and can be reclaimed by the Cache.

Using the Command-Line Interface
You can enter the minimum and maximum working set sizes on CacheSet's command line. CacheSet will apply these new values silently. Thus, you can add CacheSet to your Start program group to automatically set the Cache's sizes every time you boot.

Usage: CacheSet [minimum working set] [maximum working set]
How It Works

CacheSet uses a NtQuerySystemInformation call to obtain information about the Cache's settings and NtSetSystemInformation to set new sizing information. The working-set information for a process serves as guidelines for NT's Memory Manager regarding how many pages of physical memory should be assigned to the application. Because they are guidelines, conditions can result such that the Memory Manager grows a working-set to a size greater than the maximum, or shrinks it to less than the minimum. However, the settings are factors that will affect the overall allocation, and hence responsiveness, of an application. In the case of CacheSet the application is the file system Cache.

Internally NtSetSystemInformation calls MmAdjustWorkingSetSize, which either grows an application's working set or trims it. If the third parameter passed to MmAdjustWorkingSetSize is 1, the system Cache's working set is adjusted, otherwise the adjustment occurs on the current process (the system information calls affect only the system cache). Passing in a minimum and maximum of -1 causes MmAjustWorkingSetSize to perform a working-set clear operation, releasing all pages from the application's working set.
Security Hole

What's particularly interesting about the interface that CacheSet uses to do its work is that it requires no special privilege to invoke. Thus, you can run CacheSet from even the Guest account, something it would be hard to argue is not a form of a security hole, where anybody can affect the system cache sizing policy.

Update: As of NT 4.0 Service Pack 4, Microsoft has closed this hole by requiring the account changing the Cache's working set to have the "Increase Quota" privilege. The Administrator user and group accounts have this privilege by default.

CacheSet 1.0 Misc. Utils. software developed by Mark Russinovich. The license of this misc. utils. software is freeware, the price is free, you can free download and get a fully functional freeware version of CacheSet. Do not use illegal warez version, crack, serial numbers, registration codes, pirate key for this misc. utils. freeware CacheSet. Always use genuine version that is released by original publisher Mark Russinovich.

Similar Software

Sysinternals Suite 1.0 B04.06.2013 Microsoft  Misc. Utils.

The Sysinternals Troubleshooting Utilities have been rolled up into a single Suite of tools. This file contains the individual troubleshooting tools and help files. It does not contain non-troubleshooting tools like the BSOD Screen Saver or NotMyFault. The Suite is a bundling of the following...

Popular Software of Utilities - Misc. Utils.

Red Call Recorder 1  Misc. Utils.

Would you like to record phone calls ? 'Red Call Recorder 1.0' is the perfect way. When accepting a call, this program will immediately recognize the caller, than just click the button and start recording. You can pause, or continue recording, all in real time! Also, you can PreScreen the call,...

USB Monitor Pro 2.2.1 FabulaTech  Misc. Utils.

USB Monitor Pro is an effective and, at the same time, simple in use analyzer of USB traffic for Windows. It allows to monitor incoming and outgoing data of a USB device plugged into the computer. Main program features are: - Monitoring of data between USB device driver and the Host Controller...

KDT Soft. Recover Product Key Demo 1.0 KDT Soft.  Misc. Utils.

Software which allows the user to recover and change a product key for Windows XP, Windows Vista, Microsoft Office and Norton Anti-Virus .This software also enables the user to change who the product is registered to.Ideal if;You need to change your Product key to a legal one, in order to receive...

Battery EEPROM Works 1.2 Rafos International Engineering Lab  Misc. Utils.

Battery EEPROM Works is designed to simplify the process of laptop battery repair. This process can be divided in two parts: cells replacement and fixing the content of EEPROM or integrated Flash of laptop battery controller. While cells replacement is easy and can be made by any technician who...

Partition Recovery Bootable CD 3.5 YIWO Tech Ltd  Misc. Utils.

Partition Recovery Bootable CD is the DOS Partition Recovery software for hard disk partition repair. It's designed to resolve the partition problems to recover the deleted, lost and corrupted FAT16, FAT32, NTFS, NTFS5, EXT2, EXT3, SWAP partitions on IDE, ATA, SATA, SCSI and removable hard...

Driver Whiz 6.4 Driver Whiz  Misc. Utils.

Driver Whiz software quickly locates the most current drivers for your computer through a user-friendly interface and a database of over eleven million drivers. Driver Whiz saves you time and frustration in getting your computer up-to-date.

Phone Calls Filter 1 Teley  Misc. Utils.

Call block for unwanted phone call with professional log software: Phone Calls Filter 1.0. Are you bothered with unwanted phone calls ? not anymore ! just set filters for incoming phone calls.. use categorized answering modes - such as: hanging up, personalized greetings etc... All based on...

Unistal Pen Drive Recovery 1.0 Unistal Data Recovery  Misc. Utils.

Quick Recovery for Pen Drive Data Recovery Software is best undelete pen drive utility and more readable pen drive file recovery tools for formatted or re-formatted pen drives. Unistal Pen Drive Recovery Software shows all recoverable files and to copy recovered files on healthy disk drives....

Flobo Hard Disk Repair 6.2 Flobo Recovery  Misc. Utils.

Flobo Hard Disk Repair is a program designed to repair hard disks damaged because of bad sectors. Bad sectors are those sectors that cannot be accessed,read or write. As a result of bad sectors, the operating system is not able to access data. Consequently, operating system freezes when trying to...

Photo Recovery Wizard 1.6 Coding Workshop Limited  Misc. Utils.

Have you ever deleted a photo from your memory card or hard drive by mistake, or perhaps unplugged your camera from your PC before it was safe to do so, corrupting the data on the memory card ?The Photo Recovery Wizard is an easy to use application that allows you to recover lost, deleted,...