jupyterlab-system-monitor icon indicating copy to clipboard operation
jupyterlab-system-monitor copied to clipboard

Option to display total memory usage

Open joelostblom opened this issue 5 years ago • 3 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?

joelostblom avatar May 11 '19 05:05 joelostblom

I think that’s RAM allocation, which is determined through a jupyterhub_config.py file. If one isn’t present, no “max RAM” is shown.

On May 10, 2019, at 11:11 PM, Joel Ostblom [email protected] wrote:

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?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jtpio/jupyterlab-topbar/issues/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AJT7BN3TJA4DL62QIU5P2RLPUZIQPANCNFSM4HMHK6WQ.

mathematicalmichael avatar May 11 '19 18:05 mathematicalmichael

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 htopbut in JupyterLab.

And here is how to set the memory limit indicator (it doesn't enforce it): https://github.com/yuvipanda/nbresuse#memory-limit

jtpio avatar May 11 '19 22:05 jtpio

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.

stefansimik avatar May 18 '19 07:05 stefansimik

Closing as jupyterlab-system-monitor has now been integrated in jupyter-resource-usage: https://github.com/jupyter-server/jupyter-resource-usage/issues/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!

jtpio avatar Jul 28 '23 14:07 jtpio