0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ストレージが肥大化した際にチェックすべきこと

Last updated at Posted at 2023-09-29

某大学のスパコンでそこまで使っていないはずなのにストレージが満タンだったので、いろいろとキャッシュクリアの方法を探ってみました。

1. condaのキャッシュクリア方法

$conda clean --all

このコマンドを打てばよし。
そのあと4種類くらいのキャッシュに対して消していいか聞かれるのでy(yes)を入力すればやってくれます。

2. pipのキャッシュクリア方法

$pip cache purge

pipのバージョンが20.1以上ならこのコマンドを打てばやってくれるらしいけど、残念ながら私の環境はギリ19でした・・・

$pip --version
pip 19.1.1 from /usr/lib/python3.4/site-packages/pip (python 3.4)

この場合はホームディレクトリに移って手動で削除する方法がいいらしいです

$rm -r ~/.cache/pip

ちなみに筆者はこれで10GB以上も空きました...定期的なキャッシュクリアは大事ですね

3.Singularityのキャッシュクリア方法

以前Singularityの環境構築にチャレンジしたことがあった(難しすぎて断念)のですが、確認したところSingularityのキャッシュも5GBほどありました。
多分もう使わないと思うのでこれも消しておきました。

$module load singularity
$singularity cache clean
$module purge

参考文献

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?