-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from university-of-york/feature/newpages
Feature/newpages
- Loading branch information
Showing
11 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
Backing Up your Data | ||
==================== | ||
|
||
There are two main options, the University Filestore or the Vault. Choosing will depend on how frequently you need to access the data. The Vault provides unlimited cold storage and is appropriate for storing sensitive data but retrieving the data can take some time and may incur a charge, the Filestore is more readily accessible, if you need more space please contact [email protected]. If you use the Filestore for backing up then usually, the date will then be transferred to the Vault for archiving. | ||
There are two main options depending on how frequently you need to access the data, the University **Filestore** or the **Vault**. | ||
|
||
The **Vault** provides unlimited cold storage and is appropriate for storing sensitive data but retrieving the data can take some time and may incur a charge | ||
|
||
The **Filestore** is more readily accessible, if you need more space please contact [email protected]. If you use the Filestore for backing up, usually the data will be transferred to the Vault for archiving later. | ||
|
||
|
||
.. warning:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
Data Management and User Quota | ||
============================== | ||
|
||
.. attention:: | ||
|
||
FIXME: This uses OLD information | ||
|
||
Viking is a self-contained machine, therefore you will notice your normal UoY home directories are not available. This is intentional for the following reasons: | ||
|
||
- If the dedicated network link between campus and Viking goes down, it may cause slowness or jobs to fail. Instead, jobs should continue to run until the link is re-established | ||
|
@@ -17,7 +21,7 @@ When you log in to Viking, you will land in your home directory, specifically: | |
/users/abc123 | ||
where ``abc123`` will be replaced by your username. This home directory has a size of **50GB** and a file limit of **100,000**. From within the home directory, you can access your ``scratch`` directory at | ||
Where ``abc123`` will be replaced by your username. This home directory has a size of **50GB** and a file limit of **100,000**. From within the home directory, you can access your ``scratch`` directory at | ||
|
||
.. code-block:: console | ||
|
@@ -29,6 +33,12 @@ This is a special high-performance filestore with a default size of **3TB** and | |
If you need more ``scratch`` storage space, please email us at [email protected], we are more than happy to accommodate large projects. | ||
|
||
|
||
Additionally, you also have access to the ``warm storage`` area, linked as ``FIXME: warm_storage`` which is **FIXME:??TB** and has no file limit. This is used for FIXME: What is it used for? | ||
|
||
.. code-block:: console | ||
/users/abc123/FIXME: warm | ||
Checking Your Quota | ||
------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,14 @@ Load a Module | |
|
||
.. code-block:: console | ||
$ load module lang/Python/3.10.8-GCCcore-12.2.0 | ||
$ module load lang/Python/3.10.8-GCCcore-12.2.0 | ||
.. hint:: | ||
|
||
The module name scheme on Viking is as follows: ``category`` / ``program_name`` / ``version`` - ``toolchain`` - ``toolchain_version``, where sometimes ``toolchain`` and ``toolchain_version`` not listed. | ||
|
||
To read more about the EasyBuild concept of *common toolchains*, please see the `EasyBuild docs <https://docs.easybuild.io/common-toolchains/>`_. In it's simplest sense, think of it as the compiler version the software was build with. | ||
|
||
|
||
Develop and Test | ||
|
@@ -45,6 +52,11 @@ Create Job Script | |
|
||
In your favorite text editor, create a jobscript for your job. Save it as something like ``myjobscript.job``. | ||
|
||
.. tip:: | ||
|
||
Please change the email address **[email protected]** below to your own email address and see the emails it generates! | ||
|
||
|
||
.. code-block:: bash | ||
:caption: this is just a basic template | ||
:linenos: | ||
|
@@ -61,6 +73,7 @@ In your favorite text editor, create a jobscript for your job. Save it as someth | |
#SBATCH [email protected] # Where to send mail | ||
#SBATCH --output=%x-%j.log # Standard output log | ||
#SBATCH --error=%x-%j.err # Standard error log | ||
#SBATCH --partition=test | ||
# Abort if any command fails | ||
set -e | ||
|
@@ -99,3 +112,7 @@ Adjust the Jobscript | |
-------------------- | ||
|
||
If your ``CPU`` or ``memory`` utilisation is very low, it means your settings in the jobscript need adjusting if you are to run the job again. Now is a good time to adjust these down, you should aim them pretty close to the end results, this will mean that Viking can start more jobs quicker and everyone can get their results faster. That's teamwork! ❤️ | ||
|
||
.. note:: | ||
|
||
In this example we set which ``partition`` we wanted the jobscript to use as ``test`` as we are just testing. For full jobs generally most users will be happy with the default ``nodes`` partition, you can see more about this on the :doc:`resource partitions </using_viking/resource_partitions>` page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ When submitting large volumes of jobs with identical resource requests, job arra | |
Bash Shebang and 'set -e' | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Consider using ``set -e`` after the ``#SBATCH`` section. This has the effect of aborting the job if **any** command within the batch script fails, instead of potentially continuing with an environment that is different to what is expected, or with erroneous data. Furthermore, it ensures that the job displays as ``FAILED`` when querying the status of jobs with ``sacct``. In future versions of Viking this can be done in one line with ``#!/usr/bin/env -S bash -e``. | ||
Consider using ``set -e`` after the ``#SBATCH`` section. This has the effect of aborting the job if **any** command within the batch script fails, instead of potentially continuing with an environment that is different to what is expected, or with erroneous data. Furthermore, it ensures that the job displays as ``FAILED`` when querying the status of jobs with ``sacct``. In future versions of Viking this can be done in one line with ``#!/usr/bin/env -S bash -e``. This is the `shebang <https://en.wikipedia.org/wiki/Shebang_(Unix)>`_ we were referencing in the title. | ||
|
||
|
||
Batch Jobs | ||
|
@@ -58,11 +58,15 @@ Viking can run lots of different jobs in many different ways, but for the most p | |
|
||
Below is an example jobscript, let's save it as ``jobscript.job`` for this example: | ||
|
||
.. admonition:: Remember | ||
|
||
To change the email address **[email protected]** below to your own email address to receive the emails! | ||
|
||
|
||
.. code-block:: bash | ||
:caption: jobscript.job | ||
{SHEBANG} | ||
#SBATCH --job-name=my_job # Job name | ||
#SBATCH --ntasks=10 # Number of MPI tasks to request | ||
#SBATCH --cpus-per-task=1 # Number of CPU cores per MPI task | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters