Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2018, 03:29 AM
|
#1
|
LQ Newbie
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8
Rep: 
|
Which is the fastest distro? I mean the speeds of developed binaries. Not OS itself.
Hi all,
I am using Fedora 29 and some others (Debian testing, jessie, ubuntu 16.04, 18.04, etc. in VMware) on my Core i7 4790K rig, building BOINC software with GNU C/C++ and Intel C/C++ optimizing compiler. The binary is used in a BOINC project https://csgrid.org/csg/ and does a lot of floating point calculations, and the source is open to public. So I'm trying to build a faster one. It uses only cpu. No OpenCL or cuda is necessary. But AVX2 extension is available to my rig, which can be enabled with "-O3 -mavx2" or "-O2 -mavx2 -ftree-vectorize" options.
So far, I found plain vanilla ubuntu 16.04.1 (not upgraded with "apt update; apt upgrade") is the fastest (distributed application is build with this. gcc-5.4.0), and I cannot build a faster one than this, even with Intel optimizing compiler. Compilers older than gcc-5.4.0 cannot compile the source because of syntax problems.
So I wonder which combination of gcc version, glibc version, distro is the best. Ironically, newer gcc/glibc isn't necessarily fast. The next fastest one was debian jessie, gcc-6.4(?), I forgot glibc version.
Someone give me advice? I'll try on vmware.
Thanks in advance!!
PS: BTW I tried compiling another project Amicable Numbers which uses integers mostly and found Fedora 29 (gcc-8.2.1 glibc-2.28) is the fastest. Weird world.
|
|
|
11-15-2018, 07:22 AM
|
#2
|
Member
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 286
Rep: 
|
I won't be very helpful, but few thoughts...
Before your tests, do you get ride of everything unnecessary (services mainly, X, ...) on each distro ? Because distro keep more or less things up by default.
It seems a lot about hardware optimizations, so the obvious ones for me, would be gentoo or LFS. Among the gentoo community, you should be able to get a lot of ideas and advice to build the fastest system. This is almost their purpose.
Newest stable gcc should gives better results as it brings new and better optimizations and options.
Out of curiosity, which tests do you run ?
|
|
|
11-15-2018, 01:28 PM
|
#3
|
LQ Newbie
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by lougavulin
I won't be very helpful, but few thoughts...
Before your tests, do you get ride of everything unnecessary (services mainly, X, ...) on each distro ? Because distro keep more or less things up by default.
It seems a lot about hardware optimizations, so the obvious ones for me, would be gentoo or LFS. Among the gentoo community, you should be able to get a lot of ideas and advice to build the fastest system. This is almost their purpose.
Newest stable gcc should gives better results as it brings new and better optimizations and options.
Out of curiosity, which tests do you run ?
|
Thank you for your reply.
Since my base is Fedora 29, any test is run on Fedora 29. Fortunately my application is statically linked in vmware, it can be measured on the same Fedora 29 environment. Testing is very simple. Stop BOINC which consumes most of cpu power and see no other cpu consuming service is running with "top", then just let it calculate a set of test data for about 30 seconds along with the comparison application which is normally used and see which is faster and how much faster. This application makes a file at the beginning, and after that adds lines to another file, so by comparing the file time with "ls --full-time" (exactly I made an alias), the run time can be precisely measured. Repeat this some times and confirm the run time is stable.
Gentoo is certainly worth a try. If gcc is changed to 8.x and recompile glibc 2.28 or so, it would be nice. I have no experience with LFS.
Thanks!!
Last edited by maverick6664; 11-15-2018 at 01:45 PM.
|
|
|
All times are GMT -5. The time now is 12:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|