$ sudo ./script.sh
[sudo] password for dlemire:
always [madvise] never
mode:  always
[always] madvise never
Initializing array made of 33554432 64-bit words.
Applying Sattolo's algorithm.
Surgery on the long cycle.
Verifying the neighboring distance...
mindist = 335544 vs 335544
Time to sum up the array (linear scan) 0.012 s (x 8 = 0.092 s), bandwidth = 22241.5 MB/s
Legend:
  BandW: Implied bandwidth (assuming 64-byte cache line) in MB/s
  % Eff: Effectiness of this lane count compared to the prior, as a % of ideal
  Speedup: Speedup factor for this many lanes versus one lane
---------------------------------------------------------------------
- # of lanes --- time (s) ---- BandW -- ns/hit -- % Eff -- Speedup --
---------------------------------------------------------------------
           1     2.393385        856      71.3       0%        1.0
           2     1.191146       1719      35.5     100%        2.0
           3     0.792691       2584      23.6     100%        3.0
           4     0.598023       3425      17.8      98%        4.0
           5     0.482384       4246      14.4      97%        5.0
           6     0.404444       5064      12.1      97%        5.9
           7     0.348919       5870      10.4      96%        6.9
           8     0.307359       6663       9.2      95%        7.8
           9     0.275060       7446       8.2      95%        8.7
          10     0.249483       8209       7.4      93%        9.6
          11     0.232413       8812       6.9      75%       10.3
          12     0.225341       9088       6.7      37%       10.6
          13     0.222795       9192       6.6      15%       10.7
          14     0.223184       9176       6.7      -2%       10.7
          15     0.223263       9173       6.7      -1%       10.7
          16     0.223248       9174       6.7       0%       10.7
          17     0.223499       9163       6.7      -2%       10.7
          18     0.223709       9155       6.7      -2%       10.7
          19     0.223938       9145       6.7      -2%       10.7
          20     0.224376       9128       6.7      -4%       10.7
          21     0.226161       9055       6.7     -17%       10.6
          22     0.225814       9069       6.7       3%       10.6
          23     0.226718       9033       6.8      -9%       10.6
          24     0.226769       9031       6.8      -1%       10.6
          25     0.225499       9082       6.7      14%       10.6
          26     0.225855       9068       6.7      -4%       10.6
          27     0.225822       9069       6.7       0%       10.6
          28     0.225807       9070       6.7       0%       10.6
          29     0.225805       9070       6.7       0%       10.6
          30     0.225733       9073       6.7       1%       10.6
          31     0.225755       9072       6.7      -0%       10.6
          32     0.225775       9071       6.7      -0%       10.6
          33     0.225903       9066       6.7      -2%       10.6
          34     0.227037       9021       6.8     -17%       10.5
          35     0.227101       9018       6.8      -1%       10.5
          36     0.226388       9046       6.7      11%       10.6
          37     0.227113       9018       6.8     -12%       10.5
          38     0.226498       9042       6.8      10%       10.6
          39     0.226643       9036       6.8      -2%       10.6
          40     0.226760       9032       6.8      -2%       10.6
          41     0.226769       9031       6.8      -0%       10.6
          42     0.226835       9029       6.8      -1%       10.6
          43     0.226885       9027       6.8      -1%       10.5
          44     0.226969       9023       6.8      -2%       10.5
          45     0.227542       9001       6.8     -11%       10.5
          46     0.227700       8994       6.8      -3%       10.5
          47     0.228642       8957       6.8     -19%       10.5
          48     0.228757       8953       6.8      -2%       10.5
          49     0.228910       8947       6.8      -3%       10.5
          50     0.228696       8955       6.8       5%       10.5
          51     0.228949       8945       6.8      -6%       10.5
          52     0.229207       8935       6.8      -6%       10.4
          53     0.228889       8948       6.8       7%       10.5
          54     0.228997       8943       6.8      -3%       10.5
          55     0.229021       8942       6.8      -1%       10.5
          56     0.229118       8939       6.8      -2%       10.4
          57     0.229064       8941       6.8       1%       10.4
          58     0.229014       8943       6.8       1%       10.5
          59     0.229006       8943       6.8       0%       10.5
          60     0.229288       8932       6.8      -7%       10.4
          61     0.229161       8937       6.8       3%       10.4
          62     0.229299       8932       6.8      -4%       10.4
          63     0.229045       8941       6.8       7%       10.4
          64     0.228868       8948       6.8       5%       10.5
          65     0.229086       8940       6.8      -6%       10.4
          66     0.228968       8944       6.8       3%       10.5
          67     0.228980       8944       6.8      -0%       10.5
          68     0.228834       8950       6.8       4%       10.5
          69     0.228876       8948       6.8      -1%       10.5
          70     0.228828       8950       6.8       1%       10.5
          71     0.228883       8948       6.8      -2%       10.5
          72     0.228592       8959       6.8       9%       10.5
          73     0.228610       8958       6.8      -1%       10.5
          74     0.228647       8957       6.8      -1%       10.5
          75     0.228877       8948       6.8      -8%       10.5
          76     0.228885       8948       6.8      -0%       10.5
          77     0.228846       8949       6.8       1%       10.5
          78     0.228618       8958       6.8       8%       10.5
          79     0.228560       8960       6.8       2%       10.5
          80     0.228778       8952       6.8      -8%       10.5
          81     0.228553       8961       6.8       8%       10.5
          82     0.228525       8962       6.8       1%       10.5
          83     0.228505       8963       6.8       1%       10.5
          84     0.228537       8961       6.8      -1%       10.5
          85     0.228525       8962       6.8       0%       10.5
          86     0.228552       8961       6.8      -1%       10.5
          87     0.228644       8957       6.8      -4%       10.5
          88     0.228520       8962       6.8       5%       10.5
          89     0.228540       8961       6.8      -1%       10.5
          90     0.228594       8959       6.8      -2%       10.5
          91     0.228499       8963       6.8       4%       10.5
          92     0.228423       8966       6.8       3%       10.5
          93     0.228424       8966       6.8      -0%       10.5
          94     0.228483       8963       6.8      -2%       10.5
          95     0.228508       8962       6.8      -1%       10.5
          96     0.228305       8970       6.8       9%       10.5
          97     0.228344       8969       6.8      -2%       10.5
          98     0.228406       8966       6.8      -3%       10.5
          99     0.228549       8961       6.8      -6%       10.5
