-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation about the metrics. #5
Comments
Thanks, glad to hear it helped.
Thanks for bringing this to my attention. Most of the info about the metrics can be found in the timemory docs (I'll update the docs to link to this sometime soon). However, the [current] docs on virtual memory don't provide anything useful. You can find a more detailed description about virtual memory here but here is the relevant part:
So, effectively, the virtual memory metric will be the max of how much memory was offloaded to disk (i.e. swap). The tendency to use swap is determined by the OS (via the swappiness setting). The "virtual memory" metric is calculated by sampling the value reported in the
|
One quick caveat: the peak RSS metric is provided by the OS and not sampled so it will always be accurate. The virtual memory could theoretically be inaccurate if the virtual memory usage surged and then decreased in-between the samples (however, in practice, this is quite unlikely to happen since the OS usually doesn't/can't move data in/out of swap this quickly). |
Thanks for your fast reply and clear and detailed explanation, I really appreciate it. That exactly fits my use-case. I am hoping I find the time and can split my code i am currently building in an appropriate way, to open source it, or parts at least. Its hard as it is deeply integrated into our CI. But maybe I can do a little write-up on how we use your tool in our toolchain if you are interested. It works great on our project. 👍 |
Sure. Could probably go in a Wiki page or something. FWIW, here are some examples of how it is used elsewhere:
Most CI systems (Travis, CircleCI, Appveyor, etc.) have a concepts of artifacts so, if you aren't already doing something similar, what I did with Jenkins could be similarly applied to most CI runners. |
Hello jrmadsen,
first I want to say: really really great project! I found amazing use for it in optimizing or CI builds. Sadly I can not find any documentation about what the metrics represent exactly. Whats the difference between "virtual memory" and "peak_rss"?
one of my logs created by the current master branch. If would have expected virtual_memory to be higher than peak_rss if this would be the VSZ, so its especially confusing to me.
much greetings!
Jonas
The text was updated successfully, but these errors were encountered: