🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42157

Re: How to determine cache size

#42157
From: John R. Dudeck
Date: Sun, 11 Feb 1990 23:10
28 lines
2049 bytes
In article <2527@leah.Albany.Edu> emb978@leah.Albany.Edu (Eric M. Boehm) writes:
>
>I have had suggestions to try different configurations, which I have
>done to a small extent. I am looking for ways to more rigorously measure
>performance changes than something like "X *seems* slower" or "Y *seems*
>faster". In other words, an objective way to measure the changes.

The rule of thumb for disk cache size is:  Make the cache as big as you can
without taking away from memory that your program will use.

If you want to try to do measurements, you probably will never get anything
conclusive.  The reason for this is the way in which a cache works.  It holds
the disk data that has been read, in the hopes that you will try to read the
same data again, thus removing the need for a repeated disk access to that
data.  If you keep reading the same data over and over, the cache will
always get a hit, and you will have fantastic speed improvements over no
cache at all.  If you read different data each time you read, there will
be no improvement at all.  It all depends on how much your work rereads
the same data without intervening reads of other data.  This can be
determined easier on the back of an envelope than by doing benchmark
measurements!


-- 
John Dudeck                           "You want to read the code closely..." 
jdudeck@Polyslo.CalPoly.Edu             -- C. Staley, in OS course, teaching 
ESL: 62013975 Tel: 805-545-9549          Tanenbaum's MINIX operating system.
Technical Details
Message-ID: <25d5f0e3.4567@polyslo.CalPoly.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!brutus.cs.uiuc.edu!jarthur!polyslo!jdudeck
References: <2525@leah.Albany.Edu> <2527@leah.Albany.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!brutus.cs.uiuc.edu!jarthur!polyslo!jdudeck
From: jdudeck@polyslo.CalPoly.EDU (John R. Dudeck)
Newsgroups: comp.sys.ibm.pc
Subject: Re: How to determine cache size
Keywords: disk cache
Message-ID: <25d5f0e3.4567@polyslo.CalPoly.EDU>
Date: 11 Feb 90 23:10:27 GMT
References: <2525@leah.Albany.Edu> <2527@leah.Albany.Edu>
Reply-To: jdudeck@polyslo.CalPoly.EDU (John R. Dudeck)
Distribution: usa
Organization: Cal Poly State University -- San Luis Obispo
Lines: 23