Maybe you have about 13 parallel paths?
mode:  never
always madvise [never]
Initializing array made of 33554432 64-bit words.
Applying Sattolo's algorithm.
Surgery on the long cycle.
Verifying the neighboring distance...
mindist = 335544 vs 335544
Time to sum up the array (linear scan) 0.012 s (x 8 = 0.094 s), bandwidth = 21861.7 MB/s
Legend:
  BandW: Implied bandwidth (assuming 64-byte cache line) in MB/s
  % Eff: Effectiness of this lane count compared to the prior, as a % of ideal
  Speedup: Speedup factor for this many lanes versus one lane
---------------------------------------------------------------------
- # of lanes --- time (s) ---- BandW -- ns/hit -- % Eff -- Speedup --
---------------------------------------------------------------------
           1     2.847085        719      84.8       0%        1.0
           2     1.418425       1444      42.3     100%        2.0
           3     0.945276       2167      28.2     100%        3.0
           4     0.712745       2873      21.2      98%        4.0
           5     0.575373       3559      17.1      96%        4.9
           6     0.484268       4229      14.4      95%        5.9
           7     0.420134       4875      12.5      93%        6.8
           8     0.373104       5489      11.1      90%        7.6
           9     0.338489       6050      10.1      83%        8.4
          10     0.314353       6515       9.4      71%        9.1
          11     0.300715       6810       9.0      48%        9.5
          12     0.297395       6886       8.9      13%        9.6
          13     0.297624       6881       8.9      -1%        9.6
          14     0.299202       6845       8.9      -7%        9.5
          15     0.301036       6803       9.0      -9%        9.5
          16     0.302508       6770       9.0      -8%        9.4
          17     0.304840       6718       9.1     -13%        9.3
          18     0.306827       6675       9.1     -12%        9.3
          19     0.307823       6653       9.2      -6%        9.2
          20     0.308537       6638       9.2      -5%        9.2
          21     0.310906       6587       9.3     -16%        9.2
          22     0.310421       6597       9.3       3%        9.2
          23     0.311727       6570       9.3     -10%        9.1
          24     0.312305       6558       9.3      -4%        9.1
          25     0.308130       6647       9.2      33%        9.2
          26     0.308094       6647       9.2       0%        9.2
          27     0.308151       6646       9.2      -0%        9.2
          28     0.308746       6633       9.2      -5%        9.2
          29     0.308750       6633       9.2      -0%        9.2
          30     0.309456       6618       9.2      -7%        9.2
          31     0.308987       6628       9.2       5%        9.2
          32     0.307941       6651       9.2      11%        9.2
          33     0.309207       6623       9.2     -14%        9.2
          34     0.312801       6547       9.3     -40%        9.1
          35     0.312886       6546       9.3      -1%        9.1
          36     0.309280       6622       9.2      41%        9.2
          37     0.312477       6554       9.3     -38%        9.1
          38     0.309454       6618       9.2      37%        9.2
          39     0.309419       6619       9.2       0%        9.2
          40     0.309414       6619       9.2       0%        9.2
          41     0.309514       6617       9.2      -1%        9.2
          42     0.309290       6622       9.2       3%        9.2
          43     0.309425       6619       9.2      -2%        9.2
          44     0.309146       6625       9.2       4%        9.2
          45     0.309203       6623       9.2      -1%        9.2
          46     0.308965       6629       9.2       4%        9.2
          47     0.311184       6581       9.3     -34%        9.1
          48     0.311422       6576       9.3      -4%        9.1
          49     0.311010       6585       9.3       6%        9.2
          50     0.308756       6633       9.2      36%        9.2
          51     0.308848       6631       9.2      -2%        9.2
          52     0.308654       6635       9.2       3%        9.2
          53     0.308758       6633       9.2      -2%        9.2
          54     0.308883       6630       9.2      -2%        9.2
          55     0.308864       6631       9.2       0%        9.2
          56     0.309003       6628       9.2      -3%        9.2
          57     0.308853       6631       9.2       3%        9.2
          58     0.308980       6628       9.2      -2%        9.2
          59     0.308856       6631       9.2       2%        9.2
          60     0.310540       6595       9.3     -33%        9.2
          61     0.308765       6633       9.2      35%        9.2
          62     0.310559       6595       9.3     -36%        9.2
          63     0.308752       6633       9.2      37%        9.2
          64     0.308806       6632       9.2      -1%        9.2
          65     0.308739       6633       9.2       1%        9.2
          66     0.308789       6632       9.2      -1%        9.2
          67     0.308937       6629       9.2      -3%        9.2
          68     0.308932       6629       9.2       0%        9.2
          69     0.309058       6627       9.2      -3%        9.2
          70     0.309008       6628       9.2       1%        9.2
          71     0.308905       6630       9.2       2%        9.2
          72     0.308775       6633       9.2       3%        9.2
          73     0.308726       6634       9.2       1%        9.2
          74     0.308774       6633       9.2      -1%        9.2
          75     0.308770       6633       9.2       0%        9.2
          76     0.308797       6632       9.2      -1%        9.2
          77     0.309069       6626       9.2      -7%        9.2
          78     0.308763       6633       9.2       8%        9.2
          79     0.308873       6631       9.2      -3%        9.2
          80     0.308958       6629       9.2      -2%        9.2
          81     0.308974       6628       9.2      -0%        9.2
          82     0.309092       6626       9.2      -3%        9.2
          83     0.308976       6628       9.2       3%        9.2
          84     0.309040       6627       9.2      -2%        9.2
          85     0.308944       6629       9.2       3%        9.2
          86     0.308906       6630       9.2       1%        9.2
          87     0.309777       6611       9.2     -25%        9.2
          88     0.308992       6628       9.2      22%        9.2
          89     0.308962       6629       9.2       1%        9.2
          90     0.309153       6625       9.2      -6%        9.2
          91     0.308894       6630       9.2       8%        9.2
          92     0.308947       6629       9.2      -2%        9.2
          93     0.309051       6627       9.2      -3%        9.2
          94     0.309095       6626       9.2      -1%        9.2
          95     0.309142       6625       9.2      -1%        9.2
          96     0.309086       6626       9.2       2%        9.2
          97     0.309101       6626       9.2      -0%        9.2
          98     0.309053       6627       9.2       2%        9.2
          99     0.309053       6627       9.2       0%        9.2
Maybe you have about 12 parallel paths?
Done.
Restauring hugepages to madvise
