Memory usage of an 'empty' python interpreter

Ant antroy at gmail.com
Wed Aug 16 04:11:53 EDT 2006


neokosmos at gmail.com wrote:
> I was wondering what the approximate amount of memory needed to load a
> Python interpreter (only, no objects, no scripts, no nothing else) in a
> Linux 2.6 environment.  According to ps, it appears to be 3312 bytes,
> which seems absurdly low to me.  However, when I check the size of my
> Python executable, it looks like it is only about 5600 bytes in size,
> so maybe this is reasonable?

Are you sure ps is reporting in bytes not KB? The bare interpreter in
Windows is 3368KB.
On my Gentoo server ps reports 2788KB for the bare interpreter.




More information about the Python-list mailing list