News for hackers. Stuff that matters.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by thedance on Thursday February 06, 2020 @06:19PM (#22261509)
If you're actually sensitive to performance you surely would never use upstream debian binary packages. At least for the x86_64 distro they are built to run on Opteron and just rebuilding them for a less-old CPU like Intel Sandy Bridge, or for whatever CPU you intend to use, can make a huge difference. I get a full 100% improvement in sysbench oltp just from rebuilding the libc and database server with march=skylake.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by michaelmrose on Thursday February 06, 2020 @07:20PM (#22261929)
Benchmarks please. I also do not think that they are actually tuned specifically for opteron.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by thedance on Thursday February 06, 2020 @08:14PM (#22262293)
Why would you care what my benchmarks look like? If you are performance-sensitive, run yours. If you don’t have any, you’re not sensitive to performance.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by jasongill on Thursday February 06, 2020 @08:43PM (#22262451)
I think the only one being sensitive here is you - the other commenter is just looking for some way to quantify the huge performance gain that you claim, as it seems unlikely (although not impossible) that just recompiling the packages would provide such a major performance increase.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by thedance on Thursday February 06, 2020 @10:05PM (#22262883)
Using the oltp workload that comes packaged with sysbench, the median latency falls from 50us to 25us on a skylake xeon with nvme storage after recompiling MySQL and libc with march=skylake. Give it a whirl.
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by tedunangst on Thursday February 06, 2020 @09:49PM (#22262817)
Maybe I'm performance sensitive and haven't noticed anything like the claimed improvement and wondering what I did wrong and how I can fix things?
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by rstuart4133 on Saturday February 08, 2020 @06:55AM (#22275300)
Seriously? You are claiming a 100% improvement from a recompile when the difference between gcc -O0 and -O2 isn't that, and wondering why people are asking to see the benchmarks?
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by kawsper on Thursday February 06, 2020 @06:57PM (#22261761)
Could one use -mtune to optimize to newer hardware, but make sure it runs for older hardware?
Re:Benchmarking Debian vs. Alpine as a base Docker image (2018) by thedance on Thursday February 06, 2020 @07:09PM (#22261848)
Maybe, but unless you actually own the old hardware, why would you? By the way mtune is much less effective than march. It might change the way a few instructions are scheduled but march will use the actual instructions and registers on your machine.