AuntTillie
Re:What happens when you page align everything
on Friday March 20, 2015 @10:52AM (#9238046)
My position is based in pragmatism. Code that works and is delivered in time is often more desirable than code that works, is fast, but delivered late. There's always a cost-benefit tradeoff to be made and if warm bodies yield more performance per buck than cold ones^, that's great for us programmers!
As for mindset, page aligned allocations are required to use protection modes and I tend to program more with security in mind. Glad it helps performance, but it could often times be a completely unintentional side effect. Thanks for your insights, though. Appreciated!
^: Assuming they're at present in idle (or off) state.
Re:What happens when you page align everything
on Friday March 20, 2015 @10:15AM (#9237814)
Quite right, but if you ship software to customers you'd have to profile on a variety of CPUs or risk regressing on other models. Profiling on recent Intel x86_64 CPUs gave me the (perhaps false) impression TFA author writes for a known or even controlled environment. That is indeed not a luxury everyone enjoys, so I raised a portability concern. However, the potential benefits of cheap horizontal scaling also extends to said customers.
Re:What happens when you page align everything
on Friday March 20, 2015 @07:50AM (#9237105)
"Page align everything" by convention is in fact a form of optimization without profiling. TFA explains in detail why this is yet another bad idea, perhaps you read something in my comment I did not write?
Re:What happens when you page align everything
on Friday March 20, 2015 @06:56AM (#9236961)
"Premature optimization is the root of all evil" -- Donald Knuth
What works for i386 may not be applicable on arm/hppa/ppc/etc. It should not even matter these days as almost every CPU clocks well over 1000MHz. If that is still not enough, extra cloud instances are probably cheaper than wasting your time with extensive profiling and manual optimizations.