Replies: 4 comments
-
I guess it is related to this: microsoft/onnxruntime#11627 (comment) |
Beta Was this translation helpful? Give feedback.
-
The "actual utilized memory" can mean different things. Instead of guessing what you meant by this, I think we should instead focus on what both of the metrics Memray reports mean:
In your case, we know for sure that a significant chunk of the memory reported in Heap size is swapped out or unused because the value reported is higher than the available RAM. See more about the difference between Resident Set Size and Virtual Memory Size here: https://softwareperformancenotes.github.io/rssvsz |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed reply! Appreciated! |
Beta Was this translation helpful? Give feedback.
-
To wrap this up, we now have some documentation on how to understand both heap memory and RSS memory. It helps to explain why it's possible for heap memory usage to be either higher or lower than the resident set size, and hopefully helps people understand how to interpret these two different ways of measuring the process's memory usage. |
Beta Was this translation helpful? Give feedback.
-
I am running an inference with a neural network model in ONNX format on CPU. I am on Mac with 32GB memory. The report shows peak heap size 53.7 GB. I am not getting any OOM errors. Do I understand correctly that the actual utilized memory is the resident size? What may be the reason with such huge difference between heap and resident with ONNX runtime?
Beta Was this translation helpful? Give feedback.
All reactions