Measuring the Performance of a Parallel Computer

      \ensuremath{\gg} load -ascii times.dat
      \ensuremath{\gg} times
     
     times =
     
         1.0000   93.9700   96.0300   96.7500  121.2200   94.7300
         2.0000   51.5800   59.3100   49.7800   55.2400   60.3900
         4.0000   31.3100   38.1000   36.5600   31.6100   31.7400
         6.0000   29.0100   34.8100   32.9200   27.5900   28.4300
         8.0000   23.5300   21.4400   26.3600   27.6700   20.1000
        12.0000   21.0600   18.9100   25.4700   18.7300   19.9300
        16.0000   18.4400   21.2200   20.1200   20.3900   20.0400

      \ensuremath{\gg} ncpus = times(:,1)
     
     ncpus =
     
          1
          2
          4
          6
          8
         12
         16

      \ensuremath{\gg} timings = times(:, 2:end)'
     
     timings =
     
        93.9700   51.5800   31.3100   29.0100   23.5300   21.0600   18.4400
        96.0300   59.3100   38.1000   34.8100   21.4400   18.9100   21.2200
        96.7500   49.7800   36.5600   32.9200   26.3600   25.4700   20.1200
       121.2200   55.2400   31.6100   27.5900   27.6700   18.7300   20.3900
        94.7300   60.3900   31.7400   28.4300   20.1000   19.9300   20.0400  

      \ensuremath{\gg} means = sum(timings)/size(timings,1)
     
     means =
     
      100.5400   55.2600   33.8640   30.5520   23.8200   20.8200   20.0420

      \ensuremath{\gg} means = mean(timings)               
     
     means =
     
       100.5400   55.2600   33.8640   30.5520   23.8200   20.8200   20.0420
     
      \ensuremath{\gg} devs = std(timings)
     
     devs =
     
       11.6113    4.6447    3.2143    3.1382    3.1961    2.7608    1.0101

      \ensuremath{\gg} S = ncpus .* means'
     
     S =
     
       100.5400
       110.5200
       135.4560
       183.3120
       190.5600
       249.8400
       320.6720

      \ensuremath{\gg} coeff = polyfit(ncpus, S, 1)
     
     coeff =
     
       14.4960   82.9423

      \ensuremath{\gg} T_fit = coeff(1) + coeff(2) ./ ncpus
     
     
     T_fit =
     
        97.4383
        55.9671
        35.2316
        28.3197
        24.8638
        21.4079
        19.6799

      \ensuremath{\gg} plot(ncpus, means', 'r*', ncpus, T_fit)

9633

previous    contents     next

Peter Junglas 8.3.2000