如何在joblib失败后释放shm内存

时间:2016-03-25 13:21:45

标签: python-2.7 scikit-learn shared-memory joblib

我已经启动了使用joblib(sklearn GridSearchCV)的python任务,并且我停止了操作(Ctrl-C),之后它停止了

^CProcess PoolWorker-42:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
task = get()
  File "/home/project/.virtualenvs/tripcase/local/lib/python2.7/site-packages/sklearn/externals/joblib/pool.py", line 360, in get
    return recv()
KeyboardInterrupt
^CProcess PoolWorker-43:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
    task = get()
  File "/home/project/.virtualenvs/tripcase/local/lib/python2.7/site-packages/sklearn/externals/joblib/pool.py", line 360, in get
    return recv()
KeyboardInterrupt
^CProcess PoolWorker-44:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
    task = get()
  File "/home/project/.virtualenvs/tripcase/local/lib/python2.7/site-packages/sklearn/externals/joblib/pool.py", line 360, in get
    return recv()
KeyboardInterrupt

最后我杀了父进程,现在我被困在/ dev / shm中的文件 如何安全地移除它们?

0 个答案:

没有答案