Hi Matheus,

On 3 February 2014 03:55, Matheus Salvia <matheus2...@gmail.com> wrote:
> When running my app under CPython, it uses about 1GB of memory, but when
> running with pypy it goes up to almost 3GB.

This is a question that doesn't have a single answer.  You need to
give us a lot more information about what your application does,
before we can start proposing ideas about why there is such a
difference in your case.  In our own experience, the memory usage is
usually very roughly around the same as CPython (a factor less than 2
in one way or another).

As a first (likely completely random) guess, you are starting a very
large number of processes, each of which consumes 60MB instead of 20MB
in CPython.  If I'm correct, then there is not much we can do; it's
known that PyPy's baseline memory usage is higher than CPython's, due
to the JIT which ends up storing a few dozens of MBs in any process.


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to