简体   繁体   English

Debian,make-kpkg和Linux内核开发

[英]Debian, make-kpkg, and Linux kernel development

Debian's make-kpkg utility can build many of the kernel pieces concurrently. Debian的make-kpkg实用程序可以同时构建许多内核。 Setting CONCURRENCY_LEVEL=cores+1 is the general rule of thumb for best performance. 设置CONCURRENCY_LEVEL = cores + 1是获得最佳性能的一般经验法则。 It's not a bad guess. 这不是一个不好的猜测。

I scripted this for various integers. 我为此编写了各种整数的脚本。 Here's the kernel compile times on an eight-core Xeon. 这是八核Xeon上的内核编译时间。 The kernel config is default for Debian's kernel 3.12 package. Debian的内核3.12软件包默认使用内核配置。

CONCURRENCY_LEVEL=1 real    57m17.953s
CONCURRENCY_LEVEL=2 real    30m26.084s
CONCURRENCY_LEVEL=3 real    21m39.387s
CONCURRENCY_LEVEL=4 real    17m13.022s
CONCURRENCY_LEVEL=5 real    14m41.180s
CONCURRENCY_LEVEL=6 real    13m8.875s
CONCURRENCY_LEVEL=7 real    12m8.646s
CONCURRENCY_LEVEL=8 real    11m55.420s
CONCURRENCY_LEVEL=9 real    13m27.034s
CONCURRENCY_LEVEL=10 real    14m17.753s
CONCURRENCY_LEVEL=11 real    14m45.664s
CONCURRENCY_LEVEL=12 real    15m1.784s
CONCURRENCY_LEVEL=13 real    15m10.595s
CONCURRENCY_LEVEL=14 real    15m19.862s
CONCURRENCY_LEVEL=15 real    15m24.915s

make-kpkg also generates a deb package file that can be installed trivially. make-kpkg还会生成一个deb软件包文件,该文件可以轻松安装。 In contrast, at least one official Fedora doc goes through an extensive process of building an RPM by hand for the same goal I think - automated dependency resolution. 相比之下,至少有一份Fedora正式文档经过了一个广泛的过程,即为实现我认为相同的目标(即自动依赖关系解析)而手工构建RPM。 It was painful. 真痛苦 I suspect Gentoo would be stripped of any concern for packages heh. 我怀疑Gentoo不会因为包裹而担心任何问题。

So I have a few questions for experience kernel devs. 因此,我对经验丰富的内核开发人员有一些疑问。 Is the concurrent kernel build a big win and do any other distros offer it? 并发内核能否取得重大胜利,其他发行版是否可以提供它? And is compiling with package management in mind a big win? 并且考虑到打包管理方面的重大胜利吗?

Thanks in advance. 提前致谢。

The value of CONCURRENCY_LEVEL is just passed to the -j option of make . CONCURRENCY_LEVEL的值只是传递给make-j选项。 There is nothing special about Debian's kernel build process here; 这里Debian的内核构建过程没有什么特别的。 the upstream kernel source code has supported this for many years. 上游内核源代码对此提供了多年支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM