Memory usage of an 'empty' python interpreter

John Machin sjmachin at lexicon.net
Wed Aug 16 04:28:46 EDT 2006


Ant wrote:
> 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.

Where did you get that from? With Python 2.4.3, on my machine (Win XP
SP2):

C:\junk>dir \python24\python*
[snip]
29/03/2006  05:35 PM             4,608 python.exe
29/03/2006  05:35 PM         1,871,872 python24.dll
29/03/2006  05:35 PM             5,120 pythonw.exe




More information about the Python-list mailing list