-
Notifications
You must be signed in to change notification settings - Fork 102
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
Feature to change default metrics for memory calculation from RSS to PSS #130
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thanks @nishikantparmariam for the suggestion 👍
Looks like a similar change landed in Maybe it would make sense to return While keeping
|
This sounds good! Just a clarification, I am guessing with the new change, by default the frontend will also use If not, we can make this configurable through settings by adding a boolean say |
Right, and this would be handled on the server directly similar to ipython/ipykernel#948. |
Actually after looking more closely at the code, there seems to be a way to configure which metrics to use already: jupyter-resource-usage/jupyter_resource_usage/config.py Lines 40 to 43 in 78d2e1f
Although this does not seem to be used by the API handler at the moment since
Maybe the API handler should then also read |
@nishikantparmariam let me know if you would like to take a stab at this and open a draft PR so we can have a look at it? Otherwise I'll have a look. Thanks! |
FYI @nishikantparmariam the latest version of It was added in #164. Which means that the values in the right panel should correspond to what Were you able to try the new version? |
@jtpio Sorry for the delayed response. Yes, I tried 0.7.0 and it looks mostly good. It solves a major blocker - Jupyterlab freezing when kernel is busy, but shows no details (#164 (comment)) for that kernel.
Yes, the values in right panel seems to use PSS since they come from ipykernel. Still the memory shown in bottom (this issue) is calculated by RSS which may create confusion. I think it should be ok, but cc: @mlucool for thoughts. |
I still think PSS everywhere is correct (when possible) |
Just opened #171 |
Problem
jupyter-resource-usage
exaggerates usage probably due to copy-on-write. Shifting the methodology from RSS to PSS can help solve the problem. See the below reproducer -Output is -
jupyter-resource-usage
reportsRSS
in JupyterLab, butPSS
seems more accurate.Proposed Solution
Additional context
Found similar issue - issues#16
The text was updated successfully, but these errors were encountered: