如何使用 systemd 配置服务,使其只在某个特定的 CPU 上运行?
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.