LoginSignup
2
2

More than 5 years have passed since last update.

pythonからたくさんプロセスを起動したい

Last updated at Posted at 2016-02-02

プロセスを起動するのは、
os.system(cmd)
でも
subprocess.check_output(cmd)
でもいいのですが。

sshで別のサーバにたくさんジョブを投げると、
Write failed: Broken pipe
とか
fork: Resource temporarily unavailable
とか
shell request failed on channel 0
とかのエラーが出てきて困りました。

ulimitでプロセス数の上限を大きくしたり、
.ssh/configでサーバ応答を待つ時間を長くしたり、
いろいろ試行錯誤中。

解決したら更新します。

http://d.hatena.ne.jp/usata3/20061110/p2
http://blog.ybbo.net/2013/06/19/mac%E3%81%AEssh%E3%81%A7%E3%80%8Cwrite-failed-broken-pipe%E3%80%8D%E3%81%8C%E5%87%BA%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%B3%95/

2
2
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
2
2