[Python-ideas] Memory limits [was Re: Membership of infinite iterators]
stefan at bytereef.org
Wed Oct 18 08:51:37 EDT 2017
On Wed, Oct 18, 2017 at 10:43:57PM +1000, Nick Coghlan wrote:
> Per-process memory quotas *can* help avoid this, but enforcing them
> requires that every process run in a resource controlled sandbox. Hence,
> it's not a coincidence that mobile operating systems and container-based
> server environments already work that way, and the improved ability to cope
> with misbehaving applications is part of why desktop operating systems
> would like to follow the lead of their mobile and server counterparts :)
Does this also fall under the sandbox definition?
$ softlimit -m 1000000000 python3
Python 3.7.0a1+ (heads/master:bdaeb7d237, Oct 16 2017, 18:54:55)
[GCC 4.8.5] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>  * 10000000000000
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
People who are worried could make a python3 alias or use Ctrl-\.
More information about the Python-ideas