Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

1 KiB is too low for Python. The interpreter itself needs more than 10 MiB to 
start, and more if it imports some modules. I suppose that the limit set affect 
only new requests for memory from OS, but Python already have some free memory 
reserved in the memory pool.

With larger limit you can get more reliable data. Note that get_traced_memory() 
counts only dynamically allocated memory, it does not count static memory, 
stack memory and memory reserved for the memory pool.

----------
nosy: +serhiy.storchaka, vstinner

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42502>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to