Mark Dickinson <dicki...@gmail.com> added the comment:

The list you're attempting to create needs around 41GB of RAM (28 bytes for the 
actual object, rounded up to 32 bytes per object for alignment reasons, plus 8 
bytes for each pointer in the list). Assuming you don't have that much memory 
on your system, it'll likely start swapping at that point.

> Should I submit this as a bug to the kernel project then?

That's up to you. The effect is well known and well documented - see for 
example https://bugzilla.redhat.com/show_bug.cgi?id=1577528 .

You may want to consider using `ulimit` to limit the amount of RAM that the 
Python process can use.

In any case, closing here, since this isn't a Python bug.

----------
nosy: +mark.dickinson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to