Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3161

Document using the gold linker for faster development on linux.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • build, documentation
    • 3

    Description

      The gold linker seems to provide a decent speedup (about ~20%) on a parallel build. From a quick test:

      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
      

      On CentOS 5 w/ devtoolset-2:

      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
      

      On Ubuntu:

      sudo update-alternatives --install /usr/bin/ld ld /usr/bin/gold 1
      

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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            bmahler Benjamin Mahler

            Dates

              Created:
              Updated:

              Slack

                Issue deployment