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

kernel: improve config handling of IO_URING and DYNAMIC_DEBUG #12482

Merged

Commits on May 3, 2023

  1. kernel: fix handling of CONFIG_DYNAMIC_DEBUG

    Since CONFIG_DYNAMIC_DEBUG is already managed via the KERNEL_DYNAMIC_DEBUG
    setting in Config-kernel.in (default N), remove or disable it in target
    configs which unconditionally enable it, along with the related setting
    CONFIG_DYNAMIC_DEBUG_CORE. This saves several KB in the kernels for
    ipq40xx, ipq806x, filogic, mt7622, qoriq, and sunxi.
    
    Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
    guidosarducci committed May 3, 2023
    Configuration menu
    Copy the full SHA
    3980dfc View commit details
    Browse the repository at this point in the history
  2. kernel: improve handling of CONFIG_IO_URING

    Kernel setting CONFIG_IO_URING supports high-performance I/O for file
    access and servers, generally for more performant platforms, and adds
    ~45 KB to kernel sizes. The need for this on less "beefy" devices is
    questionable, as is the size cost considering many platforms have kernel
    size limits which require tricky repartitioning if outgrown. The size
    cost is also large relative to the ~180 KB bump expected between major
    OpenWRT kernel releases.
    
    No OpenWrt packages have hard dependencies on this; samba4 and mariadb
    can take advantage if available (+KERNEL_IO_URING:liburing) but
    otherwise build and work fine.
    
    Since CONFIG_IO_URING is already managed via the KERNEL_IO_URING setting
    in Config-kernel.in (default Y), remove it from those target configs
    which unconditionally enable it, and update the defaults to enable it
    conditionally only on more powerful 64-bit x86 and arm devices. It may
    still be manually enabled as needed for high-performance custom builds.
    
    Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
    guidosarducci committed May 3, 2023
    Configuration menu
    Copy the full SHA
    3d66f55 View commit details
    Browse the repository at this point in the history