Replies: 12 comments 1 reply
-
I maintain a large Python application at Quora. It runs a couple of pre-warming tasks at startup to improve performance at runtime. I used memray to figure out which parts of the warmup sequence were using memory. Fixing a few of the bottlenecks helped us achieve a significant cost reduction. |
Beta Was this translation helpful? Give feedback.
-
I work on a Python C extension that is designed for performance. I successfully used memray to identify memory leaks (refcount leaks) of Python objects created in the extension module whilst developing it. We're using memray for Quality Assurance testing on this library that's being used in a hot-loop executed billions of times a day. |
Beta Was this translation helpful? Give feedback.
-
I work on a data pipeline system (akin to Prefect, Dagster, Airflow, etc) and out of the blue, the system worker started crashing due to OOM errors. While we were able to identify that it was a memory leak on the LZ4 part of the system, we couldn't track down whether it was on the python-lz4 C bindings or the actual LZ4 library. |
Beta Was this translation helpful? Give feedback.
-
I lead the development of several open-source scientific software projects for computational systems biology. We recently used memray to profile the memory usage of our Gilda software and successfully identified where it can be streamlined. I found the live monitoring as well as the HTML-based visualization features of memray particularly useful. |
Beta Was this translation helpful? Give feedback.
-
I work on the development of HyMD, a scientific software for molecular dynamics simulations using a hybrid particle-field approach. Using |
Beta Was this translation helpful? Give feedback.
-
I co-maintain urllib3, the package with the most downloads on PyPI. Anything we do has a big impact, for better or for worse. As part of urllib3 2.0, we wanted to fix how read() works with compressed data to be more intuitive. This required adding a buffer, but our first attempt doubled the memory usage. Armed with memray and its intuitive flamegraphs, I managed to come up with a solution that used the same memory as before. Without that reduction we could not have shipped this improvement. And with pytest-memray we're now confident that there won't be any regressions! |
Beta Was this translation helpful? Give feedback.
-
I was handed over a massive natural language processing pipeline that was consuming a whopping 250GB of RAM!! I looked at the models. Quite a few of them but the largest one was about 1GB. I tried Memray is fast, beautiful and accurate. I wish I could do a t-shirt with a snapshot of |
Beta Was this translation helpful? Give feedback.
-
I've described at widgetti/solara#172 how I used memray to find the area where a memory leak was in Solara and/or Reacton, found the memory leak (global reference) using objgraph and then confirm the fix using memray again. |
Beta Was this translation helpful? Give feedback.
-
Memray played a huge role in our effort to reduce memory footprint at @frappe. I've used many different memory profilers in past but none come close in terms of usability and simplicity. We were able to slash anywhere from 10-35% memory usage (depending on the configs) and that translates to gigabytes of savings across servers that serve 6k+ sites 😄
references: |
Beta Was this translation helpful? Give feedback.
-
Memray was instrumental in pinpointing a source of a tricky memory leak in Apache Beam that I was investigating: apache/beam#28246. I tried several tools and Memray is by far the fastest and the most usable tool I tried. I haven't used memray before and originally tried |
Beta Was this translation helpful? Give feedback.
-
I wrote an article about Memray in Japanese last year. Title is "メモリプロファイラ「Memray」の解説", it is "Explanation of the memory profiler “Memray". https://gihyo.jp/article/2023/06/monthly-python-2306 Then, I gave a talk it at PyCon APAC 2023 in Japanese. |
Beta Was this translation helpful? Give feedback.
-
I work on developing services which some of them perform AI model inference. We noticed a memory leak issue in one service and detected 2 reasons for it. Although we fixed one, tracing the other issue was quite difficult. Memray helped us to identify the bug accurately by providing nice reports. |
Beta Was this translation helpful? Give feedback.
-
If you have used
memray
and found it helpful, please leave a comment below with your success story. We would love to hear from you and know that our efforts are making a difference. Maybe you usedmemray
to detect a memory leak in a C extension or to detect how memory was being used in your large application. If so, you can tell us how didmemray
help!Knowing how we managed to help your use case will help us track trends and target areas for improvement, prioritize new features and development and identify potential bugs or areas of confusion.
Thank you for taking the time to provide feedback! ❤️
Beta Was this translation helpful? Give feedback.
All reactions