在Python程序中,我使用np.memmaps
,它利用/tmp
目录来处理大量数组。我确保每次使用此代码时都/tmp
运行以定期清除。rm -rf /tmp/*
然而最近,我的代码停止工作并抛出了“总线错误(核心转储)”。
现在,即使在终端中使用自动完成也会导致:bash: cannot create temp file for here-document: No space left on device
。
我认为打字df -h
给了我罪魁祸首:
tmpfs 32G 32G 0 100% /tmp
Run Code Online (Sandbox Code Playgroud)
然而,跑步sudo rm -rf /tmp/*
只会让我回到
tmpfs 32G 30G 1,9G 94% /tmp
Run Code Online (Sandbox Code Playgroud)
知道发生了什么事以及如何解决它吗?