The following commands will allow you to monitor the amount of diskspace you are using in your home directory on our (or another) submit node and to determine theamount of disk space you have been allotted (your quota).
If you also have a /staging
directory on the HTC system, see our staging guide for details on how to check your quota and usage.
The default quota allotment on CHTC submit nodes is 20 GB with a hardlimit of 30 GB (at which point you cannot write more files).
Note: The CHTC submit nodes are not backed up, so you will want tocopy completed jobs to a secure location as soon as a batch completes,and then delete them on the submit node in order to make room for futurejobs. If you need more disk space to run a single batch or concurrentbatches of jobs, please contact us (Get Help!). We have multiple ways of dealing with large disk spacerequirements to make things easier for you.
If you wish to change your quotas, please see Request a Quota Change.
1. Checking Your User Quota and Usage
From any directory location within your home directory, typequota -vs
. See the example below:
[alice@submit]$ quota -vsDisk quotas for user alice (uid 20384): Filesystem space quota limit grace files quota limit grace /dev/sdb1 12690M 20480M 30720M 161k 0 0
The output will list your total data usage under blocks
, your softquota
, and your hard limit
at which point your jobs will no longerbe allowed to save data. Each of the values given are in 1-kilobyteblocks, so you can divide each number by 1024 to get megabytes (MB), andagain for gigabytes (GB). (It also lists information for ` files`, butwe don't typically allocate disk space by file count.)
2. Checking the Size of Directories and Contents
Move to the directory you'd like to check and type du
. After severalmoments (longer if you're directory contents are large), the commandwill add up the sizes of directory contents and output the total size ofeach contained directory in units of kilobytes with the total size ofthat directory listed last. See the example below:
[alice@submit]$ du ./4096 ./dir/subdir/file.txt4096 ./dir/subdir7140 ./dir74688 .
As for quota usage above, you can divide each value by 1024 to getmegabytes, and again for gigabytes.
Using du
with the -h
or --human-readable
flags will display thesame values with only two significant digits and a K, M, or G to denotethe byte units. The -s
or --summarize
flags will total up the sizeof the current directory without listing the size of directory contents. You can also specify which directory you'd like to query, withoutmoving to it, by adding the relative filepath after the flags. See thebelow example from the home
directory which contains the directorydir
:
[alice@submit]$ du -sh dir7.1K dir