Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Propeller Optimization #359

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add support for Propeller Optimization #359

wants to merge 2 commits into from

Conversation

ptr1337
Copy link
Member

@ptr1337 ptr1337 commented Dec 16, 2024

This adds support to the PKGBUILD for the Propeller Optimization.
Propeller currently depends on LLVM 19, which should arrive soon.

The workflow would be:

  1. Default AutoFDO workflow and enable at the last compilation _propeller to be enabled, so that the config gets enabled
  2. Boot into the AutoFDO Kernel with Propeller enabled and profile it
  3. Convert the profile with following command and replace prefix with the wanted prefix: create_llvm_prof --binary=/usr/src/debug/linux-cachyos-rc/vmlinux --profile=propeller.data --format=propeller --propeller_output_module_name --out=/home/ptr1337/bench/$prefix_cc_profile.txt --propeller_symorder=/home/ptr1337/bench/$prefix_ld_profile.txt
  4. Set the selected prefix in the _propeller_prefix
  5. Compile the final kernel

I did not do enhanced benchmarks, but generally AutoFDO + Propeller should provide an 10% throughput benefit according google. We might want to experiment, which profile workload is suited, and how long/extended the profiling should be

Signed-off-by: Peter Jung [email protected]

@ptr1337 ptr1337 added the enhancement New feature or request label Dec 16, 2024
@ptr1337 ptr1337 self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant