Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel's Clear Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Tue Apr 26, 2016 7:48 pm    Post subject: Intel's Clear Linux Reply with quote

Recently, Clear Linux has been in the news. Supposedly it's a custom distro made by Intel with advanced features and optimization. The showcased benchmarks do indicate a decent speed boost. Fedora appears to be interested in porting some of that (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/UXTL3INISMOIVYI4JOYVHCEOFLMFC7CO/)

[rice alert] Naturally, as a Gentoo user I also want a piece of that cake! [/rice alert]

Seeing as this is Intel instead of some ricer's half-broken Gentoo, Intel's work could very well benfit other distros. The official site is rather low on information as to just what they're actually doing tho. Here's what I gathered so far:

- Custom patches
- Likely using ICC as their compiler (not sure) (likely the source of most of the performance boost, as long as you use an Intel CPU) Nope.
- Use -O3 where possible
- Automatic pgo (https://clearlinux.org/features/autofdo)
- Function Multiversioning (https://clearlinux.org/features/function-multiversioning-fmv) - probably not of interest for Gentoo users

I can't find any patches or any easily discoverable sources at all, which is unfortunate. Or maybe I haven't looked in the right places.


Anyway. Has anyone given it a try or found something interesting?


Last edited by haarp on Tue May 10, 2016 4:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1144
Location: Romania

PostPosted: Wed Apr 27, 2016 3:06 am    Post subject: Reply with quote

it was never official, but then again what could be official in gentoo world... i tried to use icc back in 2006-2007. some packs dont compile with it. some do.

back then, my main focus was php. and it did compile with icc, and it did work generally 10-15% faster compiled with gcc.

but also had random behavior. and was virtually undebuggable.

i get why intel is trying to make their own distro. but also, gcc has matured a lot since then. and the right way to do things for intel would be to contribute to gcc, rather then make their own distro. or compiler. bleah. now i stay away from it as much as i can.

rather have systems that dont need that extra 10% umph.

EDIT: i mean really... if you were making processors, would you make your own compiler, or would you contribute to gcc? intel is yet again, taking the wrong turn. but they will bounce back. they always do.
Back to top
View user's profile Send private message
Chrishas
n00b
n00b


Joined: 19 Jul 2015
Posts: 12

PostPosted: Thu Apr 28, 2016 10:07 am    Post subject: Reply with quote

The sources for the packages are inside the corresponding directory(current/release/latest):

https://download.clearlinux.org/

I have a VM with the live version but not sure how to check if icc was used.
I tried strings and readelf on some binaries and libraries but didn't see anything with icc, perhaps someone else can provide more info.

The below post says GCC was used:
https://clearlinux.org/blogs/performance-race
Mostly it seems to involve more aggressive compiler flags which other distros may avoid for stability or other reasons.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Apr 28, 2016 1:28 pm    Post subject: Re: Intel's Clear Linux Reply with quote

haarp wrote:
- Likely using ICC as their compiler (not sure) (likely the source of most of the performance boost, as long as you use an Intel CPU)

Last I heard, this broke quite a few things. You can ask the gentoo-science people who do use ICC, but only for specific packages.

haarp wrote:
- Use -O3 where possible

This will improve some single-threaded benchmark results, but enabling this globally is not a smart idea. -O3 will increase the size of the generated code considerably, so your processes will tend to evict each other from L2 cache more.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Apr 30, 2016 11:48 pm    Post subject: Reply with quote

Looks like they do per-package optimizations on top of all the other optimization goodness:

http://www.phoronix.com/scan.php?page=article&item=intel-clr-opengl&num=1
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun May 01, 2016 8:26 am    Post subject: Re: Intel's Clear Linux Reply with quote

chithanh wrote:

haarp wrote:
- Use -O3 where possible

This will improve some single-threaded benchmark results, but enabling this globally is not a smart idea. -O3 will increase the size of the generated code considerably, so your processes will tend to evict each other from L2 cache more.


You keep supposing icc and gcc share -O3, while i know what -O3 is doing for gcc, are you sure icc use -O3 for the same purpose or that even the level imply max optimization level?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sun May 01, 2016 4:46 pm    Post subject: Reply with quote

For both gcc and icc, -O3 is the highest optimization level.
According to the description on the Intel website, the difference between -O2 and -O3 is mostly in loop optimization/transformation, which is comparable to what gcc does. icc does seem to do some vectorization at -O2 which gcc does only at -O3 though.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun May 01, 2016 8:11 pm    Post subject: Reply with quote

thanks chithanh, that no-prec-div might do wonders!
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Tue May 10, 2016 4:52 pm    Post subject: Reply with quote

Ah. According to Moronix, they were using GCC 5.3 all along (but switched to GCC6 now). So they must indeed have some interesting patches.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum