
What about PyPy vs plain CPython ? Please see : http://pushingtheweb.com/2010/06/python-and-tcmalloc/ Is it possible for the maintainers to provide - PyPy - PyPy with tcmalloc so end-users can - give a try - do some tests in their different configs - provide a feedback here on the mailing list ? ciao, Massimo

Hi Massimo, On Sat, Apr 30, 2011 at 5:38 PM, Massimo Sala <massimo.sala.71@gmail.com> wrote:
Feel free to try. You need to get pypy, translate it (cd pypy/translator/goal; ./translate.py -Ojit), and you get the C sources in /tmp/usession-yourname/testing_1. Then you can try to add a #define to rename all malloc() to tcmalloc(), or however it is called. PyPy does not use malloc() to allocate its own objects, but it still uses malloc() to get arenas, so in this point of view it is similar to CPython. A bientôt, Armin.

On Sat, Apr 30, 2011 at 05:38:19PM +0200, Massimo Sala wrote:
if i remember correctly the memory fragmentation was noted by the dropbox guys in http://pycon.blip.tv/file/4878722/ if i also remember correctly one of the last slides is a shout out to pypy indicating it doesn't have this problem if the video is incorrect let me know and i will dig through my archives for the correct video may have a quick peek at this anyway

Hi Massimo, On Sat, Apr 30, 2011 at 5:38 PM, Massimo Sala <massimo.sala.71@gmail.com> wrote:
Feel free to try. You need to get pypy, translate it (cd pypy/translator/goal; ./translate.py -Ojit), and you get the C sources in /tmp/usession-yourname/testing_1. Then you can try to add a #define to rename all malloc() to tcmalloc(), or however it is called. PyPy does not use malloc() to allocate its own objects, but it still uses malloc() to get arenas, so in this point of view it is similar to CPython. A bientôt, Armin.

On Sat, Apr 30, 2011 at 05:38:19PM +0200, Massimo Sala wrote:
if i remember correctly the memory fragmentation was noted by the dropbox guys in http://pycon.blip.tv/file/4878722/ if i also remember correctly one of the last slides is a shout out to pypy indicating it doesn't have this problem if the video is incorrect let me know and i will dig through my archives for the correct video may have a quick peek at this anyway
participants (3)
-
Armin Rigo
-
Massimo Sala
-
pypy@pocketnix.org