原链接:https://www.dotslashlinux.com/post/the-linux-kernel-configuration-guide-part-3-general-setup/
[*] 64-bit kernel
64位系统就乖乖选上吧
General setup
MuQSS cpu scheduler
选上
反正是建议值,ck-sources独有选项,对提升性能有好处
Cross-compiler tool prefix
留空
懂的自然知道这是干啥的
Compile also drivers which will not load
同上
Local version – append to kernel release
TEST
可以填任意字母 不建议输入符号
Automatically append version information to the version string
留空
Kernel compression mode
建议选择LZ4或者使用默认值
选用LZ4需要在编译前安装app-arch/lz4
Default hostname
留空
默认主机名 建议留空或者任意字母组合
Support for paging of anonymous memory (swap)
选上
swap交换空间支持,用Gentoo除非你12G+的内存 还是建议设置swap 我8G内存设置1G的swap
System V IPC
。。。
POSIX Message Queues
不选
没什么用的东西 需要这东西的人自然懂
Enable process_vm_readv/writev syscalls
不选
没什么用的东西 需要这东西的人自然懂
open by fhandle syscalls
选上
systemd和udev依赖与它
uselib syscall
不选
古董玩意儿
Auditing support
不选
不需要且systemd和它冲突,selinux需要它
IRQ subsystem —>
Expose hardware/virtual IRQ mapping via debugfs
不选
用于调试
Make IRQ threading compulsory
选上
Timers subsystem —>
Timer tick handling (Idle dynticks system (tickless idle))
Idle dynticks system (tickless idle)
Old Idle dynticks config
不选
High Resolution Timer Support
。。。
CPU/Task time and stats accounting —>
Cputime accounting (Simple tick based cputime accounting) —>
Simple tick based cputime accounting
剩下的子选项全建议不选 需要的会被-*-选上
RCU Subsystem —>
Make expert-level adjustments to RCU configuration
选上
Use v4.11 classic SRCU implementation
不选
Tree-based hierarchical RCU fanout value
默认值64
Tree-based hierarchical RCU leaf-level fanout value
默认值16
Accelerate last non-dyntick-idle CPU’s grace periods
不选
Enable RCU priority boosting
选上
Real-time priority to use for RCU worker threads
默认值1
Milliseconds to delay boosting after RCU grace-period start
0
Offload RCU callback processing from boot-selected CPUs
选上
Build-forced no-CBs CPUs
All CPUs are build_forced no-CBs CPUs
Kernel .config support
不选
没什么用
Kernel log buffer size
默认值即可
CPU kernel log buffer size contribution
默认值即可
Temporary per-CPU printk log buffer size
默认值即可
Memory placement aware NUMA scheduler
选上
Automatically enable NUMA aware memory/task placement
选上
Control Group support —>根据实际需要选择 否则保持默认值
Namespaces support —>全选上
Enable deprecated sysfs features to support old userspace tools
不选
之后的-*-将直接跳过
filesystem aInitial RAM filesystem and RAM disk (initramfs/initrd) support
选上
mfs source fiInitramfs source file(s)
留空
可以填入指定路径
Support initial ramdisks compressed using xxx 根据实际需求选择
Compiler optimization level (Optimize for performance) —>
Optimize for performance
不解释 性能为上
中间省略全为不选
Choose SLAB allocator (SLUB (Unqueued Allocator))
SLUB (Unqueued Allocator)
中间省略全为不选
Optimize very unlikely/likely branches
选上
后面全不选或None