|
There's a great talk from Strange Loop from 2019 by Professor Emery Berger called "Performance Matters"[1] where he in part dives into the fact that memory layout can have a huge impact and that you may not have as much control over layout as you think.
For example he cites that even the username of the person running the program can be enough to result in some crippling performance impacts (even if the program doesn't pick it up, on *nix systems it's part of the environment variables!) One of the white papers he references, from 2009, by Mytkowicz et al. is titled "Producing Wrong Data Without Doing Anything Obviously Wrong!" and is worth at least a skim through, if not a full read. The starting abstract: > This paper presents a surprising result: changing a seemingly innocuous aspect of an experimental setup can cause a systems researcher to draw wrong conclusions from an experiment. What appears to be an innocuous aspect in the experimental setup may in fact introduce a significant bias in an evaluation. This phenomenon is called measurement bias in the natural and social sciences. Our results demonstrate that measurement bias is significant and commonplace in computer system evaluation. By significant we mean that measurement bias can lead to a performance analysis that either over-states an effect or even yields an incorrect conclusion. By commonplace we mean that measurement bias occurs in all architectures that we tried (Pentium 4, Core 2, and m5 O3CPU), both compilers that we tried (gcc and Intel’s C compiler), and most of the SPEC CPU2006 C programs. Thus, we cannot ignore mea surement bias. Nevertheless, in a literature survey of 133 recent papers from ASPLOS, PACT, PLDI, and CGO, we determined that none of the papers with experimental results adequately consider measurement bias. The relevant passage from the paper in relation to Dr Berger's talk: > The most important point to take away from this graph is that depending on the shell environment size we may conclude that (i) the O3 optimizations are beneficial (i.e., the y value is greater than 1.0); (ii) the O3 optimizations degrade performance; and (iii) increasing the UNIX environment size does not predict the O3 speedup because as the size increases speedup increases and decreases, ranging from 0.91 to 1.07 [1] https://www.youtube.com/watch?v=r-TLSBdHe1A
[2] https://users.cs.northwestern.edu/~robby/courses/322-2013-sp... |