LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2014, 05:40 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
Rebuilding packages with -march=native flag (Intel Haswell 4770K) - good idea?


Hi, I am thinking of rebuilding some (I guess not all) Slackware64-14.1 packages with the CFLAG -march=native for my machine (Core i7 Haswell 4770K).
What packages would be good candidates to improve speed?
Gimp maybe, to speed up graphical processing?
The whole /a directory?

I am rebuilding Chromium right now, but it seems to take some time...
I will also try https://github.com/graysky2/kernel_gcc_patch to optimize the kernel.
 
Old 03-10-2014, 07:12 AM   #2
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Olaus View Post
Hi, I am thinking of rebuilding some (I guess not all) Slackware64-14.1 packages with the CFLAG -march=native for my machine (Core i7 Haswell 4770K).
What packages would be good candidates to improve speed?
Gimp maybe, to speed up graphical processing?
The whole /a directory?

I am rebuilding Chromium right now, but it seems to take some time...
I will also try https://github.com/graysky2/kernel_gcc_patch to optimize the kernel.
Should I perhaps rebuild Mesa first before rebuilding Gimp/Chromium/anything else needing a GUI?
 
Old 03-10-2014, 07:28 AM   #3
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
According to some Slackware gurus out there, it's a good idea to rebuild all the glibc related packages first.

The speed increase will affect the overall system then.


I've picked that fact from another similar thread but I forgot the link.
 
Old 03-10-2014, 10:26 AM   #4
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
I've tried rebuilding firefox and seamonkey with march=native on an 4430 i5 but the build crashes in the
finishing stages (some python test that barfs) on both packages. Used to work ok on my old amd phenom though.
Because of this I do not dare A glibc rebuild. Please let us know if all goes well.
 
Old 03-10-2014, 10:35 AM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I've seen people suggesting rebuilding glib,glib2 and glibc
 
Old 03-10-2014, 11:04 AM   #6
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by Nh3xus View Post
According to some Slackware gurus out there, it's a good idea to rebuild all the glibc related packages first.

The speed increase will affect the overall system then.


I've picked that fact from another similar thread but I forgot the link.
i forgot to mention there
glibc is a heavy case of cpu dispatching, so recompiling it won't make any difference (since it always uses the fastest functions)
if done wrong it could even hurt (if it gets confused and starts falling back to "safe" functions)


heavy things might benefit from optimization
like a browser or maybe even xorg (O3 or Os ? hmmmm)

PS benchmarks, benchmarks, benchmarks

Last edited by genss; 03-10-2014 at 11:07 AM.
 
Old 03-26-2014, 06:45 AM   #7
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Olaus View Post
Hi, I am thinking of rebuilding some (I guess not all) Slackware64-14.1 packages with the CFLAG -march=native for my machine (Core i7 Haswell 4770K).
What packages would be good candidates to improve speed?
Gimp maybe, to speed up graphical processing?
The whole /a directory?

I am rebuilding Chromium right now, but it seems to take some time...
I will also try https://github.com/graysky2/kernel_gcc_patch to optimize the kernel.
Both Chromium from Alien's repository and my version compiled with -march native gets about 7,500 points at http://peacekeeper.futuremark.com/, so I guess there was not much, if any gain?
 
Old 03-26-2014, 07:27 AM   #8
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I don't see much gain on it, either. I still set march to native on any SlackBuild I use tho.
 
  


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
LXer: The First Experience Of Intel Haswell On Linux LXer Syndicated Linux News 0 06-01-2013 05:42 PM
[SOLVED] The way to compile kernel with -mtune=native (or -march=native) kaz2100 Debian 3 08-18-2011 03:45 AM
[SOLVED] GCC options: (-m64) vs (-march=native) vs (-march=core2) -- Which one(s) to use? GrapefruiTgirl Linux - Software 5 09-29-2009 07:53 AM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM
what -march= optimisation flag for AMD64 ? qwijibow Linux - General 4 04-28-2006 05:31 AM

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

All times are GMT -5. The time now is 07:02 AM.

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