Hi Pim, On 18 March 2016 at 15:08, Pim van der Eijk (Lists) <li...@sonnenglanz.net> wrote: >>> - Memory use continues to grow up to over 80% at which time where my >>> laptop >>> starts swapping, whereas with CPython usage is never more than 4%. >> >> This is more annoying. Can you give us a way to reproduce this? > > It already happens with the script I attached to the original issue, which > you already have: > https://bitbucket.org/pypy/pypy/issues/2260/pypy-500-dumps-core-with-lxml-360
Ok, partially reproduced. With CPython it grows continously too, but only up to 1.2GB and then it finishes. With PyPy it grows faster up to 22GB. If I add some "gc.collect()" executed every few seconds, then PyPy only grows up to 1.7GB. I added "add_memory_pressure=True" to some chosen mallocs inside cpyext, and it seems to be enough to fix the problem. Now PyPy grows up to 1.7GB even without any gc.collect(). Yay! (changeset 9137853fd0ec, grafted to release-5.x too) A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev