如何获取CFS带宽控制linux补丁?
我希望使用 CFS 带宽功能来设置进程的 cpu 使用率的硬限制 (http://lwn.net/Articles/452584/)。我可以看到他们有一个针对现有内核的补丁,可以启用此选项。但我不知道从哪里可以获得这个补丁。有人可以帮助我了解如何在 Linux 中使用此类补丁吗?
I am looking to use CFS bandwidth capability to set a hardlimit of the cpu usage of a process (http://lwn.net/Articles/452584/). I can see they have a patch for the existing kernel which can enable this option. But I have no idea where to get this patch . Can someone help me understand how to use such patches in linux.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许首先需要进行一些一般性的澄清 - 尽管使用了源代码控制,许多内核黑客仍然更喜欢在邮件列表上发布补丁的旧方法,并通过将补丁列表与公共邮件线程关联来执行同行评审。在 git 之前创建的约定中,开发新功能的人将工作分成一系列补丁(可能具有依赖性)。每个补丁都发布在不同的消息中。按照惯例,宣布一系列补丁的电子邮件以 [00/ 为前缀,这就是为什么您在第一封电子邮件中看不到任何补丁的原因。不幸的是,这种方法对于新手来说并不是很清楚。
有几个相当旧的文档介绍了如何在电子邮件中使用补丁。请注意,该补丁不是标准的 MIME 附件,而只是将文本串联到纯文本电子邮件中。
lkml.org 发布“CFS 带宽控制 v7.2”帖子的链接位于此处< /a>.从那里,您可以访问该补丁的 18 个部分中的每一个部分,每个部分都位于该线程的单独电子邮件中。您可以使用线程下方左侧显示的“获取差异”来下载 18 个差异中的每一个。
为了应用您下载的补丁,请阅读有关使用补丁的信息。
Perhaps some general clarifications first - despite the use of source control, many kernel hackers still prefer the old way of posting patches on the mailing list and perform peer review through the association of a list of patches with a public mailing thread. In the convention that was created prior to git, a person who works on a new feature separates the work into a series of patches (which might have dependencies). Each patch is posted in a different message. By convention, the E-Mail that is announcing the series of patches is prefixed with [00/, which is why you don't see any patches in the first E-Mail. Unfortunately, this approach is not very clear to the newbies.
There are several, rather old documentation that tells how to work with patches in E-Mail. Note that the patch is not a standard MIME-attachment, but just a concatenation of text into a plain-text E-Mail.
The lkml.org link to the post that announces 'CFS Bandwidth Control v7.2' is here. From there, you have access to each of the 18 parts of the patch, each in a separate E-Mail in that thread. You can use 'Get diff' that appears on the left side below the thread in order to download each of the 18 diffs.
In order to apply the patches that you download, please read about working with patches.