jupyter-server / jupyter-resource-usage

Jupyter Notebook Extension for monitoring your own Resource Usage
BSD 2-Clause "Simplified" License
477 stars 104 forks source link

Memory usage should include swap #109

Open atpage opened 3 years ago

atpage commented 3 years ago

Problem

As documented in the README, memory usage only includes RSS. But it would be very helpful for swap space used by Jupyter kernels to be included in this metric.

I recently noticed very high memory and swap usage on my machine, mainly due to Jupyter notebooks, even though the "Memory:" display in Jupyterhub was reporting a much smaller number. This was because much of the Jupyer kernel memory had been swapped. In this scenario, killing kernels can free significant amounts of memory (i.e. swap) while the memory display in Jupyterhub remains static.

Proposed Solution

jupyter-resource-usage should account for all memory usage. I don't know exactly what is needed to make this happen, but I'm happy to help.

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: