LoginSignup
0
0

More than 3 years have passed since last update.

Linux の /proc/xxxxx 配下メモ【vol.1】

Posted at

プロセスが終わらない、などのときによく見ていて、いくつか調べたので自分用にメモを。
この辺をぱっと見で理解できるようになれば、いろいろな調査が広がりそうと思います。

fd

参照しているファイルなどの一覧。
パスが確認できるのは純粋なファイルのみで、その他 pipe や socket もここに表示される。
pipe や socket の内訳をみる場合には lsof と組み合わせれば便利。

wchan

そのプロセスが待っているチャンネル。
業務でいうと NFS に直書き込みしていて処理が遅くなることがあったのだけど、その場合だいたい /proc/xxxxx/wchan を参照すると nfs と表示されていたので、わかりやすい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0