From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ed L Cashin Date: Tue, 02 Mar 2004 01:28:27 +0000 Subject: Re: using perfctr to determine cache miss rate Message-Id: <871xocdolg.fsf@uga.edu> List-Id: References: <87u11l6rp8.fsf@uga.edu> In-Reply-To: <87u11l6rp8.fsf@uga.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org "David S. Miller" writes: > On Fri, 20 Feb 2004 22:23:47 -0500 > Ed L Cashin wrote: > >> Is there a way to measure the number of memory accesses (both reads >> and writes) that are not hitting in any cache? It appears not to be >> possible, since only two events can be observed at once, and the >> events are quite specific (e.g. observing dcache write hits makes >> dcache read hits unobservable). > > That's right, this is one of the limitations, since you only sample > two events there are certain things you can't sample in one go. > You could run multiple times, sampling different events each time, > but the results won't be so accurate. My advisor pointed out that if any level one miss will result in an ecache reference, then counting ecache references and subtracting ecache hits will measure "cache misses" accurately. That seems right to me. Is there some problem with that strategy? -- --Ed L Cashin | PGP public key: ecashin@uga.edu | http://noserose.net/e/pgp/