Solved

Disk Cache

Posted on 1998-10-20
5
479 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
Comment Utility
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
Comment Utility
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
Comment Utility
Points to go to TheHub
0
 

Expert Comment

by:cheryll
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now