LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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


Reply
  Search this Thread
Old 11-15-2018, 03:29 AM   #1
maverick6664
LQ Newbie
 
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 11-15-2018, 07:22 AM   #2
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 286

Rep: Reputation: 101Reputation: 101
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 ?
 
Old 11-15-2018, 01:28 PM   #3
maverick6664
LQ Newbie
 
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lougavulin View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distro for fastest web-browsing and nothing else? Ten1Ten Linux - Newbie 16 10-08-2017 04:46 PM
LXer: Microsoft has developed its own Linux. Repeat. Microsoft has developed its own Linux LXer Syndicated Linux News 0 09-18-2015 04:51 PM
[SOLVED] Computer turns off by itself, then boots by itself to a blank screen Lyle Linux - Hardware 8 07-25-2010 07:27 PM
Which 64 bit distro or distros are the most mature/developed? ricdave Linux - General 3 07-06-2010 02:38 PM
Which distro is fastest on a Pentium 3? bolinux Linux - Distributions 13 10-13-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration