nice 値とは何か?
nice 値とは、プロセスのスケジューリング優先度に影響を与える数値で、より正の値であるほど、競合が生じたときに CPU をより少なく要求してプロセスを「より nice」にします。スケジューラはこれを用いて、実行可能な各プロセスがどのくらいの頻度で選ばれるかを重み付けします。niceness を下げると(通常は権限が必要です)、プロセスはより積極的になります。
なぜ重要か
重いバックグラウンドタスクを高い niceness で実行すると、共有 runner 上でフォアグラウンドの build を枯渇させずに済みます。これは 1 台のマシンで競合するワークロードのバランスを取るためのシンプルなレバーです。
関連ガイド
What Is Cgroup Resource Control?Cgroup resource control uses Linux control groups to limit and account for the CPU, memory, and IO that a gro…
What Is a Ulimit Soft Limit?A ulimit soft limit is the currently enforced ceiling on a process resource, such as open files, that a proce…
What Is Job Control?Job control is the shell feature that lets you start, suspend, resume, and move commands between the foregrou…