CPSC 330 Links


Chapter 1 Links


For fun - media representations of computing power


Performance Links

CPU performance

        CPU_time =   IC    *   CPI    *   CCT

                               cycles     secs
                 = i insts * j ------ * k -----  = ijk secs 
                                inst      cycle


                      IC  *  CPI
        CPU_time =  ---------------
                    Clock_Frequency


                                                          IC_i
        CPU_time = sum ( IC * CPI  ) * CCT  =  IC * sum ( ---- * CPI  ) * CCT
                           i     i                         IC       i
                    i                                i

Consider the following instruction mix

                         IC_i / IC          CPI_i
        operation        frequency        cycle count        weighted CPI_i
        ---------        ---------        -----------        --------------
        ALU op              50%                1                   _____
        Loads               20%                2                   _____
        Stores              10%                3                   _____
        Branches            20%                4                   _____


a) What is the average CPI?


	CPI = (.5*1) + (.2*2) + (.1*3) + (.2*4) = .5 + .4 + .3 + .8 = 2.0


b) If branch cycles are reduced to 2, do you have enough information to
   determine how much faster the modified processor will be than the
   original processor?


                    CPU_time_old     IC * CPI_old * CCT     CPI_old
        speedup  =  ------------  =  ------------------  =  -------
                    CPU_time_new     IC * CPI_new * CCT     CPI_new

        CPI_old = 2.0

	CPI_new = (.5*1) + (.2*2) + (.1*3) + (.2*2) = .5 + .4 + .3 + .4 = 1.6

	speedup = 2.0 / 1.6 = 1.25

  • MFLOPS = flt. pt. ops in program / (execution time * 10^6)
  • MIPS = inst. count / (execution time * 10^6)

  • Amdahl's Law (a law of diminishing returns)
    derived from speedup = exec_time_old/exec_time_new
    speedup = 1 / ( (1-f_enhanced) + f_enhanced/speedup_enhancement )
  • worksheet
  • 1967 conference paper
  • Mark Hill (U. Wisc.), "Amdahl's Law in the Multicore Era," Feb. 2009 talk at Google [video]


    Appendix C Links


    Chapter 4 Links


    Chapter 5 Links


    Chapter 6 Links


    Chapter 7 Links