Python hits the spot

Andrew Koenig ark at
Mon Jun 24 16:04:03 CEST 2002

Tim> If it is, it's a serious misfeature of Linux's overcommitment
Tim> policies.  Python does a malloc() sufficient for 50*1000*1000
Tim> list elements at the start (about 200Mb), malloc doesn't return
Tim> NULL, and Python believes it can use the memory.  What would you
Tim> like it to do instead?

Don't some implementations of malloc offer a way to ask the operating
system to commit to the memory being available when you allocate it?
If so, I can imagine testing for that facility at config time and
using it if available.

Andrew Koenig, ark at,

More information about the Python-list mailing list