Re: [Python-Dev] tracemalloc: add an optional memory limit

2013-12-09 Thread Antoine Pitrou
On Mon, 9 Dec 2013 10:28:17 +0100 Victor Stinner wrote: > Hi, > > 2013/12/9 Serhiy Storchaka : > > But tracemalloc doesn't count memory allocated besides Python allocators > > (e.g. memory for executable, static variables and stack, memory allocated by > > extensions and C lib, unallocated but no

Re: [Python-Dev] tracemalloc: add an optional memory limit

2013-12-09 Thread Victor Stinner
Hi, 2013/12/9 Serhiy Storchaka : > But tracemalloc doesn't count memory allocated besides Python allocators > (e.g. memory for executable, static variables and stack, memory allocated by > extensions and C lib, unallocated but not returned to OS dynamical memory). > When you want investigate how y

Re: [Python-Dev] tracemalloc: add an optional memory limit

2013-12-09 Thread Serhiy Storchaka
09.12.13 03:56, Victor Stinner написав(ла): On Linux, it's possible to limit globally the "address space" of a process, but this value is not convinient. For example, the address space includes shared memory and read-only memory mappings of files, whereas this memory should not reduce the memory

[Python-Dev] tracemalloc: add an optional memory limit

2013-12-08 Thread Victor Stinner
Hi, The PEP 454 (tracemalloc module) has been implemented in Python 3.4 beta 1. Previously, I also wrote a pyfailmalloc project to test how Python behaves on memory allocation failures. I found various bugs using this tool. I propose to add an optional memory limit feature to the tracemallocmodul