0% found this document useful (0 votes)
8 views

Answers

Uploaded by

Varsha Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Answers

Uploaded by

Varsha Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1) matmult

user 0m0.540s
user 0m0.560s
user 0m0.545s
user 0m0.546s
user 0m0.538s

median 0.545s

matmultopt
user 0m0.514s
user 0m0.537s
user 0m0.504s
user 0m0.507s
user 0m0.508s

median 0.504s

2)///mat-mult
Metrics Total Instrn Data Read
Write Misc
----------------- ------ ------ ------
------ ------ ------
Demand Fetches 4000000 0 4000000
3000000 1000000 0
Fraction of total 1.0000 0.0000 1.0000
0.7500 0.2500 0.0000

Demand Misses 12423 0 12423


12423 0 0
Demand miss rate 0.0031 0.0000 0.0031
0.0041 0.0000 0.0000
Compulsory misses 3750 0 3750
3750 0 0
Capacity misses 0 0 0
0 0 0
Conflict misses 8673 0 8673
8673 0 0
Compulsory fraction 0.3019 0.0000 0.3019
0.3019 0.0000 0.0000
Capacity fraction 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000
Conflict fraction 0.6981 0.0000 0.6981
0.6981 0.0000 0.0000

Multi-block refs 0
Bytes From Memory 795072
( / Demand Fetches) 0.1988
Bytes To Memory 80000
( / Demand Writes) 0.0800
Total Bytes r/w Mem 875072
( / Demand Fetches) 0.2188

---Execution complete.
////mat-mult-opt
Metrics Total Instrn Data Read
Write Misc
----------------- ------ ------ ------
------ ------ ------
Demand Fetches 4000000 0 4000000
3000000 1000000 0
Fraction of total 1.0000 0.0000 1.0000
0.7500 0.2500 0.0000

Demand Misses 6942 0 6942


6430 512 0
Demand miss rate 0.0017 0.0000 0.0017
0.0021 0.0005 0.0000
Compulsory misses 3750 0 3750
3750 0 0
Capacity misses 0 0 0
0 0 0
Conflict misses 3192 0 3192
2680 512 0
Compulsory fraction 0.5402 0.0000 0.5402
0.5832 0.0000 0.0000
Capacity fraction 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000
Conflict fraction 0.4598 0.0000 0.4598
0.4168 1.0000 0.0000

Multi-block refs 0
Bytes From Memory 444288
( / Demand Fetches) 0.1111
Bytes To Memory 112704
( / Demand Writes) 0.1127
Total Bytes r/w Mem 556992
( / Demand Fetches) 0.1392

---Execution complete.

3) Size: 1, Access Time: 0.007700 microseconds


Size: 2, Access Time: 0.007700 microseconds
Size: 4, Access Time: 0.007700 microseconds
Size: 8, Access Time: 0.007700 microseconds
Size: 16, Access Time: 0.007700 microseconds
Size: 32, Access Time: 0.007700 microseconds
Size: 64, Access Time: 0.007700 microseconds
Size: 128, Access Time: 0.017700 microseconds
Size: 256, Access Time: 0.023200 microseconds
Size: 512, Access Time: 0.046300 microseconds
Size: 1024, Access Time: 0.080500 microseconds
Size: 2048, Access Time: 0.166800 microseconds
Size: 4096, Access Time: 0.344100 microseconds
Size: 8192, Access Time: 0.670800 microseconds
Size: 16384, Access Time: 1.592700 microseconds
Size: 32768, Access Time: 3.853100 microseconds
Size: 65536, Access Time: 5.421700 microseconds
Size: 131072, Access Time: 13.235200 microseconds
Size: 262144, Access Time: 33.586700 microseconds
Size: 524288, Access Time: 51.454100 microseconds
Size: 1048576, Access Time: 51.415900 microseconds
Size: 2097152, Access Time: 101.843400 microseconds
Size: 4194304, Access Time: 202.698100 microseconds
Size: 8388608, Access Time: 400.185800 microseconds
while plotting the access time vs kb , we get two spikes representing L1 Cache and
L2 cache, L1 cache is at
64 KB and L2 cache is at 1 MB respectively

You might also like