[issue19817] tracemalloc add a memory limit feature

2015-10-02 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2015-04-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2013-12-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 45442f2a2494 by Victor Stinner in branch 'default':
Issue #19817: Fix print_exception(), clear the exception on error
http://hg.python.org/cpython/rev/45442f2a2494

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2013-12-03 Thread STINNER Victor

STINNER Victor added the comment:

This feature cannot be used without a reliable PyErr_NoMemory(): I add issue 
#19835 as a dependency.

--
dependencies: +Add a MemoryError singleton to fix an unlimited loop when the 
memory is exhausted

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2013-12-03 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch.

--
Added file: http://bugs.python.org/file32958/tracemalloc_memory_limit-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2013-12-03 Thread STINNER Victor

STINNER Victor added the comment:

test_limit.patch: Patch to test the memory_limit on the Python test suite. 
tracemalloc_memory_limit-2.patch and unittest_leak.patch (of issue #19880) are 
required to test it.

--
Added file: http://bugs.python.org/file32959/test_limit.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19817] tracemalloc add a memory limit feature

2013-11-27 Thread STINNER Victor

New submission from STINNER Victor:

It would be nice to add a memory_limit feature to the tracemalloc to make 
memory allocation fails if it would make the traced memory greater than the 
limit.

See also the pyfailmalloc project which is similar but different:
https://bitbucket.org/haypo/pyfailmalloc

pyfailmalloc doesn't count allocated bytes, it schedules an error in N 
allocations where N is a random number. And pyfailmalloc only schedules one 
error, whereas I propose to make all memory allocations fails until the limit 
is respected.

So if you only 0 bytes free (according to the limit), all memory allocations 
fail until some bytes are freed.

Python currently behaves badly under very low memory condition.

See also the issue #19437.

--
files: tracemalloc_memory_limit.patch
keywords: patch
messages: 204605
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: tracemalloc add a memory limit feature
versions: Python 3.5
Added file: http://bugs.python.org/file32873/tracemalloc_memory_limit.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com