Skip to content

linux-cachyos-autofdo: Introduce Package#326

Merged
ptr1337 merged 2 commits intomasterfrom
autofdo2
Nov 11, 2024
Merged

linux-cachyos-autofdo: Introduce Package#326
ptr1337 merged 2 commits intomasterfrom
autofdo2

Conversation

@ptr1337
Copy link
Member

@ptr1337 ptr1337 commented Nov 11, 2024

This kernel is intended to provide a preprofiled kernel, so that user can test this. This will follow the "linux-cachyos" kernel, and after a longer testing period this kernel will be dropped and we are optimizing the linux-cachyos kernel as default.

We will profile the kernel every 2 minor versions with following workloads (as soon LLVM 19 is out):

  1. Kernel Compilation
  2. cachyos-benchmarker
  3. Maybe some other specific workloads, like svt-av1

The profiles needs to be done each architecure. For now we will make the profiles for:

  • x86-64-v3
  • Zen4

Since there are the most of our users.

Workflow:

  1. Compile Kernel with _autofdo=y and _build_debug=y
  2. Boot into kenrel in QEMU or host machine
  3. Profile the kernel and convert the profile see blogpost
  4. Put the profile into the sourcedir andn name the profile perf.afdo
  5. Enable _autofdo_use

In the future we will also add propellor

This kernel is intended to provide a preprofiled kernel, so that user can test this. This will follow the "linux-cachyos" kernel, and after a longer testing period this kernel will be dropped and we are optimizing the linux-cachyos kernel as default.

We will profile the kernel every 2 minor versions with following workloads (as soon LLVM 19 is out):
1. Kernel Compilation
2. cachyos-benchmarker
3. Maybe some other specific workloads, like svt-av1

The profiles needs to be done each architecure. For now we will make the profiles for:
- x86-64-v3
- Zen4

Since there are the most of our users.

Workflow:
1. Compile Kernel with _autofdo=y and _build_debug=y
2. Boot into kenrel in QEMU or host machine
3. Profile the kernel and convert the profile see blogpost
4. Put the profile into the sourcedir andn name the profile perf.afdo
5. Enable _autofdo_use

In the future we will also add propellor

Signed-off-by: Peter Jung <admin@ptr1337.dev>
@ptr1337 ptr1337 requested review from 1Naim and ventureoo November 11, 2024 11:41
@ptr1337 ptr1337 self-assigned this Nov 11, 2024
Co-authored-by: Eric Naim <dnaim@cachyos.org>
@ptr1337 ptr1337 merged commit db5ff9f into master Nov 11, 2024
@ptr1337 ptr1337 deleted the autofdo2 branch November 11, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants