{"description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300csystemd\u3092\u5229\u7528\u3057\u3066CPU\u4f7f\u7528\u7387\u3092\u5236\u9650\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u3084\u308a\u65b9 1. \u8ca0\u8377\u30c6\u30b9\u30c8\u7528\u306bstress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b apt install stress 2. systemd \u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b /etc/systemd/system/StressTest.service [Unit] Description=StressTest [Service] ExecStart=stress --cpu 4 --timeout 3s # 1\u30b3\u30a2\u7d0480%\u307e\u3067\u306b\u5236\u9650\u30024\u30b3\u30a2\u3042\u308b\u5834\u5408\u306f4 * 80% = 320%\u3092\u6307\u5b9a\u3059\u308b CPUQuota=320% [In\u2026","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20210326/20210326154158.png","url":"https://kagasu.hatenablog.com/entry/2021/03/26/154254","version":"1.0","blog_title":"\u5099\u5fd8\u9332","height":"190","width":"100%","author_name":"kagasu","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2021%2F03%2F26%2F154254\" title=\"systemd\u3092\u5229\u7528\u3057\u3066CPU\u4f7f\u7528\u7387\u3092\u5236\u9650\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Linux"],"provider_url":"https://hatena.blog","published":"2021-03-26 15:42:54","author_url":"https://blog.hatena.ne.jp/kagasu/","provider_name":"Hatena Blog","blog_url":"https://kagasu.hatenablog.com/","type":"rich","title":"systemd\u3092\u5229\u7528\u3057\u3066CPU\u4f7f\u7528\u7387\u3092\u5236\u9650\u3059\u308b\u65b9\u6cd5"}