You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "haosdent (JIRA)" <ji...@apache.org> on 2015/10/17 20:33:05 UTC

[jira] [Updated] (MESOS-3161) Document using the gold linker for faster development on linux.

     [ https://issues.apache.org/jira/browse/MESOS-3161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

haosdent updated MESOS-3161:
----------------------------
    Description: 
The [gold linker|https://en.wikipedia.org/wiki/Gold_(linker)] seems to provide a decent speedup (about ~20%) on a parallel build. From a quick test:

{noformat: title=timings for make check -j24 GTEST_FILTER="" w/ 24 hyperthreaded cores}
gold:

real	7m18.526s
user	81m21.213s
sys	5m17.224s

default ld:

real	9m7.908s
user	85m13.466s
sys	5m52.199s
{noformat}

On CentOS 5 w/ devtoolset-2:

{noformat}
sudo /usr/sbin/alternatives --altdir /opt/rh/devtoolset-2/root/etc/alternatives --admindir /opt/rh/devtoolset-2/root/var/lib/alternatives --set ld /opt/rh/devtoolset-2/root/usr/bin/ld.gold
{noformat}

On Ubuntu:
{noformat}
sudo update-alternatives --install /usr/bin/ld ld /usr/bin/gold 1
{noformat}

Ideally we could this out on the website, with instructions for each OS.

  was:
The [gold linker|https://en.wikipedia.org/wiki/Gold_(linker)] seems to provide a decent speedup (about ~20%) on a parallel build. From a quick test:

{noformat: title=timings for make check -j24 GTEST_FILTER="" w/ 24 hyperthreaded cores}
gold:

real	7m18.526s
user	81m21.213s
sys	5m17.224s

default ld:

real	9m7.908s
user	85m13.466s
sys	5m52.199s
{noformat}

On CentOS 5 w/ devtoolset-2:

{noformat}
sudo /usr/sbin/alternatives --altdir /opt/rh/devtoolset-2/root/etc/alternatives --admindir /opt/rh/devtoolset-2/root/var/lib/alternatives --set ld /opt/rh/devtoolset-2/root/usr/bin/ld.gold
{noformat}

Ideally we could this out on the website, with instructions for each OS.


> Document using the gold linker for faster development on linux.
> ---------------------------------------------------------------
>
>                 Key: MESOS-3161
>                 URL: https://issues.apache.org/jira/browse/MESOS-3161
>             Project: Mesos
>          Issue Type: Improvement
>          Components: build, documentation
>            Reporter: Benjamin Mahler
>              Labels: newbie
>
> The [gold linker|https://en.wikipedia.org/wiki/Gold_(linker)] seems to provide a decent speedup (about ~20%) on a parallel build. From a quick test:
> {noformat: title=timings for make check -j24 GTEST_FILTER="" w/ 24 hyperthreaded cores}
> gold:
> real	7m18.526s
> user	81m21.213s
> sys	5m17.224s
> default ld:
> real	9m7.908s
> user	85m13.466s
> sys	5m52.199s
> {noformat}
> On CentOS 5 w/ devtoolset-2:
> {noformat}
> sudo /usr/sbin/alternatives --altdir /opt/rh/devtoolset-2/root/etc/alternatives --admindir /opt/rh/devtoolset-2/root/var/lib/alternatives --set ld /opt/rh/devtoolset-2/root/usr/bin/ld.gold
> {noformat}
> On Ubuntu:
> {noformat}
> sudo update-alternatives --install /usr/bin/ld ld /usr/bin/gold 1
> {noformat}
> Ideally we could this out on the website, with instructions for each OS.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)