[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: PC locks up with list operations
From:       Gregory Ewing <greg.ewing () canterbury ! ac ! nz>
Date:       2011-08-31 23:31:26
Message-ID: 9c7uihF6feU1 () mid ! individual ! net
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic