阅读背景:

为什么导入numpy会在Linux上添加1 GB的虚拟内存?

来源:互联网 

I have to run python in a resource constrained environment with only a few GB of virtual memory. Worse yet, I have to fork children from my main process as part of application design, all of which receive a copy-on-write allocation of this same amount of virtual memory on fork. The result is that after forking only 1 - 2 children, the process group hits the ceiling and shuts everything down. Finally, I am not able to remove numpy as a dependency; it is a strict requirement.I have to run python in a resource constrained




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: