TGTGInsighttelegram intelligenceLIVE / telegram public index
Post content
Post content
在测试 cgroup 对内存和 cpu 限制的时候想让进程分别消耗内存和 cpu, 查了一下非常简单: 1. cpu consuming: yes > /dev/null &, 要几个核跑满就运行几个 2. memory consuming: tail /dev/zero
在测试 cgroup 对内存和 cpu 限制的时候想让进程分别消耗内存和 cpu, 查了一下非常简单: 1. cpu consuming: yes > /dev/null &, 要几个核跑满就运行几个 2. memory consuming: tail /dev/zero