azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

config: azurelinux 3.0 kernel config

Open allenpais opened this issue 9 months ago • 4 comments

Optimize and Converge Kernel Configuration for Enhanced Performance and Maintainability

This config is a based on: https://github.com/microsoft/azurelinux/blob/3.0/SPECS/kernel/config

Key Changes:

  • Deprecated outdated configuration options that no longer provide benefits in current hardware and software contexts.

  • We are suggesting these optimizations for our WSL/LCOW convergence to azurelinux.

allenpais avatar Apr 29 '24 23:04 allenpais

@rlmenge Please review.

allenpais avatar Apr 29 '24 23:04 allenpais

@allenpais I was hoping we could disable all but perhaps one of the CONFIG_RD_* options to reduce image size.

tyhicks avatar Apr 30 '24 04:04 tyhicks

@tyhicks Thanks for taking the time out to review. I have addressed your feedback. There will probably be one or two more commits that will go in. I should have it pushed soon.

allenpais avatar Apr 30 '24 15:04 allenpais

I was able to cherry-pick a majority of these changes onto a test branch and build a test azl3 RPM!

  • created new branch off of 6.6.29.1 upgrade PR
  • cherry-picked the 2 commits from this PR (required a small git merge to match 6.6.29.1)
  • updated the spec and configs to match Azure Linux toolchain for 3.0
  • Built the rpm :) (pipeline run)

It will not properly make an initramfs at the moment because dracut explicitly expects xen modules. We can/should change dracut from relying on xen but this along with the kernel config xen changes should be its own PR

Right, we are currently in the middle of a rework to the set of kernel modules needed by dracut which we will have to sync with this change: https://github.com/microsoft/azurelinux/pull/9144

Camelron avatar May 20 '24 20:05 Camelron