You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于systemd中CPUQuota限制基准(单核心/整机)的技术咨询

关于systemd中CPUQuota限制基准(单核心/整机)的技术咨询

为了防止有问题的网页拖垮我的系统,我给Flatpak版Firefox设置了CPUQuota 95%、MemoryHigh 2G、MemoryMax 3G的限制,配置文件内容如下:

$ cat .config/systemd/user/app-flatpak-org.mozilla.firefox-.scope.d/override.conf 
[Scope]
CPUQuota=95%
MemoryHigh=2G
MemoryMax=3G

但是设置完之后我发现浏览器变得很卡。回头去看systemd资源控制的文档,发现关于CPUQuota的应用方式描述有点模糊,文档里是这么说的:

The percentage specifies how much CPU time the unit shall get at maximum, relative to the total CPU time available on one CPU

我搞不懂这里的“单个CPU可用的总CPU时间”到底是指单个核心的CPU时间,还是指**整机所有处理器(通常是多核心)**的总CPU时间。

备注:内容来源于stack exchange,提问作者Mek101

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 11:34:40