jupyter-resource-usage icon indicating copy to clipboard operation
jupyter-resource-usage copied to clipboard

nbresuse does not display the total memory on the server

Open andrewhli opened this issue 5 years ago • 4 comments

Currently, nbresuse shows the actively used memory but does not display the total on the server as shown in the docs. How can I show the total memory in "X MB / Y GB" form?

Screen Shot 2020-06-13 at 5 15 03 PM

andrewhli avatar Jun 13 '20 22:06 andrewhli

In general it's not automatically shown as the total memory on a server may not be the same as the memory available to Jupyter. See this section of the README for details of how to configure it: https://github.com/yuvipanda/nbresuse#memory-limit

manics avatar Jun 13 '20 22:06 manics

Thanks @manics

I'm trying to use option 2 (In the commandline when starting jupyter notebook, as --ResourceUseDisplay.mem_limit)

Does this mean that when launching Jupyter from the command line I should use: "nohup jupyter notebook --ResourceUseDisplay.mem_limit" or "nohup jupyter notebook --ResourceUseDisplay.4073385984" ?

Neither seemed to work

andrewhli avatar Jun 13 '20 22:06 andrewhli

Found another StackOverflow page that was clear: "nohup jupyter notebook --ResourceUseDisplay.mem_limit=4073385984"

Would be great to update the rbresuse docs for clarity. Appreciate your help!

andrewhli avatar Jun 13 '20 22:06 andrewhli

Thanks @andrewhli!

Would be great to update the rbresuse docs for clarity. Appreciate your help!

There are some details in the README, but more could be added.

Would you like to open a PR?

jtpio avatar Jun 15 '20 08:06 jtpio