Steven D'Aprano wrote:
As far as I know, ulimit ("user limit") won't help. It can limit the amount of RAM available to a process, but that just makes the process start using virtual memory more quickly.
ulimit -v is supposed to set the maximum amount of virtual memory the process can use.
It can also limit the amount of virtual memory used by the shell, but not of other processes.
That doesn't sound right. Not sure about Linux, but the man page for sh on Darwin says: Provides control over the resources available to the shell and to processes started by it, on systems that allow such control. The Python process should also be able to set its own limits using resource.setrlimit(). -- Greg -- http://mail.python.org/mailman/listinfo/python-list