我一直在使用最近的ubuntu5.16内核-ppa包从主线,因为我需要温度监测的AMD5700gCPU和B550I主板。我需要低延迟,因为我是一个音乐家,使用系统进行录音。我想继续跟踪最新版本,直到5.16或更高版本发布,以便获取安全性和amdgpu更新等等。
最新的主线构建似乎不再包括低延迟的amd64 deb包。他们会回来吗?如果不是,我如何从主线构建自己的教程在哪里?(目前我使用的是ubuntu工作室21.10)
发布于 2022-03-22 16:00:02
主持人:这是个有点离题的话题,但我认为这对一些读者可能有帮助。
主流内核的低延迟版本将不再编译并在Ubuntu主线PPA上发布。内核配置的差异很小,所以做自己的内核编译的用户可以简单地修改配置。
回到当前内核5.17系列中的几个RCs (发布候选版本)中,仍然发布了泛型和低延迟的内容:
doug@s19:~/kernel/linux$ scripts/diffconfig .config-5.17.0-051700rc3-generic .config-5.17.0-051700rc3-lowlatency
COMEDI_TESTS_EXAMPLE m -> n
COMEDI_TESTS_NI_ROUTES m -> n
HZ 250 -> 1000
HZ_1000 n -> y
HZ_250 y -> n
LATENCYTOP n -> y
PREEMPT n -> y
PREEMPT_VOLUNTARY y -> n
TEST_DIV64 n -> m将这些更改与其他标准更改相结合,将提供以下脚本(编辑添加,因为原始的post更新):
doug@s19:~/kernel/linux$ cat mod-config
#! /bin/bash
#
# mod-config 2022.05.08 Smythies
# Use the newer DEBUG_INFO_NONE, and enable it.
# (which actually means disable debug stuff.)
#
# mod-config 2022.05.01 Smythies
# add disable DEBUG_INFO_DWARF5
#
# mod-config 2022.04.04 Smythies
# Getting the:
# BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
# compile error again.
# and if one disables CONFIG_DEBUG_INFO_BTF
# then the huge debug kernel is generated.
# I don't want to install the DWARVES package.
# Specifically disable this stuff, so it
# does not override desired no debug kernel.
#
# mod-config 2022.03.22 Smythies
# The standard changes to the Ubuntu Mainline
# kernel configuration have become numerous.
# Automate.
# The script is located in the base directory of
# the mainline git clone.
#scripts/config --disable DEBUG_INFO_DWARF4
scripts/config --disable DEBUG_INFO_DWARF5
#scripts/config --disable DEBUG_INFO
scripts/config --enable DEBUG_INFO_NONE
scripts/config --disable SYSTEM_TRUSTED_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS
# convert generic config to lowlatency
scripts/config --disable COMEDI_TESTS_EXAMPLE
scripts/config --disable COMEDI_TESTS_NI_ROUTES
scripts/config --set-val CONFIG_HZ 1000
scripts/config --enable HZ_1000
scripts/config --disable HZ_250
scripts/config --enable LATENCYTOP
scripts/config --enable PREEMPT
scripts/config --disable PREEMPT_VOLUNTARY
scripts/config --set-val TEST_DIV64 m为了测试我使用的泛型配置,在它上运行脚本,然后编译(这将对.config文件做一些进一步的调整),并与我先前保存的低延迟内核配置进行比较:
doug@s19:~/kernel/linux$ scripts/diffconfig .config-5.17-rc3 .config
doug@s19:~/kernel/linux$即没有差别。
参考资料: IRC讨论:第一天,第二天;如何编译主线内核的一种方法
https://askubuntu.com/questions/1397410
复制相似问题