Translated message

A translation of this page exists in English.

如何使用 systemd 配置服务,使其只在某个特定的 CPU 上运行?

Solution In Progress - Updated -

Issue

  • 需要在 systemd 中限制某些进程只能在特定的 CPU(或一组 CPU)上运行
  • 希望将进程固定到某个 CPU 上以减少抖动

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content