如何获取CFS带宽控制linux补丁?

发布于 2024-12-13 16:00:40 字数 147 浏览 1 评论 0原文

我希望使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许仙没带伞 2024-12-20 16:00:40

也许首先需要进行一些一般性的澄清 - 尽管使用了源代码控制,许多内核黑客仍然更喜欢在邮件列表上发布补丁的旧方法,并通过将补丁列表与公共邮件线程关联来执行同行评审。在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文