Hi Max,

As a starting point, try to run pypy with the following environment variable:

     PYPYLOG=gc-collect:-

Then look interactively if it seems that the pauses correspond to
blocks {gc-collect ... gc-collect} in the output.  I would say that
1500ms looks on the high end of GC times, but is not completely
impossible.

You can also direct the output to a file with

    PYPYLOG=gc-collect:logfile

Then you need the tool "rpython/tool/logparser.py" from the PyPy
repository to make sense of the hexadecimal numbers (they are
timestamps) and display the result in a nice graph.  You can also try
it with more information, like:

    PYPYLOG=:logfile pypy some_command.py
    python logparser.py draw-time logfile out.png --mainwidth 8000


A bientôt,

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

Reply via email to