PDA

View Full Version : Calculating Cache Efficiency


Guest
08-20-2003, 10:13 AM
Hello everyone. I was wondering if anyone could tell me the formula
for calculating cache efficiency. The parameters I know from running
the program are:

Instructions: 0x083ce3ab7
Core_Cycles: 0x0ae6c6ce7
Instr Cache_Hits: 0x091a95920
Instr Cache_Misses: 0x0000d34da
Instr Cache_Fills: 0x0000d34da
Instr RAM Reads: 0x000000000
Instr RAM Writes: 0x000000000
Data Cache_Read_Hits: 0x018c9077a
Data Cache_Write_Hits: 0x00f200e62
Data Cache_Read_Misses: 0x0007e1717
Data Cache_Write_Misses:0x00c754a59
Data Cache_Fills: 0x0007e1717
Data RAM Reads: 0x000000000
Data RAM Writes: 0x000000000
WB_Stalls: 0x007a2107d
SEQ: 0x005e84cc4
NON-SEQ: 0x0056482d0
IDLE: 0x036ce72f3
BUSY: 0x000000000
Total: 0x0421b4287

CPU 198MHz

Thanks in advance!!!

wogston
08-25-2003, 08:02 AM
> Hello everyone. I was wondering if anyone could tell me the formula for calculating cache efficiency. The parameters I know from running the program are: Data Cache_Read_Hits: 0x018c9077a Data Cache_Write_Hits: 0x00f200e62 Data Cache_Read_Misses: 0x0007e1717 Data Cache_Write_Misses:0x00c754a59

float c = (float)0x018c9077a / (float)(0x018c9077a + 0x0007e1717);

Which returns: 0.981, or 98.1 % (read cache)


... could be wrong, corrections are welcome


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service