Skip to content

Commit

Permalink
Add a "quotas" section to /triton/ref, also mention personal vs proje…
Browse files Browse the repository at this point in the history
…ct quotas

- This makes the quota inspectio and fixing commannds more visible.
- Review: does the quick ref need to be shorter?
  • Loading branch information
rkdarst committed Oct 29, 2024
1 parent 4f9074e commit 0d8bd36
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 25 deletions.
19 changes: 15 additions & 4 deletions triton/ref/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ See also: :doc:`../tut/remotedata`.



.. _ref-partitions:
.. _ref-quotas:

Partitions
----------
Quotas
------

.. include:: partitions.rst
See also: :doc:`../usage/quotas`.

.. include:: quotas.rst



Expand Down Expand Up @@ -115,6 +117,15 @@ See also: :doc:`../tut/serial`, :doc:`../tut/array`.



.. _ref-partitions:

Slurm Partitions
----------------

.. include:: partitions.rst



.. _ref-toolchains:

..
Expand Down
23 changes: 23 additions & 0 deletions triton/ref/quotas.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
* Read about :doc:`data storage at Aalto </data/index>` and
:doc:`requesting storage space </data/requesting>`. We strongly
recommend project-based storage instead of increasing personal
quotas.
* ``quota`` - print your quota and usage
* ``du -h $HOME | sort -h``: print all directories and
subdirectories in your home directory, sorted by size. This lets
you find out where space is being used. ``$HOME`` can be
replaced with any other directory (or left off for the current
directory). Use ``du -a`` to list all files, not only directories.

* ``du -h --max-depth=1 $HOME | sort -h``: Similar, but only list
down to ``--max-depth`` levels.
* ``du --inodes --max-depth=1 $HOME | sort -n``: Similar, but list
the number of files in the directories.

* ``rm`` removes a single file, ``rm -r`` removes a whole directory
tree. **Warning: on scratch and Linux in general (unless backed
up), there is no recovery from this!!** Think twice before you
push enter. If you have any questions, come to a garage and get
help.
* ``conda clean`` cleans up downloaded conda files (but not
environments).
24 changes: 3 additions & 21 deletions triton/usage/quotas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,9 @@ There is a inode (number of files) quota of 1 million, because scratch
is not that great for too many small files. If you have too many small
files, see :doc:`the page on small files <smallfiles>`.

.. admonition:: Useful commands

* ``quota`` - print your quota and usage
* ``du -h $HOME | sort -h``: print all directories and
subdirectories in your home directory, sorted by size. This lets
you find out where space is being used. ``$HOME`` can be
replaced with any other directory (or left off for the current
directory). Use ``du -a`` to list all files, not only directories.

* ``du -h --max-depth=1 $HOME | sort -h``: Similar, but only list
down to ``--max-depth`` levels.
* ``du --inodes --max-depth=1 $HOME | sort -n``: Similar, but list
the number of files in the directories.

* ``rm`` removes a single file, ``rm -r`` removes a whole directory
tree. **Warning: on scratch and Linux in general (unless backed
up), there is no recovery from this!!** Think twice before you
push enter. If you have any questions, come to a garage and get
help.
* ``conda clean`` cleans up downloaded conda files (but not
environments).
.. admonition:: Quick reference

.. include:: ../ref/quotas.rst



Expand Down

0 comments on commit 0d8bd36

Please sign in to comment.