Solved

Disk Cache

Posted on 1998-10-20
5
485 Views
Last Modified: 2010-04-14
What is disk cache,how do you know what value to give it?
0
Comment
Question by:roz
5 Comments
 

Expert Comment

by:bruceville
ID: 1536790
the disk cache is a portion of your disk that the system uses for frequently accessed information.  Kind of like RAM, but used for disk activities.  I set my cache low since I have a lot of RAM, and RAM is faster than the cache--it can serve it's function.  If you want to give your RAM some help, but don't want to use virtual memory, up the cache a little.  Your system will be more stable, but a little slower.  The normal values are either 256 or 512.  It depends how much RAM you have and how fast your system is running.  I would recommend one of these values--256 if you have more than 32 mb RAM.
0
 
LVL 6

Expert Comment

by:TheHub
ID: 1536791
bruceville is incorrect...it was a good guess though.

Disk Cache uses RAM, not disk. Kind of confusing, since it is named Disk Cache. It is so named because it stores frequently used information read from the disk. For example, the first time you open a folder, the Mac reads all of the file and folder names into Cache. This takes a while if there are a lot of files and folders. The next time you open that folder, it retrieves the information from Cache, not the disk, which is much faster than reading the info off of the disk again and is why your folder snaps open the second time you access it (providing that the info still lives in Cache).

After the Disk Cache is completely used, it purges info that has not been used recently in favor of the new info it is reading. Apple Menu Items, Menu Bar Items, Volume names, are all stored in Disk Cache as they are read the first time they are accessed after you turn on you machine.

The formula for setting Disk Cache is 32 times the amount of Physical RAM you have installed. If you have 8 MB of RAM installed - set DC to 256, 16MB of RAM - set DC to 512, etc. Obviously, there is a point of diminishing returns on this formula and should, therefore, be considered a guideline.
0
 

Author Comment

by:roz
ID: 1536792
Points to go to TheHub
0
 

Expert Comment

by:cheryll
ID: 1536793
TheHub is correct. I must add one more thing. Depending on what version of your operating system depends on how high you set your disk cache. System 7.5.5 on an 040 machine can only use 256k in it's disk cache without having any problems. System 8 uses the 32 times amount of physical ram the best.
Cheryll
0
 
LVL 6

Accepted Solution

by:
TheHub earned 50 total points
ID: 1536794
Disk Cache uses RAM, not disk. Kind of confusing, since it is named Disk Cache. It is so named because it stores frequently used information read from the disk. For example, the first time you open a folder, the Mac reads all of the file and folder names into Cache. This takes a while if there are a lot of files and folders. The next time you open that folder, it retrieves the information from Cache, not the disk, which is much faster than reading the info off of the disk again and is why your folder snaps open the second time you access it (providing that the info still lives in Cache).

After the Disk Cache is completely used, it purges info that has not been used recently in favor of the new info it is reading.
Apple Menu Items, Menu Bar Items, Volume names, are all stored in Disk Cache as they are read the first time they are accessed
after you turn on you machine.

The formula for setting Disk Cache is 32 times the amount of Physical RAM you have installed. If you have 8 MB of RAM
installed - set DC to 256, 16MB of RAM - set DC to 512, etc. Obviously, there is a point of diminishing returns on this formula and should, therefore, be considered a guideline.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question