Option to display total memory usage
joelostblom opened this issue · 4 comments
Thanks for making this package! It is quite useful to have the total memory consumption in view when running notebooks. However, after installing the extension I can only the usage of the current jupyterlab process rather than the total RAM being used on my system. I believe in your screenshots, the total RAM usage is shown together with a bar. Is it possible to configure the behavior of the extension to look similar to the screenshots?
The data about memory consumption is retrieved using the nbresuse
package: https://github.com/yuvipanda/nbresuse
And yes that's right it's showing only the current process and its children (relevant code: https://github.com/yuvipanda/nbresuse/blob/648160625088bfb2b60e5791ee85ccf759e56f5f/nbresuse/__init__.py#L16-L18).
I also agree it would be useful to also have access to the RAM of the system. Something like a simplified htop
but in JupyterLab.
And here is how to set the memory limit indicator (it doesn't enforce it): https://github.com/yuvipanda/nbresuse#memory-limit
This great extension deserves to show short simple way, how to show full RAM.
Referencing users to studying technical docs (https://traitlets.readthedocs.io/en/stable/) about traitlets config files, which are targeted for developers, is not easy to use option for most common users.
Closing as jupyterlab-system-monitor
has now been integrated in jupyter-resource-usage
: jupyter-server/jupyter-resource-usage#191
Feel free to open a new issue on the jupyter-resource-usage
repo if needed: https://github.com/jupyter-server/jupyter-resource-usage
Thanks!