Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Track Memory and Storage Usage in JupyterHub

When running notebooks on Nautilus via JupyterHub, it’s helpful to monitor your RAM and disk usage, especially if you’re working with large datasets or resource-intensive computations.

Checking Memory Usage (RAM)

To check how much memory your notebook environment is using, run the cell below:

  1. Open an existing notebook

  2. In a code cell, enter and run:

!free -h
Screenshot showing the Jupyter editor open with !free -h command in a code cell

Checking Storage/Disk Usage

To check disk space usage across mounted volumes, run the cell below:

  1. Open an existing notebook

  2. In a code cell, enter and run:

!df -h
Screenshot showing the Jupyter editor open with !df -h command in a code cell

This command returns the disk space usage across mounted volumes, including:

  • Your home directory (/home/jovyan)

  • Temporary or shared volumes (if applicable)

Tip: To Free Up Space

  • Delete unused .ipynb files or datasets in the file browser

  • Clear temporary variables in your notebook

  • Use %reset or del variable_name in code to release memory