Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

Home directories on ASU supercomputers have a 100 GiB limit, and unfortunately, there’s no option to expand them. For additional storage, we recommend using scratch or project storage.

If your home directory becomes full, you’ll encounter errors such as:

No space left on devices

You may also be unable to create new sessions from the web portal.

When this happens, you’ll need to either delete unnecessary files or move them to a different storage system. Here’s how to check for space usage and address common issues.

Identifying Large Files and Directories

To see which files or directories are taking up space, use the command:

gdu ~

gdu (Go Disk Usage) is a fast and user-friendly tool for analyzing disk usage. Once in gdu:

  • Use the arrow keys to navigate up and down the list or into directories.

  • Press d to delete a file or directory directly from the interface.

 gdu usage
gdu --help
Pretty fast disk usage analyzer written in Go.

Usage:
  gdu [directory_to_scan] [flags]

Flags:
      --config-file string            Read config from file (default is $HOME/.gdu.yaml)
  -g, --const-gc                      Enable memory garbage collection during analysis with constant level set by GOGC
      --enable-profiling              Enable collection of profiling data and provide it on http://localhost:6060/debug/pprof/
  -L, --follow-symlinks               Follow symlinks for files, i.e. show the size of the file to which symlink points to (symlinks to directories are not followed)
  -h, --help                          help for gdu
  -i, --ignore-dirs strings           Absolute paths to ignore (separated by comma) (default [/proc,/dev,/sys,/run])
  -I, --ignore-dirs-pattern strings   Absolute path patterns to ignore (separated by comma)
  -X, --ignore-from string            Read absolute path patterns to ignore from file
  -f, --input-file string             Import analysis from JSON file
  -l, --log-file string               Path to a logfile (default "/dev/null")
  -m, --max-cores int                 Set max cores that GDU will use. 8 cores available (default 8)
  -c, --no-color                      Do not use colorized output
  -x, --no-cross                      Do not cross filesystem boundaries
      --no-delete                     Do not allow deletions
  -H, --no-hidden                     Ignore hidden directories (beginning with dot)
      --no-mouse                      Do not use mouse
      --no-prefix                     Show sizes as raw numbers without any prefixes (SI or binary) in non-interactive mode
  -p, --no-progress                   Do not show progress in non-interactive mode
  -u, --no-unicode                    Do not use Unicode symbols (for size bar)
  -n, --non-interactive               Do not run in interactive mode
  -o, --output-file string            Export all info into file as JSON
  -r, --read-from-storage             Read analysis data from persistent key-value storage
      --sequential                    Use sequential scanning (intended for rotating HDDs)
  -a, --show-apparent-size            Show apparent size
  -d, --show-disks                    Show all mounted disks
  -C, --show-item-count               Show number of items in directory
  -M, --show-mtime                    Show latest mtime of items in directory
  -B, --show-relative-size            Show relative size
      --si                            Show sizes with decimal SI prefixes (kB, MB, GB) instead of binary prefixes (KiB, MiB, GiB)
      --storage-path string           Path to persistent key-value storage directory (default is /tmp/badger) (default "/tmp/badger")
  -s, --summarize                     Show only a total in non-interactive mode
      --use-storage                   Use persistent key-value storage for analysis data (experimental)
  -v, --version                       Print version
      --write-config                  Write current configuration to file (default is $HOME/.gdu.yaml)

For more details on gdu, visit its GitHub page.

Alternatively, you can use:

ncdu ~

ncdu (ncurses Disk Usage) offers similar functionality, though it may run a bit slower.

Common Space-Consuming Applications and Solutions

Mamba

mamba, the Python package manager, stores temporary files, cached tarballs, and environments in your home directory. To free up space:

  1. Remove any unused environments:

    mamba env remove -n <envName>
  2. Clean up unnecessary packages, tarballs, and cache:

    mamba clean --all

pip

We recommend using mamba over pip for Python package management whenever possible. For more information, refer to our Python Package Installation Comparison.

However, if you must use pip, it often creates cache files in ~/.cache/pip. These files can be safely removed with:

rm -rf ~/.cache/pip

Hugging Face

Hugging Face libraries frequently download large models to your home directory, storing them in ~/.cache/huggingface by default. To free up space and relocate these files to scratch storage:

  1. Move the cache directory:

    mv ~/.cache/huggingface $SCRATCH
  2. Update your shell to reflect this change:

    echo "export HF_HOME=$SCRATCH/huggingface" >> ~/.bashrc
  3. Reload your shell:

    source ~/.bashrc

Additional Help

If you require further assistance on this topic, please contact the Research Computing Team. To create a support ticket review our RTO Request Help page. For quick inquiries, reach out via our #rc-support Slack Channel or attend our office hours for live assistance.

We also offer a series of Educational Opportunities and Workshops.

  • No labels