inotify ウォッチとは何か?
inotify ウォッチは、監視対象のファイルやディレクトリが変更、作成、または削除されたときに通知を受け取るために、プログラムが Linux の inotify 機能に登録するエントリです。プログラムが変更を検出するために polling するのではなく、kernel がイベントを配信し、プログラムがそれを読み取ります。ユーザーごとのウォッチ数は、システムの上限によって制限されています。
なぜ重要なのか
CI 上の開発サーバーやテストの watcher は inotify を使用しており、大きなリポジトリではウォッチの上限を使い切って起動に失敗することがあります。上限を理解しておくと、それらの file-watcher ツールが時折投げるウォッチ数のエラーが分かります。
関連ガイド
What Is the Epoll Interface?Epoll is a Linux mechanism for efficiently watching many file descriptors at once and being told which are re…
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 Select System Call?The select system call lets a program wait until any of a set of file descriptors becomes ready for IO, or un…