[Stackless] Memory footprint for tasklets and channels

Bob Ippolito bob at redivi.com
Sat Mar 18 00:07:52 CET 2006

On Mar 17, 2006, at 2:10 PM, Michael Sparks wrote:

> On Friday 17 March 2006 21:19, Bob Ippolito wrote:
>>  then instantiate a few million generators...
> ... not such a wise idea unless you have around 2GB of ram:

Clearly you need lots of RAM if you want lots of objects.  Four  
million generators aren't going to fit in a gig.  A million  
generators plus the list to store them all is probably going to take  
up about 500M, but it really depends on the platform and how malloc  
works.  Probably roughly twice as much on 64 bit.  It very much  
depends on platform.

For example, here's the Python 2.4.2 process with a million trivial  
generators on three different 32 bit platforms:

384M VSZ 381M RSZ - Linux 2.6.12 x86
443M VSZ 389M RSZ - Mac OS X 10.4.5 PPC
532M VSZ 531M RSZ - FreeBSD 6.0 x86


Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list