Discussion Locked

RAM usage optimization (File cache)

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

NT 4.0 server with 896Mb of RAM. The file cache does not get over 43Mb. There is still more than 600Mb available.
How can I make NT use more memory for the File Cache?

5 replies

by beecee

NT's Virtual Memory Manager (VMM) dynamically allocates memory between the system cache (which NT uses for network and file caching) and the memory available to system processes, including applications. This allocation occurs on the fly, depending on which type of memory-usage load the system is experiencing. However, the following factors affect the formulas that NT uses to make these allocations:

-The OS that you're using: NT Server or NT Workstation
-The configuration of the Server service, which modifies Registry values that affect system cache size
-The configuration of other services and Registry values that affect the system cache size
-NT Server lets you tune memory allocation between processes and the system cache. To get to the dialog box that Screen 2, page 236, shows, go to the Control Panel Network applet's Services tab. Click Server, then click Properties. Your choices are as follows:

Minimize Memory Used?Minimizes memory use for the file cache.
Balance?Balances memory distribution between the cache and the running processes.
Maximize Throughput for File Sharing?Favors memory use for the system file cache.
Maximize Throughput for Network Applications?Favors memory use for applications.
These settings control how NT allocates memory between the system cache and the Server services, and thus affect the size of the cache. The default setting for NT Server is Maximize Throughput for File Sharing, which sets the LargeSystemCache Registry value in the HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Control\Session ManagerMemory Management subkey to 1.

Also, you do not need a large cache! Thats bad practice. Plus, you dont want to enable file cache on more than one partition per drive.

by joel_feard

Thank you BeeCee for your answer. It confirms what I suspected that there is no other way than the one you mentionned and that I already tried (but only switching between Optimizing for File Server and for Network Applications).
I also modified theSQL 7 parameters to give SQL more memory and boosting it with the CPU. With the same results, that is none.
I even checked the Registry without finding any other parameter than the Large Cache bit.
I suspect the cache for being the [problem because the application get its form only when the disc activity terminates and it does not help requesting the same form again. Furthermore on a Windows 98 system, using Cacheman you can get tremendous improve in performance by giving a maximum amount of cache memory. If the cache is well managed, a big amount of cache can make the difference as small but frequently accessed tables have more chance to be found in memory.
Again thank you for your answer.

This discussion is closed to new replies.