ulimit のソフトリミットとは?
ulimit のソフトリミットは、オープンファイル数、スタックサイズ、プロセス数といったプロセスごとのリソースに対して実際に課される上限です。プロセスはこれを自由に下げることも、対応するハードリミットまで引き上げることもできます。ソフトリミットを超えると、too many open files のようなエラーが発生します。
なぜ重要か
オープンファイルのソフトリミットが低すぎる runner では、一度に多くのディスクリプタを開く build が失敗します。ハードリミットが許す範囲でソフトリミットを引き上げることは、CI におけるリソース枯渇による失敗の一般的な解決策です。
関連ガイド
What Is a Ulimit Hard Limit?A ulimit hard limit is the absolute ceiling for a resource that bounds the soft limit; only a privileged proc…
What Is a File Descriptor Table?A file descriptor table is the per-process list that maps small integer descriptors to the open files, socket…
What Is the OOM Killer?The OOM killer is the Linux mechanism that terminates a process to reclaim memory when the system runs critic…