关于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
相关产品推荐
相关产品推荐

