[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    [pypy-dev] Re: Performance tuning, GC logs
From:       matti picus <matti.picus () gmail ! com>
Date:       2022-08-29 11:36:58
Message-ID: CAO8bCgiGh5MvvQHcWd2fTD5kZL9Qzc0kgnQLq+tHDvgKN3ziCA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sat, Aug 27, 2022 at 12:42 AM AJ R <sjeik.appie@gmail.com> wrote:

> Hi,
>
> What's the recommended way to improve my program's performance, in
> particular wrt garbage collection? I see jitviewer and vmprof, but I'm not
> sure if either is still maintained. I've noticed speed improvements after
> playing with the gc nursery size, but that was trial-and-error.
>
> Thanks.
>
> Albert-Jan
>

You may be interested in this blog post [0] around improving gc latency,
with some information about how to benchmark that particular problem. There
is also the gc.get_stats() function might help you figure out what is going
on. For more help we would need to know what exactly you mean by "speed
improvements" and where you see bottlenecks in your program.

Matti

[0]
https://www.pypy.org/posts/2019/01/pypy-for-low-latency-systems-613165393301401965.html
[1] https://doc.pypy.org/en/latest/gc_info.html

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">On Sat, Aug 27, 2022 at 12:42 AM AJ R &lt;<a \
href="mailto:sjeik.appie@gmail.com">sjeik.appie@gmail.com</a>&gt; \
wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div dir="auto"><br></div><div \
dir="auto">What&#39;s the recommended way to improve my program&#39;s performance, in \
particular wrt garbage collection? I see jitviewer and vmprof, but I&#39;m not sure \
if either is still maintained. I&#39;ve noticed speed improvements after playing with \
the gc nursery size, but that was trial-and-error.</div><div \
dir="auto"><br></div><div dir="auto">Thanks.</div><div dir="auto"><br></div><div \
dir="auto">Albert-Jan</div></div></blockquote><div><br></div><div>You may be \
interested in this blog post [0] around improving gc latency, with some information \
about how to benchmark that particular problem. There is also the gc.get_stats() \
function might help you figure out what is going on. For more help we would need to \
know what exactly you mean by &quot;speed improvements&quot; and where you see \
bottlenecks in your program.<br><br></div><div>Matti</div><div><br></div><div>[0] <a \
href="https://www.pypy.org/posts/2019/01/pypy-for-low-latency-systems-6131653933014019 \
65.html">https://www.pypy.org/posts/2019/01/pypy-for-low-latency-systems-613165393301401965.html</a></div><div>[1] \
<a href="https://doc.pypy.org/en/latest/gc_info.html">https://doc.pypy.org/en/latest/gc_info.html</a></div></div></div>




_______________________________________________
pypy-dev mailing list -- pypy-dev@python.org
To unsubscribe send an email to pypy-dev-leave@python.org
https://mail.python.org/mailman3/lists/pypy-dev.python.org/
Member address: pypy-dev@progressive-comp.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic