Git Product home page Git Product logo

Comments (11)

corona10 avatar corona10 commented on July 22, 2024 3

@aaupov

FYI, CPython now adopt llvm-bolt as an experimental feature: python/cpython@214eb2c

I am expecting the usage through ./configure --enable-optimizations --with-lto --enable-bolt

from bolt.

LifeIsStrange avatar LifeIsStrange commented on July 22, 2024 2

Friendly ping @nfischer
Since chromium use LTO and PGO, leveraging BOLT would be the next logical step for improving end users performance of the web

from bolt.

nfischer avatar nfischer commented on July 22, 2024 1

It looks like folks on the Chromium build team are already thinking about this! πŸ˜„ I suggest you click the "star" icon for https://crbug.com/1163978 if you would like to be notified of further updates.

from bolt.

aaupov avatar aaupov commented on July 22, 2024 1

Update:

  • stripping __typeid_ symbols with strip/llvm-strip is not possible due to dangling relocations:
not stripping symbol '__typeid__ZTSFvPKN4base8internal13BindStateBaseEE_global_addr' because it is named in a relocation
  • skipping __typeid_ symbols in BOLT is a feasible workaround which unblocks processing of the binary (https://reviews.llvm.org/D141229)
  • strict mode needs to be disabled in perf aggregation (perf2bolt) due to unclaimed PC-relative relocations
  • Builtins_.* functions need to be skipped due to V8 (see Optimizing NodeJS with BOLT)
  • the binary can be successfully processed by BOLT (no crash)
  • however, the optimized binary crashes at startup due to SIGILL in malloc.cfi – looks like we're violating Clang's CFI invariants (https://clang.llvm.org/docs/ControlFlowIntegrity.html)

from bolt.

aaupov avatar aaupov commented on July 22, 2024 1

https://bugs.chromium.org/p/chromium/issues/detail?id=1163978#c15

from bolt.

insilications avatar insilications commented on July 22, 2024

Indeed, at such large scales the gains are huge.

from bolt.

aaupov avatar aaupov commented on July 22, 2024

I'm pretty sure them not using it is a huge missed opportunity for end users performance (billions of humans) (and related projects such as Skia, ANGLE, freetype, etc)

That would be quite a meaningful utilitaristic goal.

I don't recall seeing an interest from chromium devs. Do you have any contacts? Feel free to ping them here.

from bolt.

aaupov avatar aaupov commented on July 22, 2024

Quick update: I tried to apply BOLT to Chromium but currently blocked by llvm/llvm-project#59794

from bolt.

aaupov avatar aaupov commented on July 22, 2024

On the first glance CFI enabled by Chromium on Linux/x86 in official build mode is non-trivial to support in BOLT. I'll try to run BOLT on just Release+PGO build to decide if further effort is worthwhile.

from bolt.

aaupov avatar aaupov commented on July 22, 2024

I've made a post summarizing my findings: https://aaupov.github.io/blog/2022/11/12/bolt-chromium

In short, BOLT appears to be reasonably effective for Chromium, with Speedometer results comparable to that of PGO build (https://blog.chromium.org/2020/08/chrome-just-got-faster-with-profile.html): 7.7% speedup from PGO (Mac), ~6% speedup from BOLT (Linux) on top of PGO.

To note, BOLT profile definitely wasn't of the highest quality, so the performance can potentially be further improved.

from bolt.

LifeIsStrange avatar LifeIsStrange commented on July 22, 2024

@aaupov this is huge!! I hope it will end up being enabled by default for public releases :)

from bolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.