Computer
Systems

Spring 2013
course
navigation

Apr 2

Discuss caches and memory hierarchy by walking through the CMU lecture notes.
You should read chapter 6 in the text; there will be assignments from it as well as some C speed and/or valgrind exercises assigned for next Tues. (Posted by Thu.)
CMU notes :

Depending on time, explore the text's mem/matmult/mm.c and mem/mountain/mountain.c , perhaps with valgrind (see http://valgrind.org/ ) which can give memory and cache traces and diagnostics.

6.6, pg 583 : SSD lifetime , various assumptions 6.8, pg 590 : right varies fastest 6.9 L1 cache L2 cache SSD solid state disk HD (spinning) hard disk SRAM static : fast switch over , multiple transistors, cache "door slam" DRAM dynamic : generic tiny capacitors ; need to be refreshed (!) pg 613 : intel core i7 cache system L1 4 cycles L2 11 L3 ~35 cycles details of how caches work : cache "hit" cache "miss" cache line : one chunk of data (fetch more than requested) cache set : (possibly) several places in cache were a given line might be called "associativity" ; E = assoc = 1 => only one place in cache for given line which increases chance of "thrashing"; if ask for 0,8,0,8 and all map to same cache spot, miss every time
http://cs.marlboro.edu/ courses/ spring2013/systems/ notes/ Apr_2
last modified Tuesday April 2 2013 1:44 am EDT