Comments (11)
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.
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.
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.
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 relocationsBuiltins_.*
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.
https://bugs.chromium.org/p/chromium/issues/detail?id=1163978#c15
from bolt.
Indeed, at such large scales the gains are huge.
from bolt.
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.
Quick update: I tried to apply BOLT to Chromium but currently blocked by llvm/llvm-project#59794
from bolt.
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.
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.
@aaupov this is huge!! I hope it will end up being enabled by default for public releases :)
from bolt.
Related Issues (20)
- A dump about function cannot be properly disassembled when use -use-old-text HOT 2
- perf2bolt: crashes with assertion. HOT 5
- A NullPtrException after BOLT on libart.so HOT 2
- BOLT/LLVM? does not preserve prefixes on conditional branches HOT 2
- Assert error in resolveAArch64Relocation HOT 15
- ELF32 support HOT 1
- BOLT only failed with --hugify HOT 13
- Why skip-function when it jump to itselfοΌ HOT 7
- Why Is registerName Executed Twice for a Symbol? HOT 1
- How do I run BOLT on a benchmark of HHVM? HOT 1
- A Problem About .got Table Updates HOT 4
- A Problem about IsSimple be used in disassemble
- Any ideas to support riscv architecture? HOT 5
- clang14 build with -update-debug-sections rewrite debug info core HOT 14
- A fatal error about -update-debug-sections HOT 3
- Any suggest to couple two functions? HOT 11
- How to use --hugify option? HOT 20
- Failed to BOLT HOT 2
- [C++] Exceptions catch leads to Segmentation fault
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt.